1 2004-08-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
3 * preamble.C (end_preamble): change file format from 235 to 236
4 * preamble.C (end_preamble): add \begin_document, \begin_header and
6 * preamble.C (h_papersize): change from "Default" to "default"
7 * tex2lyx.C (tex2lyx): add end_body tag
9 2008-08-16 José Matos <jamatos@lyx.org>
11 * context.C (begin_deeper, end_deeper):
12 * preamble.C (end_preamble):
13 * table.C (handle_tabular):
14 * text.C (end_inset, handle_ert, handle_comment):
15 (parse_text_attributes, parse_text): remove space at end of line.
17 2004-08-10 Georg Baum <Georg.Baum@post.rwth-aachen.de>
19 * preamble.C (split_options): new, split package options into vector
20 * preamble.C (add_package): new, add a package with options to
22 * preamble.C, tex2lyx.h (used_packages): new map of used packages
24 * preamble.C (handle_package): handle natbib and jurabib package
25 * preamble.C (handle_package): output a message for unhandled options
26 * preamble.C (parse_preamble): handle \jurabibsetup
27 * text.C (known_natbib_commands): new list of known natbib ccommands
28 * text.C (known_jurabib_commands): new list of known jurabib ccommands
29 * text.C (getCiteArguments): new, parse cite command arguments
30 * text.C (parse_text): handle natbib and jurabib citation commands
32 2004-07-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
34 * preamble.C (end_preamble): change file format from 228 to 235
35 * preamble.C (end_preamble): add use_bibtopic flag
36 * preamble.C (end_preamble): replace use_natbib with cite_engine
37 * preamble.C: change the paperpackage default from "default" to
38 "none". The old setting only worked by accident.
39 * tex2lyx.[Ch] (getMasterFilePath): new, needed for included graphics
40 * text.C (parse_environment): add sideways flag for float insets
41 * text.C (parse_text): add graphics file extension if necessary
42 * text.C (find_file): new helper function
44 2004-07-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
46 * math.C (parse_math): change tex "\\cr" line ending to "\\\\"
47 * table.C (parse_table): recognize tex "\\cr" line ending
49 2004-06-28 Georg Baum <Georg.Baum@post.rwth-aachen.de>
51 * math.C, preamble.C, tex2lyx.[Ch], text.C: const fixes
52 * context.[Ch]: new Font struct, and add it to Context
53 * text.C (parse_text): reset size after size change
54 * text.C: handle declaration form of font attribute changes (new
56 * text.C (parse_text): handle \textmd, \textup and \textnormal
57 * text.C (parse_text_attributes): new
59 2004-06-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
61 * text.C (output_command_layout, parse_environment): fix bug 1446
62 by passing parent_context.deeper_paragraph to the child context
64 2004-06-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
66 * preamble.C, text.C: s/wether/whether/g
67 * text.C (eat_whitespace): new method
68 * texparser.C (getArg): use always curr_token().asInput()
69 * texparser.[Ch] (isParagraph): new method
70 * texparser.C (skip_spaces): handle "\n +\n" correctly
71 * texparser.[Ch] (asMode): remove, since it is unused
73 2004-05-27 Lars Gullik Bjonnes <larsbj@gullik.net>
75 * Makefile.am (BUILT_SOURCES): move lengthcommon.C from here...
76 (tex2lyx_SOURCES): ... to here
78 * lengthcommon.C: new file
80 2004-04-30 Georg Baum <Georg.Baum@post.rwth-aachen.de>
82 * preamble.C: recognize \lyxdot
83 * text.C (parse_text): translate \lyxdot in graphics file names
84 * text.C (handle_ert): translate '\n' (fixes %-newline combinations
87 2004-03-26 Georg Baum <Georg.Baum@post.rwth-aachen.de>
89 * text.C (parse_text): handle vspaces like '1cm' correctly
91 2004-02-01 Lars Gullik Bjonnes <larsbj@gullik.net>
93 * text.C (parse_box): "\\" -> '\\' in calls to contains.
95 2004-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
97 * text.C: reorder the using statements.
98 (translate_len): remove usage of a uninitialized variable.
99 (isLayout): make it adaptable and constify operator()
100 (findLayout): reformat slightly and dont use the same var for
103 2004-01-06 Georg Baum <Georg.Baum@post.rwth-aachen.de>
105 * text.C: fix status tag output for ERT inset
107 2003-12-17 Georg Baum <Georg.Baum@post.rwth-aachen.de>
109 * preamble.C: Change file format from 225 to 228
110 * text.C: Convert minipages and parboxes to box insets
111 * text.C: Changes for format 228 (see ../../development/FORMAT)
112 * text.C: Add lyxgreyedout environment
113 * context.[Ch]: New function Context::add_extra_stuff()
115 2003-12-08 Georg Baum <Georg.Baum@post.rwth-aachen.de>
117 * text.C: Use the new VSpace inset (fixes a bug with added_space top)
118 * text.C: Fix \= in tabbing env again
119 * text.C: Fix invocation of parse_command()
121 2003-11-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
125 * text.C: Read a list of commands and their arguments from a reLyX
126 compatible syntax file in order to parse optional argumnts correctly.
132 * math.C: change size() to !empty() where it was used as bool
134 2003-11-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
139 * context.[Ch]: New functions Context::set_item(),
140 Context::new_paragraph(ostream & os) and Context::atParagraphStart()
141 to make Context usage more explicit
142 * texparser.[Ch]: Rework Parser::tokenize (see comment in texparser.h)
145 * texparser.C: Don't silently drop comments
146 * texparser.C: Token::asInput() does not append a space anymore
147 * texparser.[Ch]: Renamed Parser::prev_token() to Parser::curr_token().
148 New function Parser::prev_token() returns now really the previous token
150 * text.C: Convert known vspaces at paragraph start to \\added_space_top
151 * preamble.C: Don't put out newlines twice.
152 * text.C: Fix minipage position bug
153 * text.C: Fix \labelwidthstring bug
154 * text.C: Recognize alignment environments
155 * text.C: Fix a few cases of incorrect context usage, resulting
156 in missing or superflous \begin_layout / \end_laout lines.
158 2003-10-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
168 - add \text{}, \intertext{} and \fbox{} support in mathmode.
169 - add support for some math environments like displaymath
170 - allow parsing of partial documents (for inclusion with \input).
171 - steal commandline switches -c and -f from reLyX to support the
173 - add support for lengths with comma (4,5cm instead of 4.5cm) to
174 minipage environments. Handle \textwidth etc. without factor
175 - rearrange active_environments.[push,pop]back() so that they are always
177 - write an error message if layout file could not be found.
178 - convert \begin{comment}...\end{comment} to comment inset
179 - handle \= correctly inside tabbing environments
180 - fix multicolumn vertical rule bug in tables
181 - add missing \includegraphics options
182 - output minipages with latex lengths as ERT, since lyx cannot handle them
183 - recognize \textsl{}
184 - remove duplicate \ldots
185 - recognize \bibliographystyle and \bibliography
186 - handle \psfrag{ps-text}[ps-pos][tex-pos]{tex-text} correctly
187 - handle environments in table cells correctly
188 - add missing -userdir and -sysdir commandline switches
189 - recognize start of appendix
190 - handle optional arg to \item as ERT in itemize environment, since LyX
191 does not support it directly
193 2003-10-18 Lars Gullik Bjønnes <larsbj@gullik.net>
195 * Makefile.am (BUILT_SOURCES): use this instead of "linked_files"
196 and the link_files target. make the BUILT_SOURCES dependency
197 automatically link the needed files.
199 2003-10-14 Angus Leeming <leeming@lyx.org>
201 * Makefile.am: move boost.C from the linked_files section
202 to the tex2lyx_SOURCES section.
204 * boost.C: new file. Simpler than the version in the main lyx source.
205 No reference to the emergencyCleanup stuff.
207 * tex2lyx.C: remove emergencyCleanup() stuff.
209 2003-10-08 Angus Leeming <leeming@lyx.org>
211 Fix doxygen warnings.
213 * Spacing.h: \file Spacing.h -> \file tex2lyx/Spacing.h
214 * gettext.C: \file gettext.C -> \file tex2lyx/gettext.C
215 * gettext.h: \file gettext.h -> \file tex2lyx/gettext.h
216 * lyxfont.C: \file lyxfont.C -> \file tex2lyx/lyxfont.C
217 * lyxfont.h: \file lyxfont.h -> \file tex2lyx/lyxfont.h
218 * text.C: \file text.C -> \file tex2lyx/text.C
220 2003-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
222 * tex2lyx.C: adjust for new debugstream.
224 2003-09-08 Angus Leeming <leeming@lyx.org>
230 * texparser.C: remove redundant using directives.
232 2003-08-19 Angus Leeming <leeming@lyx.org>
234 * most files: add 'standard conformant' header blurb.
235 Also add Jean-Marc as an author where appropriate.
237 2003-08-08 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
239 * Makefile.am (EXTRA_DIST):
240 * test-insets.tex: new file. Describes the insets and special
241 characters that tex2lyx handles.
243 * text.C (parse_text): support \vref, \vpageref (only one optional
244 argument), \prettyref; add support for include inset; when \\ has
245 optional arguments, use ERT; support also \listoffigures,
246 \listoftables, and \listof{xxx} for existing float types;
247 translate lenghts properly for graphics inset.
248 (parse_environment): add support for minipages
250 * text.C (translate_len): A simple function to translate a latex
251 length to something lyx can understand. Not perfect, but rather
254 2003-08-07 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
256 * text.C (parse_text): special handling for \item and \bibitem
259 * context.C (begin_layout, end_layout, begin_deeper, end_deeper):
260 tiny helper functions
262 (check_end_deeper): add special handling for the case of a normal
263 paragraph inside a list-like environment.
265 * test-structure.tex: add more stuff there
267 2003-08-05 Alfredo Braunstein <abraunst@libero.it>
269 * context.h: compile fix
271 2003-08-05 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
273 * text.C: some tweaks to make nesting work. What still does not
274 work is nesting a standard paragraph in a list.
276 * test-structure.tex: update a bit
278 * context.C (check_deeper, check_end_deeper): new methods to
279 handle the *_deeper stuff
281 * preamble.C (end_preamble): small tweaks
283 2003-08-03 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
285 * text.C: update to use Context struct, and more notably:
286 (cap, check_layout, check_end_layout): remove
287 (parse_text_snippet): new thin wrapper around parse_text, used for
288 things like \textrm{...}
289 (parse_environment): remove existing depth handling code, which is
290 handled transparently by the Context struct; make unknown
291 environments work (again?) through ERT
293 * test-structure.tex: new test file, used to try out various
298 * table.C: update to use Context struct
300 * context.[Ch]: new helper struct which is passed to parse_*
301 functions and handles *_layout and *_deeper tags output
303 * Makefile.am (EXTRA_DIST): new file test-structure.tex
304 (tex2lyx_SOURCES): add context.[Ch]
306 2003-07-30 Angus Leeming <leeming@lyx.org>
308 * Makefile.am: Hide the fact that we re-generate those symbolic links
311 2003-07-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
313 * text.C (check_layout): \layout -> \begin_layout
314 (parse_text_in_inset): convenience function
316 * tex2lyx.C (main): \the_end -> \end_document
318 * preamble.C (end_preamble): update version number to 225
320 * text.C (parse_text): replace test on "lyxcode" with test on
321 LyXLayout::freespacing.
322 (check_end_layout): new function, used to check whether we need to
325 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
327 * tex2lyx.C (clean_layouts): remove
329 * text.C: output lazily the \layout commands using the
330 check_layout function. Remove all explicit \layout tags.
331 (parse_text): pass an optional parameter 'layout'
334 * text.C (output_command_layout): renamed from output_layout
335 (parse_environment): new method containing a part of parse_text
339 * table.C: \begin_layout -> \layout. We are not quite ready for
342 2003-07-28 José Matos <jamatos@lyx.org>
347 * table.C: \layout -> \begin_layout.
349 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
351 * text.C (parse_text): read environment from layout file too. Now,
352 all layout entries are supported (but many hacks remain); note
353 that the nesting support is broken and will have to be completely
355 (parse_text): basic support for english double quotes
357 * table.C (handle_tabular): make the output more similar to LyX
360 * text.C (output_layout): fix handling of optional argument
361 (parse_text): small tweaks to make output format closer to lyx
362 format; support \tableofcontents; fix/improve support for various
365 2003-07-27 Angus Leeming <leeming@lyx.org>
367 * Makefile.am: remove unused graphics_link_files cruft.
370 2003-07-27 Angus Leeming <leeming@lyx.org>
372 * tex2lyx.C: add Debug::ANY hack.
374 * text.C: remove hardcoded command layouts.
376 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
378 * text.C (parse_text): fix handling of \LaTeXe macro
380 2003-07-26 Angus Leeming <leeming@lyx.org>
384 * gettext.[Ch]: minimal (near empty) analogues of the real LyX
385 files; enough to get LyXTextClass and LyXLayout to compile without
386 needing to store any real information about Spacing or Font.
388 * Makefile.am: add these files above and also include a minimal
389 chunk of the main lyx source tree as soft links in order to add in
390 LyXTextClass and LyXLayout.
392 * .cvsignore: add all these soft links.
394 * preamble.C (end_preamble): passed a LyXTextClass arg.
395 (parse_preamble): returns the document LyXTextClass.
397 * tabular.C (handle_tabular): passed a LyXTextClass arg. In turn
398 pass it to parse_text.
400 * tex2lyx.C: add some global vars, build_lyxdir et al. For now,
401 give them some horrible hard-coded value.
402 (main): receive a LyXTextClass var from parse_preamble and pass it
405 * text.C (parse_text): receives a LyXTextClass arg. Use it to
406 remove the hard-coded handling of floats and instead check the
407 textclass for its existence. Also handle wide floats naturally.
409 * tex2lyx.h: associated changes to function declarations.
411 2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
413 * texparser.C (catInit): same warning avoidance as in math_parser.C
414 (setCatCode): cast to safe type
417 2003-05-17 Joao Luis M. Assirati <assirati@fma.if.usp.br>
419 * texparser.C: fix paragraph parsing after comment
421 2003-04-29 André Pönitz <poenitz@gmx.net>
424 texparser.h: whitespace
426 2003-04-20 Kayvan A. Sylvan <kayvan@sylvan.com>
428 * table.C: use string::erase(), not string::clear() to enable older
429 versions of gcc to compile the code.
431 2003-04-17 André Pönitz <poenitz@gmx.net>
438 * table.C: better table handling
440 * tex2lyx.C: lots of small changes
442 2003-02-25 Angus Leeming <leeming@lyx.org>
444 * .cvsignore: ignore *.lo and libtexparser.la.
446 2003-02-20 Angus Leeming <leeming@lyx.org>
448 * tex2lyx.C: swap <sstream> for "Lsstream.h".
450 2003-02-11 Angus Leeming <leeming@lyx.org>
452 * tex2lyx.C (handle_opt): prevent infinite loop if opts is empty.
453 (handle_package): new function, factoring code out of Parser::parse.
454 (trim): copied across from support/lstrings.C
455 (Parser::parse): handle '\usepackage{foo, bar}'.
457 2003-02-11 André Pönitz <poenitz@gmx.net>
459 * tex2lyx.C: first shot at real code
461 2003-02-11 Angus Leeming <leeming@lyx.org>
463 * .cvsignore: new file.
465 2003-02-10 Angus Leeming <leeming@lyx.org>
467 * Makefile.am: empty, dummy file so that autogen.sh and configure