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