1 2004-06-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
3 * preamble.C, text.C: s/wether/whether/g
4 * text.C (eat_whitespace): new method
5 * texparser.C (getArg): use always curr_token().asInput()
6 * texparser.[Ch] (isParagraph): new method
7 * texparser.C (skip_spaces): handle "\n +\n" correctly
8 * texparser.[Ch] (asMode): remove, since it is unused
10 2004-05-27 Lars Gullik Bjonnes <larsbj@gullik.net>
12 * Makefile.am (BUILT_SOURCES): move lengthcommon.C from here...
13 (tex2lyx_SOURCES): ... to here
15 * lengthcommon.C: new file
17 2004-04-30 Georg Baum <Georg.Baum@post.rwth-aachen.de>
19 * preamble.C: recognize \lyxdot
20 * text.C (parse_text): translate \lyxdot in graphics file names
21 * text.C (handle_ert): translate '\n' (fixes %-newline combinations
24 2004-03-26 Georg Baum <Georg.Baum@post.rwth-aachen.de>
26 * text.C (parse_text): handle vspaces like '1cm' correctly
28 2004-02-01 Lars Gullik Bjonnes <larsbj@gullik.net>
30 * text.C (parse_box): "\\" -> '\\' in calls to contains.
32 2004-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
34 * text.C: reorder the using statements.
35 (translate_len): remove usage of a uninitialized variable.
36 (isLayout): make it adaptable and constify operator()
37 (findLayout): reformat slightly and dont use the same var for
40 2004-01-06 Georg Baum <Georg.Baum@post.rwth-aachen.de>
42 * text.C: fix status tag output for ERT inset
44 2003-12-17 Georg Baum <Georg.Baum@post.rwth-aachen.de>
46 * preamble.C: Change file format from 225 to 228
47 * text.C: Convert minipages and parboxes to box insets
48 * text.C: Changes for format 228 (see ../../development/FORMAT)
49 * text.C: Add lyxgreyedout environment
50 * context.[Ch]: New function Context::add_extra_stuff()
52 2003-12-08 Georg Baum <Georg.Baum@post.rwth-aachen.de>
54 * text.C: Use the new VSpace inset (fixes a bug with added_space top)
55 * text.C: Fix \= in tabbing env again
56 * text.C: Fix invocation of parse_command()
58 2003-11-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
62 * text.C: Read a list of commands and their arguments from a reLyX
63 compatible syntax file in order to parse optional argumnts correctly.
69 * math.C: change size() to !empty() where it was used as bool
71 2003-11-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
76 * context.[Ch]: New functions Context::set_item(),
77 Context::new_paragraph(ostream & os) and Context::atParagraphStart()
78 to make Context usage more explicit
79 * texparser.[Ch]: Rework Parser::tokenize (see comment in texparser.h)
82 * texparser.C: Don't silently drop comments
83 * texparser.C: Token::asInput() does not append a space anymore
84 * texparser.[Ch]: Renamed Parser::prev_token() to Parser::curr_token().
85 New function Parser::prev_token() returns now really the previous token
87 * text.C: Convert known vspaces at paragraph start to \\added_space_top
88 * preamble.C: Don't put out newlines twice.
89 * text.C: Fix minipage position bug
90 * text.C: Fix \labelwidthstring bug
91 * text.C: Recognize alignment environments
92 * text.C: Fix a few cases of incorrect context usage, resulting
93 in missing or superflous \begin_layout / \end_laout lines.
95 2003-10-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
105 - add \text{}, \intertext{} and \fbox{} support in mathmode.
106 - add support for some math environments like displaymath
107 - allow parsing of partial documents (for inclusion with \input).
108 - steal commandline switches -c and -f from reLyX to support the
110 - add support for lengths with comma (4,5cm instead of 4.5cm) to
111 minipage environments. Handle \textwidth etc. without factor
112 - rearrange active_environments.[push,pop]back() so that they are always
114 - write an error message if layout file could not be found.
115 - convert \begin{comment}...\end{comment} to comment inset
116 - handle \= correctly inside tabbing environments
117 - fix multicolumn vertical rule bug in tables
118 - add missing \includegraphics options
119 - output minipages with latex lengths as ERT, since lyx cannot handle them
120 - recognize \textsl{}
121 - remove duplicate \ldots
122 - recognize \bibliographystyle and \bibliography
123 - handle \psfrag{ps-text}[ps-pos][tex-pos]{tex-text} correctly
124 - handle environments in table cells correctly
125 - add missing -userdir and -sysdir commandline switches
126 - recognize start of appendix
127 - handle optional arg to \item as ERT in itemize environment, since LyX
128 does not support it directly
130 2003-10-18 Lars Gullik Bjønnes <larsbj@gullik.net>
132 * Makefile.am (BUILT_SOURCES): use this instead of "linked_files"
133 and the link_files target. make the BUILT_SOURCES dependency
134 automatically link the needed files.
136 2003-10-14 Angus Leeming <leeming@lyx.org>
138 * Makefile.am: move boost.C from the linked_files section
139 to the tex2lyx_SOURCES section.
141 * boost.C: new file. Simpler than the version in the main lyx source.
142 No reference to the emergencyCleanup stuff.
144 * tex2lyx.C: remove emergencyCleanup() stuff.
146 2003-10-08 Angus Leeming <leeming@lyx.org>
148 Fix doxygen warnings.
150 * Spacing.h: \file Spacing.h -> \file tex2lyx/Spacing.h
151 * gettext.C: \file gettext.C -> \file tex2lyx/gettext.C
152 * gettext.h: \file gettext.h -> \file tex2lyx/gettext.h
153 * lyxfont.C: \file lyxfont.C -> \file tex2lyx/lyxfont.C
154 * lyxfont.h: \file lyxfont.h -> \file tex2lyx/lyxfont.h
155 * text.C: \file text.C -> \file tex2lyx/text.C
157 2003-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
159 * tex2lyx.C: adjust for new debugstream.
161 2003-09-08 Angus Leeming <leeming@lyx.org>
167 * texparser.C: remove redundant using directives.
169 2003-08-19 Angus Leeming <leeming@lyx.org>
171 * most files: add 'standard conformant' header blurb.
172 Also add Jean-Marc as an author where appropriate.
174 2003-08-08 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
176 * Makefile.am (EXTRA_DIST):
177 * test-insets.tex: new file. Describes the insets and special
178 characters that tex2lyx handles.
180 * text.C (parse_text): support \vref, \vpageref (only one optional
181 argument), \prettyref; add support for include inset; when \\ has
182 optional arguments, use ERT; support also \listoffigures,
183 \listoftables, and \listof{xxx} for existing float types;
184 translate lenghts properly for graphics inset.
185 (parse_environment): add support for minipages
187 * text.C (translate_len): A simple function to translate a latex
188 length to something lyx can understand. Not perfect, but rather
191 2003-08-07 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
193 * text.C (parse_text): special handling for \item and \bibitem
196 * context.C (begin_layout, end_layout, begin_deeper, end_deeper):
197 tiny helper functions
199 (check_end_deeper): add special handling for the case of a normal
200 paragraph inside a list-like environment.
202 * test-structure.tex: add more stuff there
204 2003-08-05 Alfredo Braunstein <abraunst@libero.it>
206 * context.h: compile fix
208 2003-08-05 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
210 * text.C: some tweaks to make nesting work. What still does not
211 work is nesting a standard paragraph in a list.
213 * test-structure.tex: update a bit
215 * context.C (check_deeper, check_end_deeper): new methods to
216 handle the *_deeper stuff
218 * preamble.C (end_preamble): small tweaks
220 2003-08-03 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
222 * text.C: update to use Context struct, and more notably:
223 (cap, check_layout, check_end_layout): remove
224 (parse_text_snippet): new thin wrapper around parse_text, used for
225 things like \textrm{...}
226 (parse_environment): remove existing depth handling code, which is
227 handled transparently by the Context struct; make unknown
228 environments work (again?) through ERT
230 * test-structure.tex: new test file, used to try out various
235 * table.C: update to use Context struct
237 * context.[Ch]: new helper struct which is passed to parse_*
238 functions and handles *_layout and *_deeper tags output
240 * Makefile.am (EXTRA_DIST): new file test-structure.tex
241 (tex2lyx_SOURCES): add context.[Ch]
243 2003-07-30 Angus Leeming <leeming@lyx.org>
245 * Makefile.am: Hide the fact that we re-generate those symbolic links
248 2003-07-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
250 * text.C (check_layout): \layout -> \begin_layout
251 (parse_text_in_inset): convenience function
253 * tex2lyx.C (main): \the_end -> \end_document
255 * preamble.C (end_preamble): update version number to 225
257 * text.C (parse_text): replace test on "lyxcode" with test on
258 LyXLayout::freespacing.
259 (check_end_layout): new function, used to check whether we need to
262 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
264 * tex2lyx.C (clean_layouts): remove
266 * text.C: output lazily the \layout commands using the
267 check_layout function. Remove all explicit \layout tags.
268 (parse_text): pass an optional parameter 'layout'
271 * text.C (output_command_layout): renamed from output_layout
272 (parse_environment): new method containing a part of parse_text
276 * table.C: \begin_layout -> \layout. We are not quite ready for
279 2003-07-28 José Matos <jamatos@lyx.org>
284 * table.C: \layout -> \begin_layout.
286 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
288 * text.C (parse_text): read environment from layout file too. Now,
289 all layout entries are supported (but many hacks remain); note
290 that the nesting support is broken and will have to be completely
292 (parse_text): basic support for english double quotes
294 * table.C (handle_tabular): make the output more similar to LyX
297 * text.C (output_layout): fix handling of optional argument
298 (parse_text): small tweaks to make output format closer to lyx
299 format; support \tableofcontents; fix/improve support for various
302 2003-07-27 Angus Leeming <leeming@lyx.org>
304 * Makefile.am: remove unused graphics_link_files cruft.
307 2003-07-27 Angus Leeming <leeming@lyx.org>
309 * tex2lyx.C: add Debug::ANY hack.
311 * text.C: remove hardcoded command layouts.
313 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
315 * text.C (parse_text): fix handling of \LaTeXe macro
317 2003-07-26 Angus Leeming <leeming@lyx.org>
321 * gettext.[Ch]: minimal (near empty) analogues of the real LyX
322 files; enough to get LyXTextClass and LyXLayout to compile without
323 needing to store any real information about Spacing or Font.
325 * Makefile.am: add these files above and also include a minimal
326 chunk of the main lyx source tree as soft links in order to add in
327 LyXTextClass and LyXLayout.
329 * .cvsignore: add all these soft links.
331 * preamble.C (end_preamble): passed a LyXTextClass arg.
332 (parse_preamble): returns the document LyXTextClass.
334 * tabular.C (handle_tabular): passed a LyXTextClass arg. In turn
335 pass it to parse_text.
337 * tex2lyx.C: add some global vars, build_lyxdir et al. For now,
338 give them some horrible hard-coded value.
339 (main): receive a LyXTextClass var from parse_preamble and pass it
342 * text.C (parse_text): receives a LyXTextClass arg. Use it to
343 remove the hard-coded handling of floats and instead check the
344 textclass for its existence. Also handle wide floats naturally.
346 * tex2lyx.h: associated changes to function declarations.
348 2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
350 * texparser.C (catInit): same warning avoidance as in math_parser.C
351 (setCatCode): cast to safe type
354 2003-05-17 Joao Luis M. Assirati <assirati@fma.if.usp.br>
356 * texparser.C: fix paragraph parsing after comment
358 2003-04-29 André Pönitz <poenitz@gmx.net>
361 texparser.h: whitespace
363 2003-04-20 Kayvan A. Sylvan <kayvan@sylvan.com>
365 * table.C: use string::erase(), not string::clear() to enable older
366 versions of gcc to compile the code.
368 2003-04-17 André Pönitz <poenitz@gmx.net>
375 * table.C: better table handling
377 * tex2lyx.C: lots of small changes
379 2003-02-25 Angus Leeming <leeming@lyx.org>
381 * .cvsignore: ignore *.lo and libtexparser.la.
383 2003-02-20 Angus Leeming <leeming@lyx.org>
385 * tex2lyx.C: swap <sstream> for "Lsstream.h".
387 2003-02-11 Angus Leeming <leeming@lyx.org>
389 * tex2lyx.C (handle_opt): prevent infinite loop if opts is empty.
390 (handle_package): new function, factoring code out of Parser::parse.
391 (trim): copied across from support/lstrings.C
392 (Parser::parse): handle '\usepackage{foo, bar}'.
394 2003-02-11 André Pönitz <poenitz@gmx.net>
396 * tex2lyx.C: first shot at real code
398 2003-02-11 Angus Leeming <leeming@lyx.org>
400 * .cvsignore: new file.
402 2003-02-10 Angus Leeming <leeming@lyx.org>
404 * Makefile.am: empty, dummy file so that autogen.sh and configure