1 2003-11-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
5 * text.C: Read a list of commands and their arguments from a reLyX
6 compatible syntax file in order to parse optional argumnts correctly.
12 * math.C: change size() to !empty() where it was used as bool
14 2003-11-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
19 * context.[Ch]: New functions Context::set_item(),
20 Context::new_paragraph(ostream & os) and Context::atParagraphStart()
21 to make Context usage more explicit
22 * texparser.[Ch]: Rework Parser::tokenize (see comment in texparser.h)
25 * texparser.C: Don't silently drop comments
26 * texparser.C: Token::asInput() does not append a space anymore
27 * texparser.[Ch]: Renamed Parser::prev_token() to Parser::curr_token().
28 New function Parser::prev_token() returns now really the previous token
30 * text.C: Convert known vspaces at paragraph start to \\added_space_top
31 * preamble.C: Don't put out newlines twice.
32 * text.C: Fix minipage position bug
33 * text.C: Fix \labelwidthstring bug
34 * text.C: Recognize alignment environments
35 * text.C: Fix a few cases of incorrect context usage, resulting
36 in missing or superflous \begin_layout / \end_laout lines.
38 2003-10-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
48 - add \text{}, \intertext{} and \fbox{} support in mathmode.
49 - add support for some math environments like displaymath
50 - allow parsing of partial documents (for inclusion with \input).
51 - steal commandline switches -c and -f from reLyX to support the
53 - add support for lengths with comma (4,5cm instead of 4.5cm) to
54 minipage environments. Handle \textwidth etc. without factor
55 - rearrange active_environments.[push,pop]back() so that they are always
57 - write an error message if layout file could not be found.
58 - convert \begin{comment}...\end{comment} to comment inset
59 - handle \= correctly inside tabbing environments
60 - fix multicolumn vertical rule bug in tables
61 - add missing \includegraphics options
62 - output minipages with latex lengths as ERT, since lyx cannot handle them
64 - remove duplicate \ldots
65 - recognize \bibliographystyle and \bibliography
66 - handle \psfrag{ps-text}[ps-pos][tex-pos]{tex-text} correctly
67 - handle environments in table cells correctly
68 - add missing -userdir and -sysdir commandline switches
69 - recognize start of appendix
70 - handle optional arg to \item as ERT in itemize environment, since LyX
71 does not support it directly
73 2003-10-18 Lars Gullik Bjønnes <larsbj@gullik.net>
75 * Makefile.am (BUILT_SOURCES): use this instead of "linked_files"
76 and the link_files target. make the BUILT_SOURCES dependency
77 automatically link the needed files.
79 2003-10-14 Angus Leeming <leeming@lyx.org>
81 * Makefile.am: move boost.C from the linked_files section
82 to the tex2lyx_SOURCES section.
84 * boost.C: new file. Simpler than the version in the main lyx source.
85 No reference to the emergencyCleanup stuff.
87 * tex2lyx.C: remove emergencyCleanup() stuff.
89 2003-10-08 Angus Leeming <leeming@lyx.org>
93 * Spacing.h: \file Spacing.h -> \file tex2lyx/Spacing.h
94 * gettext.C: \file gettext.C -> \file tex2lyx/gettext.C
95 * gettext.h: \file gettext.h -> \file tex2lyx/gettext.h
96 * lyxfont.C: \file lyxfont.C -> \file tex2lyx/lyxfont.C
97 * lyxfont.h: \file lyxfont.h -> \file tex2lyx/lyxfont.h
98 * text.C: \file text.C -> \file tex2lyx/text.C
100 2003-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
102 * tex2lyx.C: adjust for new debugstream.
104 2003-09-08 Angus Leeming <leeming@lyx.org>
110 * texparser.C: remove redundant using directives.
112 2003-08-19 Angus Leeming <leeming@lyx.org>
114 * most files: add 'standard conformant' header blurb.
115 Also add Jean-Marc as an author where appropriate.
117 2003-08-08 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
119 * Makefile.am (EXTRA_DIST):
120 * test-insets.tex: new file. Describes the insets and special
121 characters that tex2lyx handles.
123 * text.C (parse_text): support \vref, \vpageref (only one optional
124 argument), \prettyref; add support for include inset; when \\ has
125 optional arguments, use ERT; support also \listoffigures,
126 \listoftables, and \listof{xxx} for existing float types;
127 translate lenghts properly for graphics inset.
128 (parse_environment): add support for minipages
130 * text.C (translate_len): A simple function to translate a latex
131 length to something lyx can understand. Not perfect, but rather
134 2003-08-07 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
136 * text.C (parse_text): special handling for \item and \bibitem
139 * context.C (begin_layout, end_layout, begin_deeper, end_deeper):
140 tiny helper functions
142 (check_end_deeper): add special handling for the case of a normal
143 paragraph inside a list-like environment.
145 * test-structure.tex: add more stuff there
147 2003-08-05 Alfredo Braunstein <abraunst@libero.it>
149 * context.h: compile fix
151 2003-08-05 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
153 * text.C: some tweaks to make nesting work. What still does not
154 work is nesting a standard paragraph in a list.
156 * test-structure.tex: update a bit
158 * context.C (check_deeper, check_end_deeper): new methods to
159 handle the *_deeper stuff
161 * preamble.C (end_preamble): small tweaks
163 2003-08-03 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
165 * text.C: update to use Context struct, and more notably:
166 (cap, check_layout, check_end_layout): remove
167 (parse_text_snippet): new thin wrapper around parse_text, used for
168 things like \textrm{...}
169 (parse_environment): remove existing depth handling code, which is
170 handled transparently by the Context struct; make unknown
171 environments work (again?) through ERT
173 * test-structure.tex: new test file, used to try out various
178 * table.C: update to use Context struct
180 * context.[Ch]: new helper struct which is passed to parse_*
181 functions and handles *_layout and *_deeper tags output
183 * Makefile.am (EXTRA_DIST): new file test-structure.tex
184 (tex2lyx_SOURCES): add context.[Ch]
186 2003-07-30 Angus Leeming <leeming@lyx.org>
188 * Makefile.am: Hide the fact that we re-generate those symbolic links
191 2003-07-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
193 * text.C (check_layout): \layout -> \begin_layout
194 (parse_text_in_inset): convenience function
196 * tex2lyx.C (main): \the_end -> \end_document
198 * preamble.C (end_preamble): update version number to 225
200 * text.C (parse_text): replace test on "lyxcode" with test on
201 LyXLayout::freespacing.
202 (check_end_layout): new function, used to check whether we need to
205 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
207 * tex2lyx.C (clean_layouts): remove
209 * text.C: output lazily the \layout commands using the
210 check_layout function. Remove all explicit \layout tags.
211 (parse_text): pass an optional parameter 'layout'
214 * text.C (output_command_layout): renamed from output_layout
215 (parse_environment): new method containing a part of parse_text
219 * table.C: \begin_layout -> \layout. We are not quite ready for
222 2003-07-28 José Matos <jamatos@lyx.org>
227 * table.C: \layout -> \begin_layout.
229 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
231 * text.C (parse_text): read environment from layout file too. Now,
232 all layout entries are supported (but many hacks remain); note
233 that the nesting support is broken and will have to be completely
235 (parse_text): basic support for english double quotes
237 * table.C (handle_tabular): make the output more similar to LyX
240 * text.C (output_layout): fix handling of optional argument
241 (parse_text): small tweaks to make output format closer to lyx
242 format; support \tableofcontents; fix/improve support for various
245 2003-07-27 Angus Leeming <leeming@lyx.org>
247 * Makefile.am: remove unused graphics_link_files cruft.
250 2003-07-27 Angus Leeming <leeming@lyx.org>
252 * tex2lyx.C: add Debug::ANY hack.
254 * text.C: remove hardcoded command layouts.
256 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
258 * text.C (parse_text): fix handling of \LaTeXe macro
260 2003-07-26 Angus Leeming <leeming@lyx.org>
264 * gettext.[Ch]: minimal (near empty) analogues of the real LyX
265 files; enough to get LyXTextClass and LyXLayout to compile without
266 needing to store any real information about Spacing or Font.
268 * Makefile.am: add these files above and also include a minimal
269 chunk of the main lyx source tree as soft links in order to add in
270 LyXTextClass and LyXLayout.
272 * .cvsignore: add all these soft links.
274 * preamble.C (end_preamble): passed a LyXTextClass arg.
275 (parse_preamble): returns the document LyXTextClass.
277 * tabular.C (handle_tabular): passed a LyXTextClass arg. In turn
278 pass it to parse_text.
280 * tex2lyx.C: add some global vars, build_lyxdir et al. For now,
281 give them some horrible hard-coded value.
282 (main): receive a LyXTextClass var from parse_preamble and pass it
285 * text.C (parse_text): receives a LyXTextClass arg. Use it to
286 remove the hard-coded handling of floats and instead check the
287 textclass for its existence. Also handle wide floats naturally.
289 * tex2lyx.h: associated changes to function declarations.
291 2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
293 * texparser.C (catInit): same warning avoidance as in math_parser.C
294 (setCatCode): cast to safe type
297 2003-05-17 Joao Luis M. Assirati <assirati@fma.if.usp.br>
299 * texparser.C: fix paragraph parsing after comment
301 2003-04-29 André Pönitz <poenitz@gmx.net>
304 texparser.h: whitespace
306 2003-04-20 Kayvan A. Sylvan <kayvan@sylvan.com>
308 * table.C: use string::erase(), not string::clear() to enable older
309 versions of gcc to compile the code.
311 2003-04-17 André Pönitz <poenitz@gmx.net>
318 * table.C: better table handling
320 * tex2lyx.C: lots of small changes
322 2003-02-25 Angus Leeming <leeming@lyx.org>
324 * .cvsignore: ignore *.lo and libtexparser.la.
326 2003-02-20 Angus Leeming <leeming@lyx.org>
328 * tex2lyx.C: swap <sstream> for "Lsstream.h".
330 2003-02-11 Angus Leeming <leeming@lyx.org>
332 * tex2lyx.C (handle_opt): prevent infinite loop if opts is empty.
333 (handle_package): new function, factoring code out of Parser::parse.
334 (trim): copied across from support/lstrings.C
335 (Parser::parse): handle '\usepackage{foo, bar}'.
337 2003-02-11 André Pönitz <poenitz@gmx.net>
339 * tex2lyx.C: first shot at real code
341 2003-02-11 Angus Leeming <leeming@lyx.org>
343 * .cvsignore: new file.
345 2003-02-10 Angus Leeming <leeming@lyx.org>
347 * Makefile.am: empty, dummy file so that autogen.sh and configure