1 2005-03-07 Georg Baum <Georg.Baum@post.rwth-aachen.de>
3 * table.C (verbose_valign): new
4 * table.C (string2int): remove, use convert<int>() instead since the
5 default value is always 0 and this is also the default of
7 * table.C (ci2special): new
8 * table.C (handle_colalign): handle b{}, p{} and m{} correctly
9 * table.C (handle_colalign): fix >{\raggedleft} and >{\raggedright}
11 * table.C (handle_colalign): handle >{\centering}
12 * table.C (handle_colalign): handle <{}, *{}, @{} and !{}
13 * table.C (fix_colalign): new
14 * table.C (handle_tabular): fix multicolumns with vertical lines
16 2005-03-05 Georg Baum <Georg.Baum@post.rwth-aachen.de>
18 * text.C (output_command_layout): Use parse_text instead of
19 parse_text_in_inset to avoid creating a new context
20 * text.C (parse_text): translate \thanks to footnote in title layouts
22 2005-02-25 Angus Leeming <leeming@lyx.org>
24 * context.h: declare as "class Font" rather than "struct Font".
25 Ditto "class Context".
27 * table.C: declare as "class ColInfo" rather than "struct ColInfo".
28 Ditto "class RowInfo" and "class CellInfo".
30 Changes to make MSVC agree to link the code.
32 2005-02-05 Georg Baum <Georg.Baum@post.rwth-aachen.de>
34 * context.C (begin_deeper, end_deeper): adjust output to LyX
35 * preamble.C (h_output_changes): new
36 * preamble.C (end_preamble): output paperfontsize without unit
37 * preamble.C (end_preamble): change file format from 237 to 241
38 * text.C (parse_environment, parse_text): adjust paragraph parameters
40 * text.C (handle_ert, handle_comment): adjust newlines to new file
43 2005-02-03 Angus Leeming <leeming@lyx.org>
45 * Makefile.am: make -lz conditional on USE_COMPRESSION.
47 2005-02-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
49 * text.C (parse_text): handle \includegraphics*
50 * Makefile.am: readd -lz library since gcc 3.3 needs it.
52 2005-02-02 Angus Leeming <leeming@lyx.org>
54 * Makefile.am: remove -lz library from the linker call.
56 2005-02-02 Georg Baum <Georg.Baum@post.rwth-aachen.de>
58 * text.C (parse_text): Use '\n' and not '\\n' for a newline ;-)
60 2005-02-01 Georg Baum <Georg.Baum@post.rwth-aachen.de>
62 * text.C (parse_text): Only reset font changes if not at the
63 beginning of a new layout
65 2005-01-31 Angus Leeming <leeming@lyx.org>
67 * tex2lyx.C (main): enable tex2lyx to find the top level
68 build directory when run in-place.
70 Also add "fs::path::default_name_check(fs::no_check);"
72 2005-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
74 * tex2lyx.C: rewrite to use boost.filesystem
77 * Makefile.am (BOOST_LIBS): add BOOST_FILESYSTEM
79 2005-01-27 Lars Gullik Bjonnes <larsbj@gullik.net>
81 * Spacing (set): take double instead of float
83 * tex2lyx.C: convert stuff
85 2005-01-11 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
87 * Spacing.h: remove unused parameters
89 2005-01-10 Angus Leeming <leeming@lyx.org>
91 * tex2lyx.C: use support/package.h to provide the paths to the
92 various directories used by LyX.
94 2005-01-06 Lars Gullik Bjonnes <larsbj@gullik.net>
96 * text.C: tostr -> convert
98 2005-01-06 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
100 * Spacing.h: adapt dummy file to the changes in src/Spacing.h.
102 2005-01-04 Georg Baum <Georg.Baum@post.rwth-aachen.de>
104 * preamble.C (parse_preamble): handle second optional arg of
105 \newcommand etc. and add the command to the known commands (fixes
107 * texparser.[Ch] (getFullOpt): new, like getOpt but distinguish
108 between empty arguments and no argument found
109 * tex2lyx.[Ch]: (add_known_command): new
110 * text.C (parse_text): handle \newcommand etc. (see above)
111 * text.C (parse_text): add comment about \underline
112 * text.C (getCiteArguments): use getFullOpt
114 2004-12-15 Georg Baum <Georg.Baum@post.rwth-aachen.de>
116 * table.C (ColInfo, LTRowType, RowInfo, CellInfo, verbose_align):
117 new, extended from math_gridinfo.h and tabular.h
118 * table.C (write_attribute): new, from tabular.C
119 * table.C (read_hlines): remove
120 * table.C (parse_hlines): new
121 * table.C (RowPosition): new
122 * table.C (parse_table): handle comments in hlines
123 * table.C (parse_table, handle_tabular): add longtable support
124 * table.C (handle_tabular): fix "unexpected dummy size" error message
125 * table.C (handle_tabular): fix off by one error for clines
126 * text.C (parse_environment): add longtable support
128 2004-12-14 Angus Leeming <leeming@lyx.org>
130 * tex2lyx.C (main): no longer pass pointers to os::init.
132 2004-12-14 Angus Leeming <leeming@lyx.org>
134 * Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
135 to overcome bug in the MinGW port of g++ 3.4.2.
137 2004-12-05 Lars Gullik Bjønnes <larsbj@lyx.org>
139 * Makefile.am (tex2lyx_LDADD): use boost variables
141 2004-11-27 Georg Baum <Georg.Baum@post.rwth-aachen.de>
143 * table.C (handle_colalign): handle comments
144 * table.C (handle_tabular): don't crash on clines with out of range
147 2004-11-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
149 * tex2lyx.C: remove format hack
151 2004-11-07 Georg Baum <Georg.Baum@post.rwth-aachen.de>
153 * texparser.C (getNewline): new
154 * texparser.C (tokenize): fix bug 1730 by handling MAC line endings
157 2004-10-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
159 * tex2lyx.C (formats): new, needed for libsupport.a
161 2004-10-20 Georg Baum <Georg.Baum@post.rwth-aachen.de>
163 * text.C (parse_text): replace newlines with spaces in arguments to
164 known latex commands, fixes bug 1620
166 2004-10-12 Georg Baum <Georg.Baum@post.rwth-aachen.de>
168 * preamble.C (end_preamble): change file format from 236 to 237
169 * preamble.C (h_use_geometry, h_use_bibtopic, h_tracking_changes):
170 change from "0" to "false"
172 2004-08-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
174 * preamble.C (end_preamble): change file format from 235 to 236
175 * preamble.C (end_preamble): add \begin_document, \begin_header and
177 * preamble.C (h_papersize): change from "Default" to "default"
178 * tex2lyx.C (tex2lyx): add end_body tag
180 2008-08-16 José Matos <jamatos@lyx.org>
182 * context.C (begin_deeper, end_deeper):
183 * preamble.C (end_preamble):
184 * table.C (handle_tabular):
185 * text.C (end_inset, handle_ert, handle_comment):
186 (parse_text_attributes, parse_text): remove space at end of line.
188 2004-08-10 Georg Baum <Georg.Baum@post.rwth-aachen.de>
190 * preamble.C (split_options): new, split package options into vector
191 * preamble.C (add_package): new, add a package with options to
193 * preamble.C, tex2lyx.h (used_packages): new map of used packages
195 * preamble.C (handle_package): handle natbib and jurabib package
196 * preamble.C (handle_package): output a message for unhandled options
197 * preamble.C (parse_preamble): handle \jurabibsetup
198 * text.C (known_natbib_commands): new list of known natbib ccommands
199 * text.C (known_jurabib_commands): new list of known jurabib ccommands
200 * text.C (getCiteArguments): new, parse cite command arguments
201 * text.C (parse_text): handle natbib and jurabib citation commands
203 2004-07-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
205 * preamble.C (end_preamble): change file format from 228 to 235
206 * preamble.C (end_preamble): add use_bibtopic flag
207 * preamble.C (end_preamble): replace use_natbib with cite_engine
208 * preamble.C: change the paperpackage default from "default" to
209 "none". The old setting only worked by accident.
210 * tex2lyx.[Ch] (getMasterFilePath): new, needed for included graphics
211 * text.C (parse_environment): add sideways flag for float insets
212 * text.C (parse_text): add graphics file extension if necessary
213 * text.C (find_file): new helper function
215 2004-07-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
217 * math.C (parse_math): change tex "\\cr" line ending to "\\\\"
218 * table.C (parse_table): recognize tex "\\cr" line ending
220 2004-06-28 Georg Baum <Georg.Baum@post.rwth-aachen.de>
222 * math.C, preamble.C, tex2lyx.[Ch], text.C: const fixes
223 * context.[Ch]: new Font struct, and add it to Context
224 * text.C (parse_text): reset size after size change
225 * text.C: handle declaration form of font attribute changes (new
227 * text.C (parse_text): handle \textmd, \textup and \textnormal
228 * text.C (parse_text_attributes): new
230 2004-06-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
232 * text.C (output_command_layout, parse_environment): fix bug 1446
233 by passing parent_context.deeper_paragraph to the child context
235 2004-06-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
237 * preamble.C, text.C: s/wether/whether/g
238 * text.C (eat_whitespace): new method
239 * texparser.C (getArg): use always curr_token().asInput()
240 * texparser.[Ch] (isParagraph): new method
241 * texparser.C (skip_spaces): handle "\n +\n" correctly
242 * texparser.[Ch] (asMode): remove, since it is unused
244 2004-05-27 Lars Gullik Bjonnes <larsbj@gullik.net>
246 * Makefile.am (BUILT_SOURCES): move lengthcommon.C from here...
247 (tex2lyx_SOURCES): ... to here
249 * lengthcommon.C: new file
251 2004-04-30 Georg Baum <Georg.Baum@post.rwth-aachen.de>
253 * preamble.C: recognize \lyxdot
254 * text.C (parse_text): translate \lyxdot in graphics file names
255 * text.C (handle_ert): translate '\n' (fixes %-newline combinations
258 2004-03-26 Georg Baum <Georg.Baum@post.rwth-aachen.de>
260 * text.C (parse_text): handle vspaces like '1cm' correctly
262 2004-02-01 Lars Gullik Bjonnes <larsbj@gullik.net>
264 * text.C (parse_box): "\\" -> '\\' in calls to contains.
266 2004-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
268 * text.C: reorder the using statements.
269 (translate_len): remove usage of a uninitialized variable.
270 (isLayout): make it adaptable and constify operator()
271 (findLayout): reformat slightly and dont use the same var for
274 2004-01-06 Georg Baum <Georg.Baum@post.rwth-aachen.de>
276 * text.C: fix status tag output for ERT inset
278 2003-12-17 Georg Baum <Georg.Baum@post.rwth-aachen.de>
280 * preamble.C: Change file format from 225 to 228
281 * text.C: Convert minipages and parboxes to box insets
282 * text.C: Changes for format 228 (see ../../development/FORMAT)
283 * text.C: Add lyxgreyedout environment
284 * context.[Ch]: New function Context::add_extra_stuff()
286 2003-12-08 Georg Baum <Georg.Baum@post.rwth-aachen.de>
288 * text.C: Use the new VSpace inset (fixes a bug with added_space top)
289 * text.C: Fix \= in tabbing env again
290 * text.C: Fix invocation of parse_command()
292 2003-11-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
296 * text.C: Read a list of commands and their arguments from a reLyX
297 compatible syntax file in order to parse optional argumnts correctly.
303 * math.C: change size() to !empty() where it was used as bool
305 2003-11-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
310 * context.[Ch]: New functions Context::set_item(),
311 Context::new_paragraph(ostream & os) and Context::atParagraphStart()
312 to make Context usage more explicit
313 * texparser.[Ch]: Rework Parser::tokenize (see comment in texparser.h)
316 * texparser.C: Don't silently drop comments
317 * texparser.C: Token::asInput() does not append a space anymore
318 * texparser.[Ch]: Renamed Parser::prev_token() to Parser::curr_token().
319 New function Parser::prev_token() returns now really the previous token
321 * text.C: Convert known vspaces at paragraph start to \\added_space_top
322 * preamble.C: Don't put out newlines twice.
323 * text.C: Fix minipage position bug
324 * text.C: Fix \labelwidthstring bug
325 * text.C: Recognize alignment environments
326 * text.C: Fix a few cases of incorrect context usage, resulting
327 in missing or superflous \begin_layout / \end_laout lines.
329 2003-10-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
339 - add \text{}, \intertext{} and \fbox{} support in mathmode.
340 - add support for some math environments like displaymath
341 - allow parsing of partial documents (for inclusion with \input).
342 - steal commandline switches -c and -f from reLyX to support the
344 - add support for lengths with comma (4,5cm instead of 4.5cm) to
345 minipage environments. Handle \textwidth etc. without factor
346 - rearrange active_environments.[push,pop]back() so that they are always
348 - write an error message if layout file could not be found.
349 - convert \begin{comment}...\end{comment} to comment inset
350 - handle \= correctly inside tabbing environments
351 - fix multicolumn vertical rule bug in tables
352 - add missing \includegraphics options
353 - output minipages with latex lengths as ERT, since lyx cannot handle them
354 - recognize \textsl{}
355 - remove duplicate \ldots
356 - recognize \bibliographystyle and \bibliography
357 - handle \psfrag{ps-text}[ps-pos][tex-pos]{tex-text} correctly
358 - handle environments in table cells correctly
359 - add missing -userdir and -sysdir commandline switches
360 - recognize start of appendix
361 - handle optional arg to \item as ERT in itemize environment, since LyX
362 does not support it directly
364 2003-10-18 Lars Gullik Bjønnes <larsbj@gullik.net>
366 * Makefile.am (BUILT_SOURCES): use this instead of "linked_files"
367 and the link_files target. make the BUILT_SOURCES dependency
368 automatically link the needed files.
370 2003-10-14 Angus Leeming <leeming@lyx.org>
372 * Makefile.am: move boost.C from the linked_files section
373 to the tex2lyx_SOURCES section.
375 * boost.C: new file. Simpler than the version in the main lyx source.
376 No reference to the emergencyCleanup stuff.
378 * tex2lyx.C: remove emergencyCleanup() stuff.
380 2003-10-08 Angus Leeming <leeming@lyx.org>
382 Fix doxygen warnings.
384 * Spacing.h: \file Spacing.h -> \file tex2lyx/Spacing.h
385 * gettext.C: \file gettext.C -> \file tex2lyx/gettext.C
386 * gettext.h: \file gettext.h -> \file tex2lyx/gettext.h
387 * lyxfont.C: \file lyxfont.C -> \file tex2lyx/lyxfont.C
388 * lyxfont.h: \file lyxfont.h -> \file tex2lyx/lyxfont.h
389 * text.C: \file text.C -> \file tex2lyx/text.C
391 2003-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
393 * tex2lyx.C: adjust for new debugstream.
395 2003-09-08 Angus Leeming <leeming@lyx.org>
401 * texparser.C: remove redundant using directives.
403 2003-08-19 Angus Leeming <leeming@lyx.org>
405 * most files: add 'standard conformant' header blurb.
406 Also add Jean-Marc as an author where appropriate.
408 2003-08-08 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
410 * Makefile.am (EXTRA_DIST):
411 * test-insets.tex: new file. Describes the insets and special
412 characters that tex2lyx handles.
414 * text.C (parse_text): support \vref, \vpageref (only one optional
415 argument), \prettyref; add support for include inset; when \\ has
416 optional arguments, use ERT; support also \listoffigures,
417 \listoftables, and \listof{xxx} for existing float types;
418 translate lenghts properly for graphics inset.
419 (parse_environment): add support for minipages
421 * text.C (translate_len): A simple function to translate a latex
422 length to something lyx can understand. Not perfect, but rather
425 2003-08-07 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
427 * text.C (parse_text): special handling for \item and \bibitem
430 * context.C (begin_layout, end_layout, begin_deeper, end_deeper):
431 tiny helper functions
433 (check_end_deeper): add special handling for the case of a normal
434 paragraph inside a list-like environment.
436 * test-structure.tex: add more stuff there
438 2003-08-05 Alfredo Braunstein <abraunst@libero.it>
440 * context.h: compile fix
442 2003-08-05 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
444 * text.C: some tweaks to make nesting work. What still does not
445 work is nesting a standard paragraph in a list.
447 * test-structure.tex: update a bit
449 * context.C (check_deeper, check_end_deeper): new methods to
450 handle the *_deeper stuff
452 * preamble.C (end_preamble): small tweaks
454 2003-08-03 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
456 * text.C: update to use Context struct, and more notably:
457 (cap, check_layout, check_end_layout): remove
458 (parse_text_snippet): new thin wrapper around parse_text, used for
459 things like \textrm{...}
460 (parse_environment): remove existing depth handling code, which is
461 handled transparently by the Context struct; make unknown
462 environments work (again?) through ERT
464 * test-structure.tex: new test file, used to try out various
469 * table.C: update to use Context struct
471 * context.[Ch]: new helper struct which is passed to parse_*
472 functions and handles *_layout and *_deeper tags output
474 * Makefile.am (EXTRA_DIST): new file test-structure.tex
475 (tex2lyx_SOURCES): add context.[Ch]
477 2003-07-30 Angus Leeming <leeming@lyx.org>
479 * Makefile.am: Hide the fact that we re-generate those symbolic links
482 2003-07-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
484 * text.C (check_layout): \layout -> \begin_layout
485 (parse_text_in_inset): convenience function
487 * tex2lyx.C (main): \the_end -> \end_document
489 * preamble.C (end_preamble): update version number to 225
491 * text.C (parse_text): replace test on "lyxcode" with test on
492 LyXLayout::freespacing.
493 (check_end_layout): new function, used to check whether we need to
496 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
498 * tex2lyx.C (clean_layouts): remove
500 * text.C: output lazily the \layout commands using the
501 check_layout function. Remove all explicit \layout tags.
502 (parse_text): pass an optional parameter 'layout'
505 * text.C (output_command_layout): renamed from output_layout
506 (parse_environment): new method containing a part of parse_text
510 * table.C: \begin_layout -> \layout. We are not quite ready for
513 2003-07-28 José Matos <jamatos@lyx.org>
518 * table.C: \layout -> \begin_layout.
520 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
522 * text.C (parse_text): read environment from layout file too. Now,
523 all layout entries are supported (but many hacks remain); note
524 that the nesting support is broken and will have to be completely
526 (parse_text): basic support for english double quotes
528 * table.C (handle_tabular): make the output more similar to LyX
531 * text.C (output_layout): fix handling of optional argument
532 (parse_text): small tweaks to make output format closer to lyx
533 format; support \tableofcontents; fix/improve support for various
536 2003-07-27 Angus Leeming <leeming@lyx.org>
538 * Makefile.am: remove unused graphics_link_files cruft.
541 2003-07-27 Angus Leeming <leeming@lyx.org>
543 * tex2lyx.C: add Debug::ANY hack.
545 * text.C: remove hardcoded command layouts.
547 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
549 * text.C (parse_text): fix handling of \LaTeXe macro
551 2003-07-26 Angus Leeming <leeming@lyx.org>
555 * gettext.[Ch]: minimal (near empty) analogues of the real LyX
556 files; enough to get LyXTextClass and LyXLayout to compile without
557 needing to store any real information about Spacing or Font.
559 * Makefile.am: add these files above and also include a minimal
560 chunk of the main lyx source tree as soft links in order to add in
561 LyXTextClass and LyXLayout.
563 * .cvsignore: add all these soft links.
565 * preamble.C (end_preamble): passed a LyXTextClass arg.
566 (parse_preamble): returns the document LyXTextClass.
568 * tabular.C (handle_tabular): passed a LyXTextClass arg. In turn
569 pass it to parse_text.
571 * tex2lyx.C: add some global vars, build_lyxdir et al. For now,
572 give them some horrible hard-coded value.
573 (main): receive a LyXTextClass var from parse_preamble and pass it
576 * text.C (parse_text): receives a LyXTextClass arg. Use it to
577 remove the hard-coded handling of floats and instead check the
578 textclass for its existence. Also handle wide floats naturally.
580 * tex2lyx.h: associated changes to function declarations.
582 2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
584 * texparser.C (catInit): same warning avoidance as in math_parser.C
585 (setCatCode): cast to safe type
588 2003-05-17 Joao Luis M. Assirati <assirati@fma.if.usp.br>
590 * texparser.C: fix paragraph parsing after comment
592 2003-04-29 André Pönitz <poenitz@gmx.net>
595 texparser.h: whitespace
597 2003-04-20 Kayvan A. Sylvan <kayvan@sylvan.com>
599 * table.C: use string::erase(), not string::clear() to enable older
600 versions of gcc to compile the code.
602 2003-04-17 André Pönitz <poenitz@gmx.net>
609 * table.C: better table handling
611 * tex2lyx.C: lots of small changes
613 2003-02-25 Angus Leeming <leeming@lyx.org>
615 * .cvsignore: ignore *.lo and libtexparser.la.
617 2003-02-20 Angus Leeming <leeming@lyx.org>
619 * tex2lyx.C: swap <sstream> for "Lsstream.h".
621 2003-02-11 Angus Leeming <leeming@lyx.org>
623 * tex2lyx.C (handle_opt): prevent infinite loop if opts is empty.
624 (handle_package): new function, factoring code out of Parser::parse.
625 (trim): copied across from support/lstrings.C
626 (Parser::parse): handle '\usepackage{foo, bar}'.
628 2003-02-11 André Pönitz <poenitz@gmx.net>
630 * tex2lyx.C: first shot at real code
632 2003-02-11 Angus Leeming <leeming@lyx.org>
634 * .cvsignore: new file.
636 2003-02-10 Angus Leeming <leeming@lyx.org>
638 * Makefile.am: empty, dummy file so that autogen.sh and configure