]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/ChangeLog
fix bug 2090 (remove param \quotes_times). File format is up to 245 now.
[lyx.git] / src / tex2lyx / ChangeLog
1 2005-10-12  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
2
3         * preamble.C: update format to 245 (do not output \quotes_times).
4
5 2005-08-19  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
6
7         * text.C (parse_text): Output \item in list environments that are
8         unknown to LyX (bug 1979)
9
10 2005-07-30  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
11
12         * text.C (parse_text): add forgotten \` accent.
13
14 2005-07-26  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
15
16         * context.[Ch] (~Context): new, warn about ignored extra stuff
17         * context.[Ch] (operator==, operator!=): new Font comparison operators
18         * context.C (check_layout): simplify logic
19         * context.C (dump): output all members
20         * context.h (new_layout_allowed): new member variable
21         * text.C (parse_text): remove string wrapper since it can lead to
22         invalid .lyx files (begin_layout/end_layout trouble)
23         * text.C (parse_text_snippet): Make sure that we don't create invalid
24         .lyx files
25         * text.C (parse_text_snippet): New string wrapper for simple text
26         * text.C (handle_ert): Always check layout
27         * text.C (parse_environment): Don't allow font changes in unknown
28         environments
29         * text.C (parse_unknown_environment): new, needed for the above
30         * text.C (parse_environment): Only swallo spaces when we know that it
31         does not harm
32         * text.C (parse_comment): Honor context.new_layout_allowed
33         * text.C (parse_text_attributes): Make sure that we have a valid
34         layout
35         * text.C (parse_text): Honor context.new_layout_allowed
36
37 2005-07-25  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
38
39         * tex2lyx.C (main): allow specification of output file name
40         * tex2lyx.C (main): write to infile.lyx if no output file is given
41
42 2005-07-18  Lars Gullik Bjønnes  <larsbj@lyx.org>
43
44         * Makefile.am (EXTRA_DIST): add tex2lyx.man
45
46 2005-07-18  José Matos  <jamatos@fc.up.pt>
47
48         * preamble.C (end_preamble, handle_package): updated format to 243, fix bug 1382, bug 22
49
50 2005-07-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
51
52         * .cvsignore: add tex2lyx.1
53         * tex2lyx.C (main): dont search for syntax.default in reLyX dir
54         * test.ltx: new test file
55         * tex2lyx.man: new file
56         * Makefile.am: add man file directives
57
58 2005-07-15  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
59
60         * text.C (parse_environment): handle context of unknown environments
61         correctly (fixes bug 1910)
62         * text.C (parse_environment): output the end of known environments
63         (one line disappeared from yesterdays patch)
64
65 2005-07-13  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
66
67         * math.C (is_math_env): Don't hardcode known math environments anymore
68         * tex2lyx.[Ch] (known_environments, known_math_environments): new
69         * tex2lyx.C (read_command): new, split off from read_syntaxfile
70         * tex2lyx.C (read_environment): new
71         * text.C (parse_arguments): new, split off from parse_command
72         * text.C (parse_environment): handle known environments
73
74 2005-07-12  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
75
76         * text.C (parse_text): output font changes only if needed
77         * context.C (begin_layout): output font if it is not the default one
78         * context.[Ch] (output_font_change): new, needed for the above
79
80 2005-06-01  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
81
82         * text.C (parse_text): eat {} after \ss, \i and \j
83         * tex2lyx.C (tex2lyx): add diagnostic message about created files
84
85 2005-05-25  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
86
87         * text.C (fix_relative_filename): new
88         * text.C (parse_text): use fix_relative_filename for included
89         graphics and .tex files
90         * tex2lyx.[Ch] (getParentFilePath): new
91         * tex2lyx.[Ch] (tex2lyx): new overload taking the input filename and
92         output stream
93         * tex2lyx.[Ch] (main): simplify, use the above
94
95 2005-05-20  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
96
97         * tex2lyx.C (main): set correct masterFilePath for files like "subdir/file"
98
99 2005-04-18  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
100
101         * text.C (parse_comment): Don't start a new paragraph for "%\n"
102
103 2005-04-13  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
104
105         * text.C (normalize_filename): new, split off from parse_text
106         * text.C (parse_text): Don't convert \verbatiminput files
107         * text.C (parse_text): Interpret relative file names in \include,
108         \input and \verbatiminput correctly and replace \lyxdot and \space
109         * text.C (parse_text): Recognize \input files without extension
110
111 2005-03-31  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
112
113         * text.C (parse_text): Really fix \start_of_appendix output
114
115 2005-03-27  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
116
117         * tex2lyx.C (read_syntaxfile): Don't use racy test with IsFileReadable
118         * tex2lyx.C (tex2lyx): ditto, and don't use fs::is_writable (it
119         returns false if the file does not exist on solaris)
120
121 2005-03-18  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
122
123         * text.C (parse_text): Fix \start_of_appendix output
124
125 2005-03-11  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
126
127         * table.C (parse_table): handle nested tables
128         * texparser.[Ch] (verbatimEnvironment): new
129
130 2005-03-07  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
131
132         * table.C (verbose_valign): new
133         * table.C (string2int): remove, use convert<int>() instead since the
134         default value is always 0 and this is also the default of
135         convert<int>().
136         * table.C (ci2special): new
137         * table.C (handle_colalign): handle b{}, p{} and m{} correctly
138         * table.C (handle_colalign): fix >{\raggedleft} and >{\raggedright}
139         (they were swapped)
140         * table.C (handle_colalign): handle >{\centering}
141         * table.C (handle_colalign): handle <{}, *{}, @{} and !{}
142         * table.C (fix_colalign): new
143         * table.C (handle_tabular): fix multicolumns with vertical lines
144
145 2005-03-05  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
146
147         * text.C (output_command_layout): Use parse_text instead of
148         parse_text_in_inset to avoid creating a new context
149         * text.C (parse_text): translate \thanks to footnote in title layouts
150
151 2005-02-25  Angus Leeming  <leeming@lyx.org>
152
153         * context.h: declare as "class Font" rather than "struct Font".
154         Ditto "class Context".
155
156         * table.C: declare as "class ColInfo" rather than "struct ColInfo".
157         Ditto "class RowInfo" and "class CellInfo".
158
159         Changes to make MSVC agree to link the code.
160
161 2005-02-05  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
162
163         * context.C (begin_deeper, end_deeper): adjust output to LyX
164         * preamble.C (h_output_changes): new
165         * preamble.C (end_preamble): output paperfontsize without unit
166         * preamble.C (end_preamble): change file format from 237 to 241
167         * text.C (parse_environment, parse_text): adjust paragraph parameters
168         to new file format
169         * text.C (handle_ert, handle_comment): adjust newlines to new file
170         format
171
172 2005-02-03  Angus Leeming  <leeming@lyx.org>
173
174         * Makefile.am: make -lz conditional on USE_COMPRESSION.
175
176 2005-02-03  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
177
178         * text.C (parse_text): handle \includegraphics*
179         * Makefile.am: readd -lz library since gcc 3.3 needs it.
180
181 2005-02-02  Angus Leeming  <leeming@lyx.org>
182
183         * Makefile.am: remove -lz library from the linker call.
184
185 2005-02-02  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
186
187         * text.C (parse_text): Use '\n' and not '\\n' for a newline ;-)
188
189 2005-02-01  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
190
191         * text.C (parse_text): Only reset font changes if not at the
192         beginning of a new layout
193
194 2005-01-31  Angus Leeming  <leeming@lyx.org>
195
196         * tex2lyx.C (main): enable tex2lyx to find the top level
197         build directory when run in-place.
198
199         Also add "fs::path::default_name_check(fs::no_check);"
200
201 2005-01-31  Lars Gullik Bjønnes  <larsbj@gullik.net>
202
203         * tex2lyx.C: rewrite to use boost.filesystem
204         * text.C: ditto
205
206         * Makefile.am (BOOST_LIBS): add BOOST_FILESYSTEM
207
208 2005-01-27  Lars Gullik Bjønnes  <larsbj@gullik.net>
209
210         * Spacing (set): take double instead of float
211
212         * tex2lyx.C: convert stuff
213
214 2005-01-11  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
215
216         * Spacing.h: remove unused parameters
217
218 2005-01-10  Angus Leeming  <leeming@lyx.org>
219
220         * tex2lyx.C: use support/package.h to provide the paths to the
221         various directories used by LyX.
222
223 2005-01-06  Lars Gullik Bjønnes  <larsbj@gullik.net>
224
225         * text.C: tostr -> convert
226
227 2005-01-06  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
228
229         * Spacing.h: adapt dummy file to the changes in src/Spacing.h.
230
231 2005-01-04  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
232
233         * preamble.C (parse_preamble): handle second optional arg of
234         \newcommand etc. and add the command to the known commands (fixes
235         bug 1750)
236         * texparser.[Ch] (getFullOpt): new, like getOpt but distinguish
237         between empty arguments and no argument found
238         * tex2lyx.[Ch]: (add_known_command): new
239         * text.C (parse_text): handle \newcommand etc. (see above)
240         * text.C (parse_text): add comment about \underline
241         * text.C (getCiteArguments): use getFullOpt
242
243 2004-12-15  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
244
245         * table.C (ColInfo, LTRowType, RowInfo, CellInfo, verbose_align):
246         new, extended from math_gridinfo.h and tabular.h
247         * table.C (write_attribute): new, from tabular.C
248         * table.C (read_hlines): remove
249         * table.C (parse_hlines): new
250         * table.C (RowPosition): new
251         * table.C (parse_table): handle comments in hlines
252         * table.C (parse_table, handle_tabular): add longtable support
253         * table.C (handle_tabular): fix "unexpected dummy size" error message
254         * table.C (handle_tabular): fix off by one error for clines
255         * text.C (parse_environment): add longtable support
256
257 2004-12-14  Angus Leeming  <leeming@lyx.org>
258
259         * tex2lyx.C (main): no longer pass pointers to os::init.
260
261 2004-12-14  Angus Leeming  <leeming@lyx.org>
262
263         * Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
264         to overcome bug in the MinGW port of g++ 3.4.2.
265
266 2004-12-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
267
268         * Makefile.am (tex2lyx_LDADD): use boost variables
269
270 2004-11-27  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
271
272         * table.C (handle_colalign): handle comments
273         * table.C (handle_tabular): don't crash on clines with out of range
274         columns
275
276 2004-11-09  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
277
278         * tex2lyx.C: remove format hack
279
280 2004-11-07  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
281
282         * texparser.C (getNewline): new
283         * texparser.C (tokenize): fix bug 1730 by handling MAC line endings
284         correctly
285
286 2004-10-29  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
287
288         * tex2lyx.C (formats): new, needed for libsupport.a
289
290 2004-10-20  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
291
292         * text.C (parse_text): replace newlines with spaces in arguments to
293         known latex commands, fixes bug 1620
294
295 2004-10-12  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
296
297         * preamble.C (end_preamble): change file format from 236 to 237
298         * preamble.C (h_use_geometry, h_use_bibtopic, h_tracking_changes):
299         change from "0" to "false"
300
301 2004-08-29  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
302
303         * preamble.C (end_preamble): change file format from 235 to 236
304         * preamble.C (end_preamble): add \begin_document, \begin_header and
305         \begin_body tags
306         * preamble.C (h_papersize): change from "Default" to "default"
307         * tex2lyx.C (tex2lyx): add end_body tag
308
309 2008-08-16  José Matos  <jamatos@lyx.org>
310
311         * context.C (begin_deeper, end_deeper):
312         * preamble.C (end_preamble):
313         * table.C (handle_tabular):
314         * text.C (end_inset, handle_ert, handle_comment):
315         (parse_text_attributes, parse_text): remove space at end of line.
316
317 2004-08-10  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
318
319         * preamble.C (split_options): new, split package options into vector
320         * preamble.C (add_package): new, add a package with options to
321         used_packages
322         * preamble.C, tex2lyx.h (used_packages): new map of used packages
323         and options
324         * preamble.C (handle_package): handle natbib and jurabib package
325         * preamble.C (handle_package): output a message for unhandled options
326         * preamble.C (parse_preamble): handle \jurabibsetup
327         * text.C (known_natbib_commands): new list of known natbib ccommands
328         * text.C (known_jurabib_commands): new list of known jurabib ccommands
329         * text.C (getCiteArguments): new, parse cite command arguments
330         * text.C (parse_text): handle natbib and jurabib citation commands
331
332 2004-07-29  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
333
334         * preamble.C (end_preamble): change file format from 228 to 235
335         * preamble.C (end_preamble): add use_bibtopic flag
336         * preamble.C (end_preamble): replace use_natbib with cite_engine
337         * preamble.C: change the paperpackage default from "default" to
338         "none". The old setting only worked by accident.
339         * tex2lyx.[Ch] (getMasterFilePath): new, needed for included graphics
340         * text.C (parse_environment): add sideways flag for float insets
341         * text.C (parse_text): add graphics file extension if necessary
342         * text.C (find_file): new helper function
343
344 2004-07-23  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
345
346         * math.C (parse_math): change tex "\\cr" line ending to "\\\\"
347         * table.C (parse_table): recognize tex "\\cr" line ending
348
349 2004-06-28  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
350
351         * math.C, preamble.C, tex2lyx.[Ch], text.C: const fixes
352         * context.[Ch]: new Font struct, and add it to Context
353         * text.C (parse_text): reset size after size change
354         * text.C: handle declaration form of font attribute changes (new
355         and old style)
356         * text.C (parse_text): handle \textmd, \textup and \textnormal
357         * text.C (parse_text_attributes): new
358
359 2004-06-23  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
360
361         * text.C (output_command_layout, parse_environment): fix bug 1446
362         by passing parent_context.deeper_paragraph to the child context
363
364 2004-06-18  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
365
366         * preamble.C, text.C: s/wether/whether/g
367         * text.C (eat_whitespace): new method
368         * texparser.C (getArg): use always curr_token().asInput()
369         * texparser.[Ch] (isParagraph): new method
370         * texparser.C (skip_spaces): handle "\n +\n" correctly
371         * texparser.[Ch] (asMode): remove, since it is unused
372
373 2004-05-27  Lars Gullik Bjønnes  <larsbj@gullik.net>
374
375         * Makefile.am (BUILT_SOURCES): move lengthcommon.C from here...
376         (tex2lyx_SOURCES): ... to here
377
378         * lengthcommon.C: new file
379
380 2004-04-30  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
381
382         * preamble.C: recognize \lyxdot
383         * text.C (parse_text): translate \lyxdot in graphics file names
384         * text.C (handle_ert): translate '\n' (fixes %-newline combinations
385         in \def commands)
386
387 2004-03-26  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
388
389         * text.C (parse_text): handle vspaces like '1cm' correctly
390
391 2004-02-01  Lars Gullik Bjønnes  <larsbj@gullik.net>
392
393         * text.C (parse_box): "\\" -> '\\' in calls to contains.
394
395 2004-01-07  Lars Gullik Bjønnes  <larsbj@gullik.net>
396
397         * text.C: reorder the using statements.
398         (translate_len): remove usage of a uninitialized variable.
399         (isLayout): make it adaptable and constify operator()
400         (findLayout): reformat slightly and dont use the same var for
401         different things.
402
403 2004-01-06  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
404
405         * text.C: fix status tag output for ERT inset
406
407 2003-12-17  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
408
409         * preamble.C: Change file format from 225 to 228
410         * text.C: Convert minipages and parboxes to box insets
411         * text.C: Changes for format 228 (see ../../development/FORMAT)
412         * text.C: Add lyxgreyedout environment
413         * context.[Ch]: New function Context::add_extra_stuff()
414
415 2003-12-08  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
416
417         * text.C: Use the new VSpace inset (fixes a bug with added_space top)
418         * text.C: Fix \= in tabbing env again
419         * text.C: Fix invocation of parse_command()
420
421 2003-11-18  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
422
423         * tex2lyx.C:
424         * tex2lyx.h:
425         * text.C: Read a list of commands and their arguments from a reLyX
426         compatible syntax file in order to parse optional argumnts correctly.
427         * preamble.C:
428         * table.C:
429         * text.C:
430         * tex2lyx.C:
431         * texparser.C
432         * math.C: change size() to !empty() where it was used as bool
433
434 2003-11-03  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
435
436         * math.C:
437         * table.C:
438         * text.C:
439         * context.[Ch]: New functions Context::set_item(),
440         Context::new_paragraph(ostream & os) and Context::atParagraphStart()
441         to make Context usage more explicit
442         * texparser.[Ch]: Rework Parser::tokenize (see comment in texparser.h)
443         * table.C:
444         * math.C:
445         * texparser.C: Don't silently drop comments
446         * texparser.C: Token::asInput() does not append a space anymore
447         * texparser.[Ch]: Renamed Parser::prev_token() to Parser::curr_token().
448         New function Parser::prev_token() returns now really the previous token
449         * Context.[Ch]:
450         * text.C: Convert known vspaces at paragraph start to \\added_space_top
451         * preamble.C: Don't put out newlines twice.
452         * text.C: Fix minipage position bug
453         * text.C: Fix \labelwidthstring bug
454         * text.C: Recognize alignment environments
455         * text.C: Fix a few cases of incorrect context usage, resulting
456         in missing or superflous \begin_layout / \end_laout lines.
457
458 2003-10-23  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
459
460         * math.C:
461         * preamble.C:
462         * table.C:
463         * tex2lyx.C:
464         * tex2lyx.h:
465         * texparser.C:
466         * texparser.h:
467         * text.C:
468         - add \text{}, \intertext{} and \fbox{} support in mathmode.
469         - add support for some math environments like displaymath
470         - allow parsing of partial documents (for inclusion with \input).
471         - steal commandline switches -c and -f from reLyX to support the
472                      previous point
473         - add support for lengths with comma (4,5cm instead of 4.5cm) to
474                      minipage environments. Handle \textwidth etc. without factor
475         - rearrange active_environments.[push,pop]back() so that they are always
476                called in pairs
477         - write an error message if layout file could not be found.
478         - convert \begin{comment}...\end{comment} to comment inset
479         - handle \= correctly inside tabbing environments
480         - fix multicolumn vertical rule bug in tables
481         - add missing \includegraphics options
482         - output minipages with latex lengths as ERT, since lyx cannot handle them
483         - recognize \textsl{}
484         - remove duplicate \ldots
485         - recognize \bibliographystyle and \bibliography
486         - handle \psfrag{ps-text}[ps-pos][tex-pos]{tex-text} correctly
487         - handle environments in table cells correctly
488         - add missing -userdir and -sysdir commandline switches
489         - recognize start of appendix
490         - handle optional arg to \item as ERT in itemize environment, since LyX
491                      does not support it directly
492
493 2003-10-18  Lars Gullik Bjønnes  <larsbj@gullik.net>
494
495         * Makefile.am (BUILT_SOURCES): use this instead of "linked_files"
496         and the link_files target. make the BUILT_SOURCES dependency
497         automatically link the needed files.
498
499 2003-10-14  Angus Leeming  <leeming@lyx.org>
500
501         * Makefile.am: move boost.C from the linked_files section
502         to the tex2lyx_SOURCES section.
503
504         * boost.C: new file. Simpler than the version in the main lyx source.
505         No reference to the emergencyCleanup stuff.
506
507         * tex2lyx.C: remove emergencyCleanup() stuff.
508
509 2003-10-08  Angus Leeming  <leeming@lyx.org>
510
511         Fix doxygen warnings.
512
513         * Spacing.h: \file Spacing.h -> \file tex2lyx/Spacing.h
514         * gettext.C: \file gettext.C -> \file tex2lyx/gettext.C
515         * gettext.h: \file gettext.h -> \file tex2lyx/gettext.h
516         * lyxfont.C: \file lyxfont.C -> \file tex2lyx/lyxfont.C
517         * lyxfont.h: \file lyxfont.h -> \file tex2lyx/lyxfont.h
518         * text.C:    \file text.C    -> \file tex2lyx/text.C
519
520 2003-09-26  Lars Gullik Bjønnes  <larsbj@gullik.net>
521
522         * tex2lyx.C: adjust for new debugstream.
523
524 2003-09-08  Angus Leeming  <leeming@lyx.org>
525
526         * math.C:
527         * preamble.C:
528         * table.C:
529         * tex2lyx.C:
530         * texparser.C: remove redundant using directives.
531
532 2003-08-19  Angus Leeming  <leeming@lyx.org>
533
534         * most files: add 'standard conformant' header blurb.
535         Also add Jean-Marc as an author where appropriate.
536
537 2003-08-08  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
538
539         * Makefile.am (EXTRA_DIST):
540         * test-insets.tex: new file. Describes the insets and special
541         characters that tex2lyx handles.
542
543         * text.C (parse_text): support \vref, \vpageref (only one optional
544         argument), \prettyref; add support for include inset; when \\ has
545         optional arguments, use ERT; support also \listoffigures,
546         \listoftables, and \listof{xxx} for existing float types;
547         translate lenghts properly for graphics inset.
548         (parse_environment): add support for minipages
549
550         * text.C (translate_len): A simple function to translate a latex
551         length to something lyx can understand. Not perfect, but rather
552         best-effort.
553
554 2003-08-07  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
555
556         * text.C (parse_text): special handling for \item and \bibitem
557         macros
558
559         * context.C (begin_layout, end_layout, begin_deeper, end_deeper):
560         tiny helper functions
561         (check_layout):
562         (check_end_deeper): add special handling for the case of a normal
563         paragraph inside a list-like environment.
564
565         * test-structure.tex: add more stuff there
566
567 2003-08-05  Alfredo Braunstein  <abraunst@libero.it>
568
569         * context.h: compile fix
570
571 2003-08-05  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
572
573         * text.C: some tweaks to make nesting work. What still does not
574         work is nesting a standard paragraph in a list.
575
576         * test-structure.tex: update a bit
577
578         * context.C (check_deeper, check_end_deeper): new methods to
579         handle the *_deeper stuff
580
581         * preamble.C (end_preamble): small tweaks
582
583 2003-08-03  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
584
585         * text.C: update to use Context struct, and more notably:
586         (cap, check_layout, check_end_layout): remove
587         (parse_text_snippet): new thin wrapper around parse_text, used for
588         things like \textrm{...}
589         (parse_environment): remove existing depth handling code, which is
590         handled transparently by the Context struct; make unknown
591         environments work (again?) through ERT
592
593         * test-structure.tex: new test file, used to try out various
594         layouts combinations
595
596         * tex2lyx.C:
597         * tex2lyx.h:
598         * table.C: update to use Context struct
599
600         * context.[Ch]: new helper struct which is passed to parse_*
601         functions and handles *_layout and *_deeper tags output
602
603         * Makefile.am (EXTRA_DIST): new file test-structure.tex
604         (tex2lyx_SOURCES): add context.[Ch]
605
606 2003-07-30  Angus Leeming  <leeming@lyx.org>
607
608         * Makefile.am: Hide the fact that we re-generate those symbolic links
609         brainlessly.
610
611 2003-07-29  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
612
613         * text.C (check_layout): \layout -> \begin_layout
614         (parse_text_in_inset): convenience function
615
616         * tex2lyx.C (main): \the_end -> \end_document
617
618         * preamble.C (end_preamble): update version number to 225
619
620         * text.C (parse_text): replace test on "lyxcode" with test on
621         LyXLayout::freespacing.
622         (check_end_layout): new function, used to check whether we need to
623         add an \end_layout
624
625 2003-07-28  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
626
627         * tex2lyx.C (clean_layouts): remove
628
629         * text.C: output lazily the \layout commands using the
630         check_layout function. Remove all explicit \layout tags.
631         (parse_text): pass an optional parameter 'layout'
632         (handle_par): remove
633
634         * text.C (output_command_layout): renamed from output_layout
635         (parse_environment): new method containing a part of parse_text
636
637         * tex2lyx.C:
638         * preamble.C:
639         * table.C: \begin_layout -> \layout. We are not quite ready for
640         that yet
641
642 2003-07-28  José Matos  <jamatos@lyx.org>
643
644         * text.C:
645         * tex2lyx.C:
646         * preamble.C:
647         * table.C: \layout -> \begin_layout.
648
649 2003-07-28  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
650
651         * text.C (parse_text): read environment from layout file too. Now,
652         all layout entries are supported (but many hacks remain); note
653         that the nesting support is broken and will have to be completely
654         redone
655         (parse_text): basic support for english double quotes
656
657         * table.C (handle_tabular): make the output more similar to LyX
658         and fix a little
659
660         * text.C (output_layout): fix handling of optional argument
661         (parse_text): small tweaks to make output format closer to lyx
662         format; support \tableofcontents; fix/improve support for various
663         special characters
664
665 2003-07-27  Angus Leeming  <leeming@lyx.org>
666
667         * Makefile.am: remove unused graphics_link_files cruft.
668         Thanks, Kayvan!
669
670 2003-07-27  Angus Leeming  <leeming@lyx.org>
671
672         * tex2lyx.C: add Debug::ANY hack.
673
674         * text.C: remove hardcoded command layouts.
675
676 2003-07-26  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
677
678         * text.C (parse_text): fix handling of \LaTeXe macro
679
680 2003-07-26  Angus Leeming  <leeming@lyx.org>
681
682         * Spacing.h:
683         * lyxfont.[Ch]:
684         * gettext.[Ch]: minimal (near empty) analogues of the real LyX
685         files; enough to get LyXTextClass and LyXLayout to compile without
686         needing to store any real information about Spacing or Font.
687
688         * Makefile.am: add these files above and also include a minimal
689         chunk of the main lyx source tree as soft links in order to add in
690         LyXTextClass and LyXLayout.
691
692         * .cvsignore: add all these soft links.
693
694         * preamble.C (end_preamble): passed a LyXTextClass arg.
695         (parse_preamble): returns the document LyXTextClass.
696
697         * tabular.C (handle_tabular): passed a LyXTextClass arg. In turn
698         pass it to parse_text.
699
700         * tex2lyx.C: add some global vars, build_lyxdir et al. For now,
701         give them some horrible hard-coded value.
702         (main): receive a LyXTextClass var from parse_preamble and pass it
703         on to parse_text.
704
705         * text.C (parse_text): receives a LyXTextClass arg. Use it to
706         remove the hard-coded handling of floats and instead check the
707         textclass for its existence. Also handle wide floats naturally.
708
709         * tex2lyx.h: associated changes to function declarations.
710
711 2003-07-18  Lars Gullik Bjønnes  <larsbj@gullik.net>
712
713         * texparser.C (catInit): same warning avoidance as in math_parser.C
714         (setCatCode): cast to safe type
715         (getCatCode): ditto
716
717 2003-05-17  Joao Luis M. Assirati  <assirati@fma.if.usp.br>
718
719         * texparser.C: fix paragraph parsing after comment
720
721 2003-04-29  André Pönitz  <poenitz@gmx.net>
722
723         * Makefile.am:
724           texparser.h: whitespace
725
726 2003-04-20  Kayvan A. Sylvan  <kayvan@sylvan.com>
727
728         * table.C: use string::erase(), not string::clear() to enable older
729         versions of gcc to compile the code.
730
731 2003-04-17  André Pönitz  <poenitz@gmx.net>
732
733         * math.C:
734           preamble.C:
735           table.C:
736           text.C: new files
737
738         * table.C: better table handling
739
740         * tex2lyx.C: lots of small changes
741
742 2003-02-25  Angus Leeming  <leeming@lyx.org>
743
744         * .cvsignore: ignore *.lo and libtexparser.la.
745
746 2003-02-20  Angus Leeming  <leeming@lyx.org>
747
748         * tex2lyx.C: swap <sstream> for "Lsstream.h".
749
750 2003-02-11  Angus Leeming  <leeming@lyx.org>
751
752         * tex2lyx.C (handle_opt): prevent infinite loop if opts is empty.
753         (handle_package): new function, factoring code out of Parser::parse.
754         (trim): copied across from support/lstrings.C
755         (Parser::parse): handle '\usepackage{foo, bar}'.
756
757 2003-02-11  André Pönitz  <poenitz@gmx.net>
758
759         * tex2lyx.C: first shot at real code
760
761 2003-02-11  Angus Leeming  <leeming@lyx.org>
762
763         * .cvsignore: new file.
764
765 2003-02-10  Angus Leeming  <leeming@lyx.org>
766
767         * Makefile.am: empty, dummy file so that autogen.sh and configure
768         are happy.