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