1 2005-01-27 Lars Gullik Bjonnes <larsbj@gullik.net>
3 * Spacing (set): take double instead of float
5 * tex2lyx.C: convert stuff
7 2005-01-11 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
9 * Spacing.h: remove unused parameters
11 2005-01-10 Angus Leeming <leeming@lyx.org>
13 * tex2lyx.C: use support/package.h to provide the paths to the
14 various directories used by LyX.
16 2005-01-06 Lars Gullik Bjonnes <larsbj@gullik.net>
18 * text.C: tostr -> convert
20 2005-01-06 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
22 * Spacing.h: adapt dummy file to the changes in src/Spacing.h.
24 2005-01-04 Georg Baum <Georg.Baum@post.rwth-aachen.de>
26 * preamble.C (parse_preamble): handle second optional arg of
27 \newcommand etc. and add the command to the known commands (fixes
29 * texparser.[Ch] (getFullOpt): new, like getOpt but distinguish
30 between empty arguments and no argument found
31 * tex2lyx.[Ch]: (add_known_command): new
32 * text.C (parse_text): handle \newcommand etc. (see above)
33 * text.C (parse_text): add comment about \underline
34 * text.C (getCiteArguments): use getFullOpt
36 2004-12-15 Georg Baum <Georg.Baum@post.rwth-aachen.de>
38 * table.C (ColInfo, LTRowType, RowInfo, CellInfo, verbose_align):
39 new, extended from math_gridinfo.h and tabular.h
40 * table.C (write_attribute): new, from tabular.C
41 * table.C (read_hlines): remove
42 * table.C (parse_hlines): new
43 * table.C (RowPosition): new
44 * table.C (parse_table): handle comments in hlines
45 * table.C (parse_table, handle_tabular): add longtable support
46 * table.C (handle_tabular): fix "unexpected dummy size" error message
47 * table.C (handle_tabular): fix off by one error for clines
48 * text.C (parse_environment): add longtable support
50 2004-12-14 Angus Leeming <leeming@lyx.org>
52 * tex2lyx.C (main): no longer pass pointers to os::init.
54 2004-12-14 Angus Leeming <leeming@lyx.org>
56 * Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
57 to overcome bug in the MinGW port of g++ 3.4.2.
59 2004-12-05 Lars Gullik Bjønnes <larsbj@lyx.org>
61 * Makefile.am (tex2lyx_LDADD): use boost variables
63 2004-11-27 Georg Baum <Georg.Baum@post.rwth-aachen.de>
65 * table.C (handle_colalign): handle comments
66 * table.C (handle_tabular): don't crash on clines with out of range
69 2004-11-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
71 * tex2lyx.C: remove format hack
73 2004-11-07 Georg Baum <Georg.Baum@post.rwth-aachen.de>
75 * texparser.C (getNewline): new
76 * texparser.C (tokenize): fix bug 1730 by handling MAC line endings
79 2004-10-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
81 * tex2lyx.C (formats): new, needed for libsupport.a
83 2004-10-20 Georg Baum <Georg.Baum@post.rwth-aachen.de>
85 * text.C (parse_text): replace newlines with spaces in arguments to
86 known latex commands, fixes bug 1620
88 2004-10-12 Georg Baum <Georg.Baum@post.rwth-aachen.de>
90 * preamble.C (end_preamble): change file format from 236 to 237
91 * preamble.C (h_use_geometry, h_use_bibtopic, h_tracking_changes):
92 change from "0" to "false"
94 2004-08-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
96 * preamble.C (end_preamble): change file format from 235 to 236
97 * preamble.C (end_preamble): add \begin_document, \begin_header and
99 * preamble.C (h_papersize): change from "Default" to "default"
100 * tex2lyx.C (tex2lyx): add end_body tag
102 2008-08-16 José Matos <jamatos@lyx.org>
104 * context.C (begin_deeper, end_deeper):
105 * preamble.C (end_preamble):
106 * table.C (handle_tabular):
107 * text.C (end_inset, handle_ert, handle_comment):
108 (parse_text_attributes, parse_text): remove space at end of line.
110 2004-08-10 Georg Baum <Georg.Baum@post.rwth-aachen.de>
112 * preamble.C (split_options): new, split package options into vector
113 * preamble.C (add_package): new, add a package with options to
115 * preamble.C, tex2lyx.h (used_packages): new map of used packages
117 * preamble.C (handle_package): handle natbib and jurabib package
118 * preamble.C (handle_package): output a message for unhandled options
119 * preamble.C (parse_preamble): handle \jurabibsetup
120 * text.C (known_natbib_commands): new list of known natbib ccommands
121 * text.C (known_jurabib_commands): new list of known jurabib ccommands
122 * text.C (getCiteArguments): new, parse cite command arguments
123 * text.C (parse_text): handle natbib and jurabib citation commands
125 2004-07-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
127 * preamble.C (end_preamble): change file format from 228 to 235
128 * preamble.C (end_preamble): add use_bibtopic flag
129 * preamble.C (end_preamble): replace use_natbib with cite_engine
130 * preamble.C: change the paperpackage default from "default" to
131 "none". The old setting only worked by accident.
132 * tex2lyx.[Ch] (getMasterFilePath): new, needed for included graphics
133 * text.C (parse_environment): add sideways flag for float insets
134 * text.C (parse_text): add graphics file extension if necessary
135 * text.C (find_file): new helper function
137 2004-07-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
139 * math.C (parse_math): change tex "\\cr" line ending to "\\\\"
140 * table.C (parse_table): recognize tex "\\cr" line ending
142 2004-06-28 Georg Baum <Georg.Baum@post.rwth-aachen.de>
144 * math.C, preamble.C, tex2lyx.[Ch], text.C: const fixes
145 * context.[Ch]: new Font struct, and add it to Context
146 * text.C (parse_text): reset size after size change
147 * text.C: handle declaration form of font attribute changes (new
149 * text.C (parse_text): handle \textmd, \textup and \textnormal
150 * text.C (parse_text_attributes): new
152 2004-06-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
154 * text.C (output_command_layout, parse_environment): fix bug 1446
155 by passing parent_context.deeper_paragraph to the child context
157 2004-06-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
159 * preamble.C, text.C: s/wether/whether/g
160 * text.C (eat_whitespace): new method
161 * texparser.C (getArg): use always curr_token().asInput()
162 * texparser.[Ch] (isParagraph): new method
163 * texparser.C (skip_spaces): handle "\n +\n" correctly
164 * texparser.[Ch] (asMode): remove, since it is unused
166 2004-05-27 Lars Gullik Bjonnes <larsbj@gullik.net>
168 * Makefile.am (BUILT_SOURCES): move lengthcommon.C from here...
169 (tex2lyx_SOURCES): ... to here
171 * lengthcommon.C: new file
173 2004-04-30 Georg Baum <Georg.Baum@post.rwth-aachen.de>
175 * preamble.C: recognize \lyxdot
176 * text.C (parse_text): translate \lyxdot in graphics file names
177 * text.C (handle_ert): translate '\n' (fixes %-newline combinations
180 2004-03-26 Georg Baum <Georg.Baum@post.rwth-aachen.de>
182 * text.C (parse_text): handle vspaces like '1cm' correctly
184 2004-02-01 Lars Gullik Bjonnes <larsbj@gullik.net>
186 * text.C (parse_box): "\\" -> '\\' in calls to contains.
188 2004-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
190 * text.C: reorder the using statements.
191 (translate_len): remove usage of a uninitialized variable.
192 (isLayout): make it adaptable and constify operator()
193 (findLayout): reformat slightly and dont use the same var for
196 2004-01-06 Georg Baum <Georg.Baum@post.rwth-aachen.de>
198 * text.C: fix status tag output for ERT inset
200 2003-12-17 Georg Baum <Georg.Baum@post.rwth-aachen.de>
202 * preamble.C: Change file format from 225 to 228
203 * text.C: Convert minipages and parboxes to box insets
204 * text.C: Changes for format 228 (see ../../development/FORMAT)
205 * text.C: Add lyxgreyedout environment
206 * context.[Ch]: New function Context::add_extra_stuff()
208 2003-12-08 Georg Baum <Georg.Baum@post.rwth-aachen.de>
210 * text.C: Use the new VSpace inset (fixes a bug with added_space top)
211 * text.C: Fix \= in tabbing env again
212 * text.C: Fix invocation of parse_command()
214 2003-11-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
218 * text.C: Read a list of commands and their arguments from a reLyX
219 compatible syntax file in order to parse optional argumnts correctly.
225 * math.C: change size() to !empty() where it was used as bool
227 2003-11-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
232 * context.[Ch]: New functions Context::set_item(),
233 Context::new_paragraph(ostream & os) and Context::atParagraphStart()
234 to make Context usage more explicit
235 * texparser.[Ch]: Rework Parser::tokenize (see comment in texparser.h)
238 * texparser.C: Don't silently drop comments
239 * texparser.C: Token::asInput() does not append a space anymore
240 * texparser.[Ch]: Renamed Parser::prev_token() to Parser::curr_token().
241 New function Parser::prev_token() returns now really the previous token
243 * text.C: Convert known vspaces at paragraph start to \\added_space_top
244 * preamble.C: Don't put out newlines twice.
245 * text.C: Fix minipage position bug
246 * text.C: Fix \labelwidthstring bug
247 * text.C: Recognize alignment environments
248 * text.C: Fix a few cases of incorrect context usage, resulting
249 in missing or superflous \begin_layout / \end_laout lines.
251 2003-10-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
261 - add \text{}, \intertext{} and \fbox{} support in mathmode.
262 - add support for some math environments like displaymath
263 - allow parsing of partial documents (for inclusion with \input).
264 - steal commandline switches -c and -f from reLyX to support the
266 - add support for lengths with comma (4,5cm instead of 4.5cm) to
267 minipage environments. Handle \textwidth etc. without factor
268 - rearrange active_environments.[push,pop]back() so that they are always
270 - write an error message if layout file could not be found.
271 - convert \begin{comment}...\end{comment} to comment inset
272 - handle \= correctly inside tabbing environments
273 - fix multicolumn vertical rule bug in tables
274 - add missing \includegraphics options
275 - output minipages with latex lengths as ERT, since lyx cannot handle them
276 - recognize \textsl{}
277 - remove duplicate \ldots
278 - recognize \bibliographystyle and \bibliography
279 - handle \psfrag{ps-text}[ps-pos][tex-pos]{tex-text} correctly
280 - handle environments in table cells correctly
281 - add missing -userdir and -sysdir commandline switches
282 - recognize start of appendix
283 - handle optional arg to \item as ERT in itemize environment, since LyX
284 does not support it directly
286 2003-10-18 Lars Gullik Bjønnes <larsbj@gullik.net>
288 * Makefile.am (BUILT_SOURCES): use this instead of "linked_files"
289 and the link_files target. make the BUILT_SOURCES dependency
290 automatically link the needed files.
292 2003-10-14 Angus Leeming <leeming@lyx.org>
294 * Makefile.am: move boost.C from the linked_files section
295 to the tex2lyx_SOURCES section.
297 * boost.C: new file. Simpler than the version in the main lyx source.
298 No reference to the emergencyCleanup stuff.
300 * tex2lyx.C: remove emergencyCleanup() stuff.
302 2003-10-08 Angus Leeming <leeming@lyx.org>
304 Fix doxygen warnings.
306 * Spacing.h: \file Spacing.h -> \file tex2lyx/Spacing.h
307 * gettext.C: \file gettext.C -> \file tex2lyx/gettext.C
308 * gettext.h: \file gettext.h -> \file tex2lyx/gettext.h
309 * lyxfont.C: \file lyxfont.C -> \file tex2lyx/lyxfont.C
310 * lyxfont.h: \file lyxfont.h -> \file tex2lyx/lyxfont.h
311 * text.C: \file text.C -> \file tex2lyx/text.C
313 2003-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
315 * tex2lyx.C: adjust for new debugstream.
317 2003-09-08 Angus Leeming <leeming@lyx.org>
323 * texparser.C: remove redundant using directives.
325 2003-08-19 Angus Leeming <leeming@lyx.org>
327 * most files: add 'standard conformant' header blurb.
328 Also add Jean-Marc as an author where appropriate.
330 2003-08-08 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
332 * Makefile.am (EXTRA_DIST):
333 * test-insets.tex: new file. Describes the insets and special
334 characters that tex2lyx handles.
336 * text.C (parse_text): support \vref, \vpageref (only one optional
337 argument), \prettyref; add support for include inset; when \\ has
338 optional arguments, use ERT; support also \listoffigures,
339 \listoftables, and \listof{xxx} for existing float types;
340 translate lenghts properly for graphics inset.
341 (parse_environment): add support for minipages
343 * text.C (translate_len): A simple function to translate a latex
344 length to something lyx can understand. Not perfect, but rather
347 2003-08-07 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
349 * text.C (parse_text): special handling for \item and \bibitem
352 * context.C (begin_layout, end_layout, begin_deeper, end_deeper):
353 tiny helper functions
355 (check_end_deeper): add special handling for the case of a normal
356 paragraph inside a list-like environment.
358 * test-structure.tex: add more stuff there
360 2003-08-05 Alfredo Braunstein <abraunst@libero.it>
362 * context.h: compile fix
364 2003-08-05 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
366 * text.C: some tweaks to make nesting work. What still does not
367 work is nesting a standard paragraph in a list.
369 * test-structure.tex: update a bit
371 * context.C (check_deeper, check_end_deeper): new methods to
372 handle the *_deeper stuff
374 * preamble.C (end_preamble): small tweaks
376 2003-08-03 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
378 * text.C: update to use Context struct, and more notably:
379 (cap, check_layout, check_end_layout): remove
380 (parse_text_snippet): new thin wrapper around parse_text, used for
381 things like \textrm{...}
382 (parse_environment): remove existing depth handling code, which is
383 handled transparently by the Context struct; make unknown
384 environments work (again?) through ERT
386 * test-structure.tex: new test file, used to try out various
391 * table.C: update to use Context struct
393 * context.[Ch]: new helper struct which is passed to parse_*
394 functions and handles *_layout and *_deeper tags output
396 * Makefile.am (EXTRA_DIST): new file test-structure.tex
397 (tex2lyx_SOURCES): add context.[Ch]
399 2003-07-30 Angus Leeming <leeming@lyx.org>
401 * Makefile.am: Hide the fact that we re-generate those symbolic links
404 2003-07-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
406 * text.C (check_layout): \layout -> \begin_layout
407 (parse_text_in_inset): convenience function
409 * tex2lyx.C (main): \the_end -> \end_document
411 * preamble.C (end_preamble): update version number to 225
413 * text.C (parse_text): replace test on "lyxcode" with test on
414 LyXLayout::freespacing.
415 (check_end_layout): new function, used to check whether we need to
418 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
420 * tex2lyx.C (clean_layouts): remove
422 * text.C: output lazily the \layout commands using the
423 check_layout function. Remove all explicit \layout tags.
424 (parse_text): pass an optional parameter 'layout'
427 * text.C (output_command_layout): renamed from output_layout
428 (parse_environment): new method containing a part of parse_text
432 * table.C: \begin_layout -> \layout. We are not quite ready for
435 2003-07-28 José Matos <jamatos@lyx.org>
440 * table.C: \layout -> \begin_layout.
442 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
444 * text.C (parse_text): read environment from layout file too. Now,
445 all layout entries are supported (but many hacks remain); note
446 that the nesting support is broken and will have to be completely
448 (parse_text): basic support for english double quotes
450 * table.C (handle_tabular): make the output more similar to LyX
453 * text.C (output_layout): fix handling of optional argument
454 (parse_text): small tweaks to make output format closer to lyx
455 format; support \tableofcontents; fix/improve support for various
458 2003-07-27 Angus Leeming <leeming@lyx.org>
460 * Makefile.am: remove unused graphics_link_files cruft.
463 2003-07-27 Angus Leeming <leeming@lyx.org>
465 * tex2lyx.C: add Debug::ANY hack.
467 * text.C: remove hardcoded command layouts.
469 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
471 * text.C (parse_text): fix handling of \LaTeXe macro
473 2003-07-26 Angus Leeming <leeming@lyx.org>
477 * gettext.[Ch]: minimal (near empty) analogues of the real LyX
478 files; enough to get LyXTextClass and LyXLayout to compile without
479 needing to store any real information about Spacing or Font.
481 * Makefile.am: add these files above and also include a minimal
482 chunk of the main lyx source tree as soft links in order to add in
483 LyXTextClass and LyXLayout.
485 * .cvsignore: add all these soft links.
487 * preamble.C (end_preamble): passed a LyXTextClass arg.
488 (parse_preamble): returns the document LyXTextClass.
490 * tabular.C (handle_tabular): passed a LyXTextClass arg. In turn
491 pass it to parse_text.
493 * tex2lyx.C: add some global vars, build_lyxdir et al. For now,
494 give them some horrible hard-coded value.
495 (main): receive a LyXTextClass var from parse_preamble and pass it
498 * text.C (parse_text): receives a LyXTextClass arg. Use it to
499 remove the hard-coded handling of floats and instead check the
500 textclass for its existence. Also handle wide floats naturally.
502 * tex2lyx.h: associated changes to function declarations.
504 2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
506 * texparser.C (catInit): same warning avoidance as in math_parser.C
507 (setCatCode): cast to safe type
510 2003-05-17 Joao Luis M. Assirati <assirati@fma.if.usp.br>
512 * texparser.C: fix paragraph parsing after comment
514 2003-04-29 André Pönitz <poenitz@gmx.net>
517 texparser.h: whitespace
519 2003-04-20 Kayvan A. Sylvan <kayvan@sylvan.com>
521 * table.C: use string::erase(), not string::clear() to enable older
522 versions of gcc to compile the code.
524 2003-04-17 André Pönitz <poenitz@gmx.net>
531 * table.C: better table handling
533 * tex2lyx.C: lots of small changes
535 2003-02-25 Angus Leeming <leeming@lyx.org>
537 * .cvsignore: ignore *.lo and libtexparser.la.
539 2003-02-20 Angus Leeming <leeming@lyx.org>
541 * tex2lyx.C: swap <sstream> for "Lsstream.h".
543 2003-02-11 Angus Leeming <leeming@lyx.org>
545 * tex2lyx.C (handle_opt): prevent infinite loop if opts is empty.
546 (handle_package): new function, factoring code out of Parser::parse.
547 (trim): copied across from support/lstrings.C
548 (Parser::parse): handle '\usepackage{foo, bar}'.
550 2003-02-11 André Pönitz <poenitz@gmx.net>
552 * tex2lyx.C: first shot at real code
554 2003-02-11 Angus Leeming <leeming@lyx.org>
556 * .cvsignore: new file.
558 2003-02-10 Angus Leeming <leeming@lyx.org>
560 * Makefile.am: empty, dummy file so that autogen.sh and configure