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