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