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