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