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