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