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