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