1 2004-12-15 Georg Baum <Georg.Baum@post.rwth-aachen.de>
3 * table.C (ColInfo, LTRowType, RowInfo, CellInfo, verbose_align):
4 new, extended from math_gridinfo.h and tabular.h
5 * table.C (write_attribute): new, from tabular.C
6 * table.C (read_hlines): remove
7 * table.C (parse_hlines): new
8 * table.C (RowPosition): new
9 * table.C (parse_table): handle comments in hlines
10 * table.C (parse_table, handle_tabular): add longtable support
11 * table.C (handle_tabular): fix "unexpected dummy size" error message
12 * table.C (handle_tabular): fix off by one error for clines
13 * text.C (parse_environment): add longtable support
15 2004-12-14 Angus Leeming <leeming@lyx.org>
17 * tex2lyx.C (main): no longer pass pointers to os::init.
19 2004-12-14 Angus Leeming <leeming@lyx.org>
21 * Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
22 to overcome bug in the MinGW port of g++ 3.4.2.
24 2004-12-05 Lars Gullik Bjønnes <larsbj@lyx.org>
26 * Makefile.am (tex2lyx_LDADD): use boost variables
28 2004-11-27 Georg Baum <Georg.Baum@post.rwth-aachen.de>
30 * table.C (handle_colalign): handle comments
31 * table.C (handle_tabular): don't crash on clines with out of range
34 2004-11-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
36 * tex2lyx.C: remove format hack
38 2004-11-07 Georg Baum <Georg.Baum@post.rwth-aachen.de>
40 * texparser.C (getNewline): new
41 * texparser.C (tokenize): fix bug 1730 by handling MAC line endings
44 2004-10-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
46 * tex2lyx.C (formats): new, needed for libsupport.a
48 2004-10-20 Georg Baum <Georg.Baum@post.rwth-aachen.de>
50 * text.C (parse_text): replace newlines with spaces in arguments to
51 known latex commands, fixes bug 1620
53 2004-10-12 Georg Baum <Georg.Baum@post.rwth-aachen.de>
55 * preamble.C (end_preamble): change file format from 236 to 237
56 * preamble.C (h_use_geometry, h_use_bibtopic, h_tracking_changes):
57 change from "0" to "false"
59 2004-08-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
61 * preamble.C (end_preamble): change file format from 235 to 236
62 * preamble.C (end_preamble): add \begin_document, \begin_header and
64 * preamble.C (h_papersize): change from "Default" to "default"
65 * tex2lyx.C (tex2lyx): add end_body tag
67 2008-08-16 José Matos <jamatos@lyx.org>
69 * context.C (begin_deeper, end_deeper):
70 * preamble.C (end_preamble):
71 * table.C (handle_tabular):
72 * text.C (end_inset, handle_ert, handle_comment):
73 (parse_text_attributes, parse_text): remove space at end of line.
75 2004-08-10 Georg Baum <Georg.Baum@post.rwth-aachen.de>
77 * preamble.C (split_options): new, split package options into vector
78 * preamble.C (add_package): new, add a package with options to
80 * preamble.C, tex2lyx.h (used_packages): new map of used packages
82 * preamble.C (handle_package): handle natbib and jurabib package
83 * preamble.C (handle_package): output a message for unhandled options
84 * preamble.C (parse_preamble): handle \jurabibsetup
85 * text.C (known_natbib_commands): new list of known natbib ccommands
86 * text.C (known_jurabib_commands): new list of known jurabib ccommands
87 * text.C (getCiteArguments): new, parse cite command arguments
88 * text.C (parse_text): handle natbib and jurabib citation commands
90 2004-07-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
92 * preamble.C (end_preamble): change file format from 228 to 235
93 * preamble.C (end_preamble): add use_bibtopic flag
94 * preamble.C (end_preamble): replace use_natbib with cite_engine
95 * preamble.C: change the paperpackage default from "default" to
96 "none". The old setting only worked by accident.
97 * tex2lyx.[Ch] (getMasterFilePath): new, needed for included graphics
98 * text.C (parse_environment): add sideways flag for float insets
99 * text.C (parse_text): add graphics file extension if necessary
100 * text.C (find_file): new helper function
102 2004-07-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
104 * math.C (parse_math): change tex "\\cr" line ending to "\\\\"
105 * table.C (parse_table): recognize tex "\\cr" line ending
107 2004-06-28 Georg Baum <Georg.Baum@post.rwth-aachen.de>
109 * math.C, preamble.C, tex2lyx.[Ch], text.C: const fixes
110 * context.[Ch]: new Font struct, and add it to Context
111 * text.C (parse_text): reset size after size change
112 * text.C: handle declaration form of font attribute changes (new
114 * text.C (parse_text): handle \textmd, \textup and \textnormal
115 * text.C (parse_text_attributes): new
117 2004-06-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
119 * text.C (output_command_layout, parse_environment): fix bug 1446
120 by passing parent_context.deeper_paragraph to the child context
122 2004-06-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
124 * preamble.C, text.C: s/wether/whether/g
125 * text.C (eat_whitespace): new method
126 * texparser.C (getArg): use always curr_token().asInput()
127 * texparser.[Ch] (isParagraph): new method
128 * texparser.C (skip_spaces): handle "\n +\n" correctly
129 * texparser.[Ch] (asMode): remove, since it is unused
131 2004-05-27 Lars Gullik Bjonnes <larsbj@gullik.net>
133 * Makefile.am (BUILT_SOURCES): move lengthcommon.C from here...
134 (tex2lyx_SOURCES): ... to here
136 * lengthcommon.C: new file
138 2004-04-30 Georg Baum <Georg.Baum@post.rwth-aachen.de>
140 * preamble.C: recognize \lyxdot
141 * text.C (parse_text): translate \lyxdot in graphics file names
142 * text.C (handle_ert): translate '\n' (fixes %-newline combinations
145 2004-03-26 Georg Baum <Georg.Baum@post.rwth-aachen.de>
147 * text.C (parse_text): handle vspaces like '1cm' correctly
149 2004-02-01 Lars Gullik Bjonnes <larsbj@gullik.net>
151 * text.C (parse_box): "\\" -> '\\' in calls to contains.
153 2004-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
155 * text.C: reorder the using statements.
156 (translate_len): remove usage of a uninitialized variable.
157 (isLayout): make it adaptable and constify operator()
158 (findLayout): reformat slightly and dont use the same var for
161 2004-01-06 Georg Baum <Georg.Baum@post.rwth-aachen.de>
163 * text.C: fix status tag output for ERT inset
165 2003-12-17 Georg Baum <Georg.Baum@post.rwth-aachen.de>
167 * preamble.C: Change file format from 225 to 228
168 * text.C: Convert minipages and parboxes to box insets
169 * text.C: Changes for format 228 (see ../../development/FORMAT)
170 * text.C: Add lyxgreyedout environment
171 * context.[Ch]: New function Context::add_extra_stuff()
173 2003-12-08 Georg Baum <Georg.Baum@post.rwth-aachen.de>
175 * text.C: Use the new VSpace inset (fixes a bug with added_space top)
176 * text.C: Fix \= in tabbing env again
177 * text.C: Fix invocation of parse_command()
179 2003-11-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
183 * text.C: Read a list of commands and their arguments from a reLyX
184 compatible syntax file in order to parse optional argumnts correctly.
190 * math.C: change size() to !empty() where it was used as bool
192 2003-11-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
197 * context.[Ch]: New functions Context::set_item(),
198 Context::new_paragraph(ostream & os) and Context::atParagraphStart()
199 to make Context usage more explicit
200 * texparser.[Ch]: Rework Parser::tokenize (see comment in texparser.h)
203 * texparser.C: Don't silently drop comments
204 * texparser.C: Token::asInput() does not append a space anymore
205 * texparser.[Ch]: Renamed Parser::prev_token() to Parser::curr_token().
206 New function Parser::prev_token() returns now really the previous token
208 * text.C: Convert known vspaces at paragraph start to \\added_space_top
209 * preamble.C: Don't put out newlines twice.
210 * text.C: Fix minipage position bug
211 * text.C: Fix \labelwidthstring bug
212 * text.C: Recognize alignment environments
213 * text.C: Fix a few cases of incorrect context usage, resulting
214 in missing or superflous \begin_layout / \end_laout lines.
216 2003-10-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
226 - add \text{}, \intertext{} and \fbox{} support in mathmode.
227 - add support for some math environments like displaymath
228 - allow parsing of partial documents (for inclusion with \input).
229 - steal commandline switches -c and -f from reLyX to support the
231 - add support for lengths with comma (4,5cm instead of 4.5cm) to
232 minipage environments. Handle \textwidth etc. without factor
233 - rearrange active_environments.[push,pop]back() so that they are always
235 - write an error message if layout file could not be found.
236 - convert \begin{comment}...\end{comment} to comment inset
237 - handle \= correctly inside tabbing environments
238 - fix multicolumn vertical rule bug in tables
239 - add missing \includegraphics options
240 - output minipages with latex lengths as ERT, since lyx cannot handle them
241 - recognize \textsl{}
242 - remove duplicate \ldots
243 - recognize \bibliographystyle and \bibliography
244 - handle \psfrag{ps-text}[ps-pos][tex-pos]{tex-text} correctly
245 - handle environments in table cells correctly
246 - add missing -userdir and -sysdir commandline switches
247 - recognize start of appendix
248 - handle optional arg to \item as ERT in itemize environment, since LyX
249 does not support it directly
251 2003-10-18 Lars Gullik Bjønnes <larsbj@gullik.net>
253 * Makefile.am (BUILT_SOURCES): use this instead of "linked_files"
254 and the link_files target. make the BUILT_SOURCES dependency
255 automatically link the needed files.
257 2003-10-14 Angus Leeming <leeming@lyx.org>
259 * Makefile.am: move boost.C from the linked_files section
260 to the tex2lyx_SOURCES section.
262 * boost.C: new file. Simpler than the version in the main lyx source.
263 No reference to the emergencyCleanup stuff.
265 * tex2lyx.C: remove emergencyCleanup() stuff.
267 2003-10-08 Angus Leeming <leeming@lyx.org>
269 Fix doxygen warnings.
271 * Spacing.h: \file Spacing.h -> \file tex2lyx/Spacing.h
272 * gettext.C: \file gettext.C -> \file tex2lyx/gettext.C
273 * gettext.h: \file gettext.h -> \file tex2lyx/gettext.h
274 * lyxfont.C: \file lyxfont.C -> \file tex2lyx/lyxfont.C
275 * lyxfont.h: \file lyxfont.h -> \file tex2lyx/lyxfont.h
276 * text.C: \file text.C -> \file tex2lyx/text.C
278 2003-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
280 * tex2lyx.C: adjust for new debugstream.
282 2003-09-08 Angus Leeming <leeming@lyx.org>
288 * texparser.C: remove redundant using directives.
290 2003-08-19 Angus Leeming <leeming@lyx.org>
292 * most files: add 'standard conformant' header blurb.
293 Also add Jean-Marc as an author where appropriate.
295 2003-08-08 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
297 * Makefile.am (EXTRA_DIST):
298 * test-insets.tex: new file. Describes the insets and special
299 characters that tex2lyx handles.
301 * text.C (parse_text): support \vref, \vpageref (only one optional
302 argument), \prettyref; add support for include inset; when \\ has
303 optional arguments, use ERT; support also \listoffigures,
304 \listoftables, and \listof{xxx} for existing float types;
305 translate lenghts properly for graphics inset.
306 (parse_environment): add support for minipages
308 * text.C (translate_len): A simple function to translate a latex
309 length to something lyx can understand. Not perfect, but rather
312 2003-08-07 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
314 * text.C (parse_text): special handling for \item and \bibitem
317 * context.C (begin_layout, end_layout, begin_deeper, end_deeper):
318 tiny helper functions
320 (check_end_deeper): add special handling for the case of a normal
321 paragraph inside a list-like environment.
323 * test-structure.tex: add more stuff there
325 2003-08-05 Alfredo Braunstein <abraunst@libero.it>
327 * context.h: compile fix
329 2003-08-05 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
331 * text.C: some tweaks to make nesting work. What still does not
332 work is nesting a standard paragraph in a list.
334 * test-structure.tex: update a bit
336 * context.C (check_deeper, check_end_deeper): new methods to
337 handle the *_deeper stuff
339 * preamble.C (end_preamble): small tweaks
341 2003-08-03 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
343 * text.C: update to use Context struct, and more notably:
344 (cap, check_layout, check_end_layout): remove
345 (parse_text_snippet): new thin wrapper around parse_text, used for
346 things like \textrm{...}
347 (parse_environment): remove existing depth handling code, which is
348 handled transparently by the Context struct; make unknown
349 environments work (again?) through ERT
351 * test-structure.tex: new test file, used to try out various
356 * table.C: update to use Context struct
358 * context.[Ch]: new helper struct which is passed to parse_*
359 functions and handles *_layout and *_deeper tags output
361 * Makefile.am (EXTRA_DIST): new file test-structure.tex
362 (tex2lyx_SOURCES): add context.[Ch]
364 2003-07-30 Angus Leeming <leeming@lyx.org>
366 * Makefile.am: Hide the fact that we re-generate those symbolic links
369 2003-07-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
371 * text.C (check_layout): \layout -> \begin_layout
372 (parse_text_in_inset): convenience function
374 * tex2lyx.C (main): \the_end -> \end_document
376 * preamble.C (end_preamble): update version number to 225
378 * text.C (parse_text): replace test on "lyxcode" with test on
379 LyXLayout::freespacing.
380 (check_end_layout): new function, used to check whether we need to
383 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
385 * tex2lyx.C (clean_layouts): remove
387 * text.C: output lazily the \layout commands using the
388 check_layout function. Remove all explicit \layout tags.
389 (parse_text): pass an optional parameter 'layout'
392 * text.C (output_command_layout): renamed from output_layout
393 (parse_environment): new method containing a part of parse_text
397 * table.C: \begin_layout -> \layout. We are not quite ready for
400 2003-07-28 José Matos <jamatos@lyx.org>
405 * table.C: \layout -> \begin_layout.
407 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
409 * text.C (parse_text): read environment from layout file too. Now,
410 all layout entries are supported (but many hacks remain); note
411 that the nesting support is broken and will have to be completely
413 (parse_text): basic support for english double quotes
415 * table.C (handle_tabular): make the output more similar to LyX
418 * text.C (output_layout): fix handling of optional argument
419 (parse_text): small tweaks to make output format closer to lyx
420 format; support \tableofcontents; fix/improve support for various
423 2003-07-27 Angus Leeming <leeming@lyx.org>
425 * Makefile.am: remove unused graphics_link_files cruft.
428 2003-07-27 Angus Leeming <leeming@lyx.org>
430 * tex2lyx.C: add Debug::ANY hack.
432 * text.C: remove hardcoded command layouts.
434 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
436 * text.C (parse_text): fix handling of \LaTeXe macro
438 2003-07-26 Angus Leeming <leeming@lyx.org>
442 * gettext.[Ch]: minimal (near empty) analogues of the real LyX
443 files; enough to get LyXTextClass and LyXLayout to compile without
444 needing to store any real information about Spacing or Font.
446 * Makefile.am: add these files above and also include a minimal
447 chunk of the main lyx source tree as soft links in order to add in
448 LyXTextClass and LyXLayout.
450 * .cvsignore: add all these soft links.
452 * preamble.C (end_preamble): passed a LyXTextClass arg.
453 (parse_preamble): returns the document LyXTextClass.
455 * tabular.C (handle_tabular): passed a LyXTextClass arg. In turn
456 pass it to parse_text.
458 * tex2lyx.C: add some global vars, build_lyxdir et al. For now,
459 give them some horrible hard-coded value.
460 (main): receive a LyXTextClass var from parse_preamble and pass it
463 * text.C (parse_text): receives a LyXTextClass arg. Use it to
464 remove the hard-coded handling of floats and instead check the
465 textclass for its existence. Also handle wide floats naturally.
467 * tex2lyx.h: associated changes to function declarations.
469 2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
471 * texparser.C (catInit): same warning avoidance as in math_parser.C
472 (setCatCode): cast to safe type
475 2003-05-17 Joao Luis M. Assirati <assirati@fma.if.usp.br>
477 * texparser.C: fix paragraph parsing after comment
479 2003-04-29 André Pönitz <poenitz@gmx.net>
482 texparser.h: whitespace
484 2003-04-20 Kayvan A. Sylvan <kayvan@sylvan.com>
486 * table.C: use string::erase(), not string::clear() to enable older
487 versions of gcc to compile the code.
489 2003-04-17 André Pönitz <poenitz@gmx.net>
496 * table.C: better table handling
498 * tex2lyx.C: lots of small changes
500 2003-02-25 Angus Leeming <leeming@lyx.org>
502 * .cvsignore: ignore *.lo and libtexparser.la.
504 2003-02-20 Angus Leeming <leeming@lyx.org>
506 * tex2lyx.C: swap <sstream> for "Lsstream.h".
508 2003-02-11 Angus Leeming <leeming@lyx.org>
510 * tex2lyx.C (handle_opt): prevent infinite loop if opts is empty.
511 (handle_package): new function, factoring code out of Parser::parse.
512 (trim): copied across from support/lstrings.C
513 (Parser::parse): handle '\usepackage{foo, bar}'.
515 2003-02-11 André Pönitz <poenitz@gmx.net>
517 * tex2lyx.C: first shot at real code
519 2003-02-11 Angus Leeming <leeming@lyx.org>
521 * .cvsignore: new file.
523 2003-02-10 Angus Leeming <leeming@lyx.org>
525 * Makefile.am: empty, dummy file so that autogen.sh and configure