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