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