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