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