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