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