1 2005-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
3 * tex2lyx.C: rewrite to use boost.filesystem
6 * Makefile.am (BOOST_LIBS): add BOOST_FILESYSTEM
8 2005-01-27 Lars Gullik Bjonnes <larsbj@gullik.net>
10 * Spacing (set): take double instead of float
12 * tex2lyx.C: convert stuff
14 2005-01-11 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
16 * Spacing.h: remove unused parameters
18 2005-01-10 Angus Leeming <leeming@lyx.org>
20 * tex2lyx.C: use support/package.h to provide the paths to the
21 various directories used by LyX.
23 2005-01-06 Lars Gullik Bjonnes <larsbj@gullik.net>
25 * text.C: tostr -> convert
27 2005-01-06 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
29 * Spacing.h: adapt dummy file to the changes in src/Spacing.h.
31 2005-01-04 Georg Baum <Georg.Baum@post.rwth-aachen.de>
33 * preamble.C (parse_preamble): handle second optional arg of
34 \newcommand etc. and add the command to the known commands (fixes
36 * texparser.[Ch] (getFullOpt): new, like getOpt but distinguish
37 between empty arguments and no argument found
38 * tex2lyx.[Ch]: (add_known_command): new
39 * text.C (parse_text): handle \newcommand etc. (see above)
40 * text.C (parse_text): add comment about \underline
41 * text.C (getCiteArguments): use getFullOpt
43 2004-12-15 Georg Baum <Georg.Baum@post.rwth-aachen.de>
45 * table.C (ColInfo, LTRowType, RowInfo, CellInfo, verbose_align):
46 new, extended from math_gridinfo.h and tabular.h
47 * table.C (write_attribute): new, from tabular.C
48 * table.C (read_hlines): remove
49 * table.C (parse_hlines): new
50 * table.C (RowPosition): new
51 * table.C (parse_table): handle comments in hlines
52 * table.C (parse_table, handle_tabular): add longtable support
53 * table.C (handle_tabular): fix "unexpected dummy size" error message
54 * table.C (handle_tabular): fix off by one error for clines
55 * text.C (parse_environment): add longtable support
57 2004-12-14 Angus Leeming <leeming@lyx.org>
59 * tex2lyx.C (main): no longer pass pointers to os::init.
61 2004-12-14 Angus Leeming <leeming@lyx.org>
63 * Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
64 to overcome bug in the MinGW port of g++ 3.4.2.
66 2004-12-05 Lars Gullik Bjønnes <larsbj@lyx.org>
68 * Makefile.am (tex2lyx_LDADD): use boost variables
70 2004-11-27 Georg Baum <Georg.Baum@post.rwth-aachen.de>
72 * table.C (handle_colalign): handle comments
73 * table.C (handle_tabular): don't crash on clines with out of range
76 2004-11-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
78 * tex2lyx.C: remove format hack
80 2004-11-07 Georg Baum <Georg.Baum@post.rwth-aachen.de>
82 * texparser.C (getNewline): new
83 * texparser.C (tokenize): fix bug 1730 by handling MAC line endings
86 2004-10-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
88 * tex2lyx.C (formats): new, needed for libsupport.a
90 2004-10-20 Georg Baum <Georg.Baum@post.rwth-aachen.de>
92 * text.C (parse_text): replace newlines with spaces in arguments to
93 known latex commands, fixes bug 1620
95 2004-10-12 Georg Baum <Georg.Baum@post.rwth-aachen.de>
97 * preamble.C (end_preamble): change file format from 236 to 237
98 * preamble.C (h_use_geometry, h_use_bibtopic, h_tracking_changes):
99 change from "0" to "false"
101 2004-08-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
103 * preamble.C (end_preamble): change file format from 235 to 236
104 * preamble.C (end_preamble): add \begin_document, \begin_header and
106 * preamble.C (h_papersize): change from "Default" to "default"
107 * tex2lyx.C (tex2lyx): add end_body tag
109 2008-08-16 José Matos <jamatos@lyx.org>
111 * context.C (begin_deeper, end_deeper):
112 * preamble.C (end_preamble):
113 * table.C (handle_tabular):
114 * text.C (end_inset, handle_ert, handle_comment):
115 (parse_text_attributes, parse_text): remove space at end of line.
117 2004-08-10 Georg Baum <Georg.Baum@post.rwth-aachen.de>
119 * preamble.C (split_options): new, split package options into vector
120 * preamble.C (add_package): new, add a package with options to
122 * preamble.C, tex2lyx.h (used_packages): new map of used packages
124 * preamble.C (handle_package): handle natbib and jurabib package
125 * preamble.C (handle_package): output a message for unhandled options
126 * preamble.C (parse_preamble): handle \jurabibsetup
127 * text.C (known_natbib_commands): new list of known natbib ccommands
128 * text.C (known_jurabib_commands): new list of known jurabib ccommands
129 * text.C (getCiteArguments): new, parse cite command arguments
130 * text.C (parse_text): handle natbib and jurabib citation commands
132 2004-07-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
134 * preamble.C (end_preamble): change file format from 228 to 235
135 * preamble.C (end_preamble): add use_bibtopic flag
136 * preamble.C (end_preamble): replace use_natbib with cite_engine
137 * preamble.C: change the paperpackage default from "default" to
138 "none". The old setting only worked by accident.
139 * tex2lyx.[Ch] (getMasterFilePath): new, needed for included graphics
140 * text.C (parse_environment): add sideways flag for float insets
141 * text.C (parse_text): add graphics file extension if necessary
142 * text.C (find_file): new helper function
144 2004-07-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
146 * math.C (parse_math): change tex "\\cr" line ending to "\\\\"
147 * table.C (parse_table): recognize tex "\\cr" line ending
149 2004-06-28 Georg Baum <Georg.Baum@post.rwth-aachen.de>
151 * math.C, preamble.C, tex2lyx.[Ch], text.C: const fixes
152 * context.[Ch]: new Font struct, and add it to Context
153 * text.C (parse_text): reset size after size change
154 * text.C: handle declaration form of font attribute changes (new
156 * text.C (parse_text): handle \textmd, \textup and \textnormal
157 * text.C (parse_text_attributes): new
159 2004-06-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
161 * text.C (output_command_layout, parse_environment): fix bug 1446
162 by passing parent_context.deeper_paragraph to the child context
164 2004-06-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
166 * preamble.C, text.C: s/wether/whether/g
167 * text.C (eat_whitespace): new method
168 * texparser.C (getArg): use always curr_token().asInput()
169 * texparser.[Ch] (isParagraph): new method
170 * texparser.C (skip_spaces): handle "\n +\n" correctly
171 * texparser.[Ch] (asMode): remove, since it is unused
173 2004-05-27 Lars Gullik Bjonnes <larsbj@gullik.net>
175 * Makefile.am (BUILT_SOURCES): move lengthcommon.C from here...
176 (tex2lyx_SOURCES): ... to here
178 * lengthcommon.C: new file
180 2004-04-30 Georg Baum <Georg.Baum@post.rwth-aachen.de>
182 * preamble.C: recognize \lyxdot
183 * text.C (parse_text): translate \lyxdot in graphics file names
184 * text.C (handle_ert): translate '\n' (fixes %-newline combinations
187 2004-03-26 Georg Baum <Georg.Baum@post.rwth-aachen.de>
189 * text.C (parse_text): handle vspaces like '1cm' correctly
191 2004-02-01 Lars Gullik Bjonnes <larsbj@gullik.net>
193 * text.C (parse_box): "\\" -> '\\' in calls to contains.
195 2004-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
197 * text.C: reorder the using statements.
198 (translate_len): remove usage of a uninitialized variable.
199 (isLayout): make it adaptable and constify operator()
200 (findLayout): reformat slightly and dont use the same var for
203 2004-01-06 Georg Baum <Georg.Baum@post.rwth-aachen.de>
205 * text.C: fix status tag output for ERT inset
207 2003-12-17 Georg Baum <Georg.Baum@post.rwth-aachen.de>
209 * preamble.C: Change file format from 225 to 228
210 * text.C: Convert minipages and parboxes to box insets
211 * text.C: Changes for format 228 (see ../../development/FORMAT)
212 * text.C: Add lyxgreyedout environment
213 * context.[Ch]: New function Context::add_extra_stuff()
215 2003-12-08 Georg Baum <Georg.Baum@post.rwth-aachen.de>
217 * text.C: Use the new VSpace inset (fixes a bug with added_space top)
218 * text.C: Fix \= in tabbing env again
219 * text.C: Fix invocation of parse_command()
221 2003-11-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
225 * text.C: Read a list of commands and their arguments from a reLyX
226 compatible syntax file in order to parse optional argumnts correctly.
232 * math.C: change size() to !empty() where it was used as bool
234 2003-11-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
239 * context.[Ch]: New functions Context::set_item(),
240 Context::new_paragraph(ostream & os) and Context::atParagraphStart()
241 to make Context usage more explicit
242 * texparser.[Ch]: Rework Parser::tokenize (see comment in texparser.h)
245 * texparser.C: Don't silently drop comments
246 * texparser.C: Token::asInput() does not append a space anymore
247 * texparser.[Ch]: Renamed Parser::prev_token() to Parser::curr_token().
248 New function Parser::prev_token() returns now really the previous token
250 * text.C: Convert known vspaces at paragraph start to \\added_space_top
251 * preamble.C: Don't put out newlines twice.
252 * text.C: Fix minipage position bug
253 * text.C: Fix \labelwidthstring bug
254 * text.C: Recognize alignment environments
255 * text.C: Fix a few cases of incorrect context usage, resulting
256 in missing or superflous \begin_layout / \end_laout lines.
258 2003-10-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
268 - add \text{}, \intertext{} and \fbox{} support in mathmode.
269 - add support for some math environments like displaymath
270 - allow parsing of partial documents (for inclusion with \input).
271 - steal commandline switches -c and -f from reLyX to support the
273 - add support for lengths with comma (4,5cm instead of 4.5cm) to
274 minipage environments. Handle \textwidth etc. without factor
275 - rearrange active_environments.[push,pop]back() so that they are always
277 - write an error message if layout file could not be found.
278 - convert \begin{comment}...\end{comment} to comment inset
279 - handle \= correctly inside tabbing environments
280 - fix multicolumn vertical rule bug in tables
281 - add missing \includegraphics options
282 - output minipages with latex lengths as ERT, since lyx cannot handle them
283 - recognize \textsl{}
284 - remove duplicate \ldots
285 - recognize \bibliographystyle and \bibliography
286 - handle \psfrag{ps-text}[ps-pos][tex-pos]{tex-text} correctly
287 - handle environments in table cells correctly
288 - add missing -userdir and -sysdir commandline switches
289 - recognize start of appendix
290 - handle optional arg to \item as ERT in itemize environment, since LyX
291 does not support it directly
293 2003-10-18 Lars Gullik Bjønnes <larsbj@gullik.net>
295 * Makefile.am (BUILT_SOURCES): use this instead of "linked_files"
296 and the link_files target. make the BUILT_SOURCES dependency
297 automatically link the needed files.
299 2003-10-14 Angus Leeming <leeming@lyx.org>
301 * Makefile.am: move boost.C from the linked_files section
302 to the tex2lyx_SOURCES section.
304 * boost.C: new file. Simpler than the version in the main lyx source.
305 No reference to the emergencyCleanup stuff.
307 * tex2lyx.C: remove emergencyCleanup() stuff.
309 2003-10-08 Angus Leeming <leeming@lyx.org>
311 Fix doxygen warnings.
313 * Spacing.h: \file Spacing.h -> \file tex2lyx/Spacing.h
314 * gettext.C: \file gettext.C -> \file tex2lyx/gettext.C
315 * gettext.h: \file gettext.h -> \file tex2lyx/gettext.h
316 * lyxfont.C: \file lyxfont.C -> \file tex2lyx/lyxfont.C
317 * lyxfont.h: \file lyxfont.h -> \file tex2lyx/lyxfont.h
318 * text.C: \file text.C -> \file tex2lyx/text.C
320 2003-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
322 * tex2lyx.C: adjust for new debugstream.
324 2003-09-08 Angus Leeming <leeming@lyx.org>
330 * texparser.C: remove redundant using directives.
332 2003-08-19 Angus Leeming <leeming@lyx.org>
334 * most files: add 'standard conformant' header blurb.
335 Also add Jean-Marc as an author where appropriate.
337 2003-08-08 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
339 * Makefile.am (EXTRA_DIST):
340 * test-insets.tex: new file. Describes the insets and special
341 characters that tex2lyx handles.
343 * text.C (parse_text): support \vref, \vpageref (only one optional
344 argument), \prettyref; add support for include inset; when \\ has
345 optional arguments, use ERT; support also \listoffigures,
346 \listoftables, and \listof{xxx} for existing float types;
347 translate lenghts properly for graphics inset.
348 (parse_environment): add support for minipages
350 * text.C (translate_len): A simple function to translate a latex
351 length to something lyx can understand. Not perfect, but rather
354 2003-08-07 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
356 * text.C (parse_text): special handling for \item and \bibitem
359 * context.C (begin_layout, end_layout, begin_deeper, end_deeper):
360 tiny helper functions
362 (check_end_deeper): add special handling for the case of a normal
363 paragraph inside a list-like environment.
365 * test-structure.tex: add more stuff there
367 2003-08-05 Alfredo Braunstein <abraunst@libero.it>
369 * context.h: compile fix
371 2003-08-05 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
373 * text.C: some tweaks to make nesting work. What still does not
374 work is nesting a standard paragraph in a list.
376 * test-structure.tex: update a bit
378 * context.C (check_deeper, check_end_deeper): new methods to
379 handle the *_deeper stuff
381 * preamble.C (end_preamble): small tweaks
383 2003-08-03 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
385 * text.C: update to use Context struct, and more notably:
386 (cap, check_layout, check_end_layout): remove
387 (parse_text_snippet): new thin wrapper around parse_text, used for
388 things like \textrm{...}
389 (parse_environment): remove existing depth handling code, which is
390 handled transparently by the Context struct; make unknown
391 environments work (again?) through ERT
393 * test-structure.tex: new test file, used to try out various
398 * table.C: update to use Context struct
400 * context.[Ch]: new helper struct which is passed to parse_*
401 functions and handles *_layout and *_deeper tags output
403 * Makefile.am (EXTRA_DIST): new file test-structure.tex
404 (tex2lyx_SOURCES): add context.[Ch]
406 2003-07-30 Angus Leeming <leeming@lyx.org>
408 * Makefile.am: Hide the fact that we re-generate those symbolic links
411 2003-07-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
413 * text.C (check_layout): \layout -> \begin_layout
414 (parse_text_in_inset): convenience function
416 * tex2lyx.C (main): \the_end -> \end_document
418 * preamble.C (end_preamble): update version number to 225
420 * text.C (parse_text): replace test on "lyxcode" with test on
421 LyXLayout::freespacing.
422 (check_end_layout): new function, used to check whether we need to
425 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
427 * tex2lyx.C (clean_layouts): remove
429 * text.C: output lazily the \layout commands using the
430 check_layout function. Remove all explicit \layout tags.
431 (parse_text): pass an optional parameter 'layout'
434 * text.C (output_command_layout): renamed from output_layout
435 (parse_environment): new method containing a part of parse_text
439 * table.C: \begin_layout -> \layout. We are not quite ready for
442 2003-07-28 José Matos <jamatos@lyx.org>
447 * table.C: \layout -> \begin_layout.
449 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
451 * text.C (parse_text): read environment from layout file too. Now,
452 all layout entries are supported (but many hacks remain); note
453 that the nesting support is broken and will have to be completely
455 (parse_text): basic support for english double quotes
457 * table.C (handle_tabular): make the output more similar to LyX
460 * text.C (output_layout): fix handling of optional argument
461 (parse_text): small tweaks to make output format closer to lyx
462 format; support \tableofcontents; fix/improve support for various
465 2003-07-27 Angus Leeming <leeming@lyx.org>
467 * Makefile.am: remove unused graphics_link_files cruft.
470 2003-07-27 Angus Leeming <leeming@lyx.org>
472 * tex2lyx.C: add Debug::ANY hack.
474 * text.C: remove hardcoded command layouts.
476 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
478 * text.C (parse_text): fix handling of \LaTeXe macro
480 2003-07-26 Angus Leeming <leeming@lyx.org>
484 * gettext.[Ch]: minimal (near empty) analogues of the real LyX
485 files; enough to get LyXTextClass and LyXLayout to compile without
486 needing to store any real information about Spacing or Font.
488 * Makefile.am: add these files above and also include a minimal
489 chunk of the main lyx source tree as soft links in order to add in
490 LyXTextClass and LyXLayout.
492 * .cvsignore: add all these soft links.
494 * preamble.C (end_preamble): passed a LyXTextClass arg.
495 (parse_preamble): returns the document LyXTextClass.
497 * tabular.C (handle_tabular): passed a LyXTextClass arg. In turn
498 pass it to parse_text.
500 * tex2lyx.C: add some global vars, build_lyxdir et al. For now,
501 give them some horrible hard-coded value.
502 (main): receive a LyXTextClass var from parse_preamble and pass it
505 * text.C (parse_text): receives a LyXTextClass arg. Use it to
506 remove the hard-coded handling of floats and instead check the
507 textclass for its existence. Also handle wide floats naturally.
509 * tex2lyx.h: associated changes to function declarations.
511 2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
513 * texparser.C (catInit): same warning avoidance as in math_parser.C
514 (setCatCode): cast to safe type
517 2003-05-17 Joao Luis M. Assirati <assirati@fma.if.usp.br>
519 * texparser.C: fix paragraph parsing after comment
521 2003-04-29 André Pönitz <poenitz@gmx.net>
524 texparser.h: whitespace
526 2003-04-20 Kayvan A. Sylvan <kayvan@sylvan.com>
528 * table.C: use string::erase(), not string::clear() to enable older
529 versions of gcc to compile the code.
531 2003-04-17 André Pönitz <poenitz@gmx.net>
538 * table.C: better table handling
540 * tex2lyx.C: lots of small changes
542 2003-02-25 Angus Leeming <leeming@lyx.org>
544 * .cvsignore: ignore *.lo and libtexparser.la.
546 2003-02-20 Angus Leeming <leeming@lyx.org>
548 * tex2lyx.C: swap <sstream> for "Lsstream.h".
550 2003-02-11 Angus Leeming <leeming@lyx.org>
552 * tex2lyx.C (handle_opt): prevent infinite loop if opts is empty.
553 (handle_package): new function, factoring code out of Parser::parse.
554 (trim): copied across from support/lstrings.C
555 (Parser::parse): handle '\usepackage{foo, bar}'.
557 2003-02-11 André Pönitz <poenitz@gmx.net>
559 * tex2lyx.C: first shot at real code
561 2003-02-11 Angus Leeming <leeming@lyx.org>
563 * .cvsignore: new file.
565 2003-02-10 Angus Leeming <leeming@lyx.org>
567 * Makefile.am: empty, dummy file so that autogen.sh and configure