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