1 2004-11-27 Georg Baum <Georg.Baum@post.rwth-aachen.de>
3 * table.C (handle_colalign): handle comments
4 * table.C (handle_tabular): don't crash on clines with out of range
7 2004-11-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
9 * tex2lyx.C: remove format hack
11 2004-11-07 Georg Baum <Georg.Baum@post.rwth-aachen.de>
13 * texparser.C (getNewline): new
14 * texparser.C (tokenize): fix bug 1730 by handling MAC line endings
17 2004-10-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
19 * tex2lyx.C (formats): new, needed for libsupport.a
21 2004-10-20 Georg Baum <Georg.Baum@post.rwth-aachen.de>
23 * text.C (parse_text): replace newlines with spaces in arguments to
24 known latex commands, fixes bug 1620
26 2004-10-12 Georg Baum <Georg.Baum@post.rwth-aachen.de>
28 * preamble.C (end_preamble): change file format from 236 to 237
29 * preamble.C (h_use_geometry, h_use_bibtopic, h_tracking_changes):
30 change from "0" to "false"
32 2004-08-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
34 * preamble.C (end_preamble): change file format from 235 to 236
35 * preamble.C (end_preamble): add \begin_document, \begin_header and
37 * preamble.C (h_papersize): change from "Default" to "default"
38 * tex2lyx.C (tex2lyx): add end_body tag
40 2008-08-16 José Matos <jamatos@lyx.org>
42 * context.C (begin_deeper, end_deeper):
43 * preamble.C (end_preamble):
44 * table.C (handle_tabular):
45 * text.C (end_inset, handle_ert, handle_comment):
46 (parse_text_attributes, parse_text): remove space at end of line.
48 2004-08-10 Georg Baum <Georg.Baum@post.rwth-aachen.de>
50 * preamble.C (split_options): new, split package options into vector
51 * preamble.C (add_package): new, add a package with options to
53 * preamble.C, tex2lyx.h (used_packages): new map of used packages
55 * preamble.C (handle_package): handle natbib and jurabib package
56 * preamble.C (handle_package): output a message for unhandled options
57 * preamble.C (parse_preamble): handle \jurabibsetup
58 * text.C (known_natbib_commands): new list of known natbib ccommands
59 * text.C (known_jurabib_commands): new list of known jurabib ccommands
60 * text.C (getCiteArguments): new, parse cite command arguments
61 * text.C (parse_text): handle natbib and jurabib citation commands
63 2004-07-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
65 * preamble.C (end_preamble): change file format from 228 to 235
66 * preamble.C (end_preamble): add use_bibtopic flag
67 * preamble.C (end_preamble): replace use_natbib with cite_engine
68 * preamble.C: change the paperpackage default from "default" to
69 "none". The old setting only worked by accident.
70 * tex2lyx.[Ch] (getMasterFilePath): new, needed for included graphics
71 * text.C (parse_environment): add sideways flag for float insets
72 * text.C (parse_text): add graphics file extension if necessary
73 * text.C (find_file): new helper function
75 2004-07-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
77 * math.C (parse_math): change tex "\\cr" line ending to "\\\\"
78 * table.C (parse_table): recognize tex "\\cr" line ending
80 2004-06-28 Georg Baum <Georg.Baum@post.rwth-aachen.de>
82 * math.C, preamble.C, tex2lyx.[Ch], text.C: const fixes
83 * context.[Ch]: new Font struct, and add it to Context
84 * text.C (parse_text): reset size after size change
85 * text.C: handle declaration form of font attribute changes (new
87 * text.C (parse_text): handle \textmd, \textup and \textnormal
88 * text.C (parse_text_attributes): new
90 2004-06-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
92 * text.C (output_command_layout, parse_environment): fix bug 1446
93 by passing parent_context.deeper_paragraph to the child context
95 2004-06-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
97 * preamble.C, text.C: s/wether/whether/g
98 * text.C (eat_whitespace): new method
99 * texparser.C (getArg): use always curr_token().asInput()
100 * texparser.[Ch] (isParagraph): new method
101 * texparser.C (skip_spaces): handle "\n +\n" correctly
102 * texparser.[Ch] (asMode): remove, since it is unused
104 2004-05-27 Lars Gullik Bjonnes <larsbj@gullik.net>
106 * Makefile.am (BUILT_SOURCES): move lengthcommon.C from here...
107 (tex2lyx_SOURCES): ... to here
109 * lengthcommon.C: new file
111 2004-04-30 Georg Baum <Georg.Baum@post.rwth-aachen.de>
113 * preamble.C: recognize \lyxdot
114 * text.C (parse_text): translate \lyxdot in graphics file names
115 * text.C (handle_ert): translate '\n' (fixes %-newline combinations
118 2004-03-26 Georg Baum <Georg.Baum@post.rwth-aachen.de>
120 * text.C (parse_text): handle vspaces like '1cm' correctly
122 2004-02-01 Lars Gullik Bjonnes <larsbj@gullik.net>
124 * text.C (parse_box): "\\" -> '\\' in calls to contains.
126 2004-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
128 * text.C: reorder the using statements.
129 (translate_len): remove usage of a uninitialized variable.
130 (isLayout): make it adaptable and constify operator()
131 (findLayout): reformat slightly and dont use the same var for
134 2004-01-06 Georg Baum <Georg.Baum@post.rwth-aachen.de>
136 * text.C: fix status tag output for ERT inset
138 2003-12-17 Georg Baum <Georg.Baum@post.rwth-aachen.de>
140 * preamble.C: Change file format from 225 to 228
141 * text.C: Convert minipages and parboxes to box insets
142 * text.C: Changes for format 228 (see ../../development/FORMAT)
143 * text.C: Add lyxgreyedout environment
144 * context.[Ch]: New function Context::add_extra_stuff()
146 2003-12-08 Georg Baum <Georg.Baum@post.rwth-aachen.de>
148 * text.C: Use the new VSpace inset (fixes a bug with added_space top)
149 * text.C: Fix \= in tabbing env again
150 * text.C: Fix invocation of parse_command()
152 2003-11-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
156 * text.C: Read a list of commands and their arguments from a reLyX
157 compatible syntax file in order to parse optional argumnts correctly.
163 * math.C: change size() to !empty() where it was used as bool
165 2003-11-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
170 * context.[Ch]: New functions Context::set_item(),
171 Context::new_paragraph(ostream & os) and Context::atParagraphStart()
172 to make Context usage more explicit
173 * texparser.[Ch]: Rework Parser::tokenize (see comment in texparser.h)
176 * texparser.C: Don't silently drop comments
177 * texparser.C: Token::asInput() does not append a space anymore
178 * texparser.[Ch]: Renamed Parser::prev_token() to Parser::curr_token().
179 New function Parser::prev_token() returns now really the previous token
181 * text.C: Convert known vspaces at paragraph start to \\added_space_top
182 * preamble.C: Don't put out newlines twice.
183 * text.C: Fix minipage position bug
184 * text.C: Fix \labelwidthstring bug
185 * text.C: Recognize alignment environments
186 * text.C: Fix a few cases of incorrect context usage, resulting
187 in missing or superflous \begin_layout / \end_laout lines.
189 2003-10-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
199 - add \text{}, \intertext{} and \fbox{} support in mathmode.
200 - add support for some math environments like displaymath
201 - allow parsing of partial documents (for inclusion with \input).
202 - steal commandline switches -c and -f from reLyX to support the
204 - add support for lengths with comma (4,5cm instead of 4.5cm) to
205 minipage environments. Handle \textwidth etc. without factor
206 - rearrange active_environments.[push,pop]back() so that they are always
208 - write an error message if layout file could not be found.
209 - convert \begin{comment}...\end{comment} to comment inset
210 - handle \= correctly inside tabbing environments
211 - fix multicolumn vertical rule bug in tables
212 - add missing \includegraphics options
213 - output minipages with latex lengths as ERT, since lyx cannot handle them
214 - recognize \textsl{}
215 - remove duplicate \ldots
216 - recognize \bibliographystyle and \bibliography
217 - handle \psfrag{ps-text}[ps-pos][tex-pos]{tex-text} correctly
218 - handle environments in table cells correctly
219 - add missing -userdir and -sysdir commandline switches
220 - recognize start of appendix
221 - handle optional arg to \item as ERT in itemize environment, since LyX
222 does not support it directly
224 2003-10-18 Lars Gullik Bjønnes <larsbj@gullik.net>
226 * Makefile.am (BUILT_SOURCES): use this instead of "linked_files"
227 and the link_files target. make the BUILT_SOURCES dependency
228 automatically link the needed files.
230 2003-10-14 Angus Leeming <leeming@lyx.org>
232 * Makefile.am: move boost.C from the linked_files section
233 to the tex2lyx_SOURCES section.
235 * boost.C: new file. Simpler than the version in the main lyx source.
236 No reference to the emergencyCleanup stuff.
238 * tex2lyx.C: remove emergencyCleanup() stuff.
240 2003-10-08 Angus Leeming <leeming@lyx.org>
242 Fix doxygen warnings.
244 * Spacing.h: \file Spacing.h -> \file tex2lyx/Spacing.h
245 * gettext.C: \file gettext.C -> \file tex2lyx/gettext.C
246 * gettext.h: \file gettext.h -> \file tex2lyx/gettext.h
247 * lyxfont.C: \file lyxfont.C -> \file tex2lyx/lyxfont.C
248 * lyxfont.h: \file lyxfont.h -> \file tex2lyx/lyxfont.h
249 * text.C: \file text.C -> \file tex2lyx/text.C
251 2003-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
253 * tex2lyx.C: adjust for new debugstream.
255 2003-09-08 Angus Leeming <leeming@lyx.org>
261 * texparser.C: remove redundant using directives.
263 2003-08-19 Angus Leeming <leeming@lyx.org>
265 * most files: add 'standard conformant' header blurb.
266 Also add Jean-Marc as an author where appropriate.
268 2003-08-08 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
270 * Makefile.am (EXTRA_DIST):
271 * test-insets.tex: new file. Describes the insets and special
272 characters that tex2lyx handles.
274 * text.C (parse_text): support \vref, \vpageref (only one optional
275 argument), \prettyref; add support for include inset; when \\ has
276 optional arguments, use ERT; support also \listoffigures,
277 \listoftables, and \listof{xxx} for existing float types;
278 translate lenghts properly for graphics inset.
279 (parse_environment): add support for minipages
281 * text.C (translate_len): A simple function to translate a latex
282 length to something lyx can understand. Not perfect, but rather
285 2003-08-07 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
287 * text.C (parse_text): special handling for \item and \bibitem
290 * context.C (begin_layout, end_layout, begin_deeper, end_deeper):
291 tiny helper functions
293 (check_end_deeper): add special handling for the case of a normal
294 paragraph inside a list-like environment.
296 * test-structure.tex: add more stuff there
298 2003-08-05 Alfredo Braunstein <abraunst@libero.it>
300 * context.h: compile fix
302 2003-08-05 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
304 * text.C: some tweaks to make nesting work. What still does not
305 work is nesting a standard paragraph in a list.
307 * test-structure.tex: update a bit
309 * context.C (check_deeper, check_end_deeper): new methods to
310 handle the *_deeper stuff
312 * preamble.C (end_preamble): small tweaks
314 2003-08-03 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
316 * text.C: update to use Context struct, and more notably:
317 (cap, check_layout, check_end_layout): remove
318 (parse_text_snippet): new thin wrapper around parse_text, used for
319 things like \textrm{...}
320 (parse_environment): remove existing depth handling code, which is
321 handled transparently by the Context struct; make unknown
322 environments work (again?) through ERT
324 * test-structure.tex: new test file, used to try out various
329 * table.C: update to use Context struct
331 * context.[Ch]: new helper struct which is passed to parse_*
332 functions and handles *_layout and *_deeper tags output
334 * Makefile.am (EXTRA_DIST): new file test-structure.tex
335 (tex2lyx_SOURCES): add context.[Ch]
337 2003-07-30 Angus Leeming <leeming@lyx.org>
339 * Makefile.am: Hide the fact that we re-generate those symbolic links
342 2003-07-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
344 * text.C (check_layout): \layout -> \begin_layout
345 (parse_text_in_inset): convenience function
347 * tex2lyx.C (main): \the_end -> \end_document
349 * preamble.C (end_preamble): update version number to 225
351 * text.C (parse_text): replace test on "lyxcode" with test on
352 LyXLayout::freespacing.
353 (check_end_layout): new function, used to check whether we need to
356 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
358 * tex2lyx.C (clean_layouts): remove
360 * text.C: output lazily the \layout commands using the
361 check_layout function. Remove all explicit \layout tags.
362 (parse_text): pass an optional parameter 'layout'
365 * text.C (output_command_layout): renamed from output_layout
366 (parse_environment): new method containing a part of parse_text
370 * table.C: \begin_layout -> \layout. We are not quite ready for
373 2003-07-28 José Matos <jamatos@lyx.org>
378 * table.C: \layout -> \begin_layout.
380 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
382 * text.C (parse_text): read environment from layout file too. Now,
383 all layout entries are supported (but many hacks remain); note
384 that the nesting support is broken and will have to be completely
386 (parse_text): basic support for english double quotes
388 * table.C (handle_tabular): make the output more similar to LyX
391 * text.C (output_layout): fix handling of optional argument
392 (parse_text): small tweaks to make output format closer to lyx
393 format; support \tableofcontents; fix/improve support for various
396 2003-07-27 Angus Leeming <leeming@lyx.org>
398 * Makefile.am: remove unused graphics_link_files cruft.
401 2003-07-27 Angus Leeming <leeming@lyx.org>
403 * tex2lyx.C: add Debug::ANY hack.
405 * text.C: remove hardcoded command layouts.
407 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
409 * text.C (parse_text): fix handling of \LaTeXe macro
411 2003-07-26 Angus Leeming <leeming@lyx.org>
415 * gettext.[Ch]: minimal (near empty) analogues of the real LyX
416 files; enough to get LyXTextClass and LyXLayout to compile without
417 needing to store any real information about Spacing or Font.
419 * Makefile.am: add these files above and also include a minimal
420 chunk of the main lyx source tree as soft links in order to add in
421 LyXTextClass and LyXLayout.
423 * .cvsignore: add all these soft links.
425 * preamble.C (end_preamble): passed a LyXTextClass arg.
426 (parse_preamble): returns the document LyXTextClass.
428 * tabular.C (handle_tabular): passed a LyXTextClass arg. In turn
429 pass it to parse_text.
431 * tex2lyx.C: add some global vars, build_lyxdir et al. For now,
432 give them some horrible hard-coded value.
433 (main): receive a LyXTextClass var from parse_preamble and pass it
436 * text.C (parse_text): receives a LyXTextClass arg. Use it to
437 remove the hard-coded handling of floats and instead check the
438 textclass for its existence. Also handle wide floats naturally.
440 * tex2lyx.h: associated changes to function declarations.
442 2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
444 * texparser.C (catInit): same warning avoidance as in math_parser.C
445 (setCatCode): cast to safe type
448 2003-05-17 Joao Luis M. Assirati <assirati@fma.if.usp.br>
450 * texparser.C: fix paragraph parsing after comment
452 2003-04-29 André Pönitz <poenitz@gmx.net>
455 texparser.h: whitespace
457 2003-04-20 Kayvan A. Sylvan <kayvan@sylvan.com>
459 * table.C: use string::erase(), not string::clear() to enable older
460 versions of gcc to compile the code.
462 2003-04-17 André Pönitz <poenitz@gmx.net>
469 * table.C: better table handling
471 * tex2lyx.C: lots of small changes
473 2003-02-25 Angus Leeming <leeming@lyx.org>
475 * .cvsignore: ignore *.lo and libtexparser.la.
477 2003-02-20 Angus Leeming <leeming@lyx.org>
479 * tex2lyx.C: swap <sstream> for "Lsstream.h".
481 2003-02-11 Angus Leeming <leeming@lyx.org>
483 * tex2lyx.C (handle_opt): prevent infinite loop if opts is empty.
484 (handle_package): new function, factoring code out of Parser::parse.
485 (trim): copied across from support/lstrings.C
486 (Parser::parse): handle '\usepackage{foo, bar}'.
488 2003-02-11 André Pönitz <poenitz@gmx.net>
490 * tex2lyx.C: first shot at real code
492 2003-02-11 Angus Leeming <leeming@lyx.org>
494 * .cvsignore: new file.
496 2003-02-10 Angus Leeming <leeming@lyx.org>
498 * Makefile.am: empty, dummy file so that autogen.sh and configure