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