1 2008-08-16 José Matos <jamatos@lyx.org>
3 * context.C (begin_deeper, end_deeper):
4 * preamble.C (end_preamble):
5 * table.C (handle_tabular):
6 * text.C (end_inset, handle_ert, handle_comment):
7 (parse_text_attributes, parse_text): remove space at end of line.
9 2004-08-10 Georg Baum <Georg.Baum@post.rwth-aachen.de>
11 * preamble.C (split_options): new, split package options into vector
12 * preamble.C (add_package): new, add a package with options to
14 * preamble.C, tex2lyx.h (used_packages): new map of used packages
16 * preamble.C (handle_package): handle natbib and jurabib package
17 * preamble.C (handle_package): output a message for unhandled options
18 * preamble.C (parse_preamble): handle \jurabibsetup
19 * text.C (known_natbib_commands): new list of known natbib ccommands
20 * text.C (known_jurabib_commands): new list of known jurabib ccommands
21 * text.C (getCiteArguments): new, parse cite command arguments
22 * text.C (parse_text): handle natbib and jurabib citation commands
24 2004-07-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
26 * preamble.C (end_preamble): change file format from 228 to 235
27 * preamble.C (end_preamble): add use_bibtopic flag
28 * preamble.C (end_preamble): replace use_natbib with cite_engine
29 * preamble.C: change the paperpackage default from "default" to
30 "none". The old setting only worked by accident.
31 * tex2lyx.[Ch] (getMasterFilePath): new, needed for included graphics
32 * text.C (parse_environment): add sideways flag for float insets
33 * text.C (parse_text): add graphics file extension if necessary
34 * text.C (find_file): new helper function
36 2004-07-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
38 * math.C (parse_math): change tex "\\cr" line ending to "\\\\"
39 * table.C (parse_table): recognize tex "\\cr" line ending
41 2004-06-28 Georg Baum <Georg.Baum@post.rwth-aachen.de>
43 * math.C, preamble.C, tex2lyx.[Ch], text.C: const fixes
44 * context.[Ch]: new Font struct, and add it to Context
45 * text.C (parse_text): reset size after size change
46 * text.C: handle declaration form of font attribute changes (new
48 * text.C (parse_text): handle \textmd, \textup and \textnormal
49 * text.C (parse_text_attributes): new
51 2004-06-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
53 * text.C (output_command_layout, parse_environment): fix bug 1446
54 by passing parent_context.deeper_paragraph to the child context
56 2004-06-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
58 * preamble.C, text.C: s/wether/whether/g
59 * text.C (eat_whitespace): new method
60 * texparser.C (getArg): use always curr_token().asInput()
61 * texparser.[Ch] (isParagraph): new method
62 * texparser.C (skip_spaces): handle "\n +\n" correctly
63 * texparser.[Ch] (asMode): remove, since it is unused
65 2004-05-27 Lars Gullik Bjonnes <larsbj@gullik.net>
67 * Makefile.am (BUILT_SOURCES): move lengthcommon.C from here...
68 (tex2lyx_SOURCES): ... to here
70 * lengthcommon.C: new file
72 2004-04-30 Georg Baum <Georg.Baum@post.rwth-aachen.de>
74 * preamble.C: recognize \lyxdot
75 * text.C (parse_text): translate \lyxdot in graphics file names
76 * text.C (handle_ert): translate '\n' (fixes %-newline combinations
79 2004-03-26 Georg Baum <Georg.Baum@post.rwth-aachen.de>
81 * text.C (parse_text): handle vspaces like '1cm' correctly
83 2004-02-01 Lars Gullik Bjonnes <larsbj@gullik.net>
85 * text.C (parse_box): "\\" -> '\\' in calls to contains.
87 2004-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
89 * text.C: reorder the using statements.
90 (translate_len): remove usage of a uninitialized variable.
91 (isLayout): make it adaptable and constify operator()
92 (findLayout): reformat slightly and dont use the same var for
95 2004-01-06 Georg Baum <Georg.Baum@post.rwth-aachen.de>
97 * text.C: fix status tag output for ERT inset
99 2003-12-17 Georg Baum <Georg.Baum@post.rwth-aachen.de>
101 * preamble.C: Change file format from 225 to 228
102 * text.C: Convert minipages and parboxes to box insets
103 * text.C: Changes for format 228 (see ../../development/FORMAT)
104 * text.C: Add lyxgreyedout environment
105 * context.[Ch]: New function Context::add_extra_stuff()
107 2003-12-08 Georg Baum <Georg.Baum@post.rwth-aachen.de>
109 * text.C: Use the new VSpace inset (fixes a bug with added_space top)
110 * text.C: Fix \= in tabbing env again
111 * text.C: Fix invocation of parse_command()
113 2003-11-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
117 * text.C: Read a list of commands and their arguments from a reLyX
118 compatible syntax file in order to parse optional argumnts correctly.
124 * math.C: change size() to !empty() where it was used as bool
126 2003-11-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
131 * context.[Ch]: New functions Context::set_item(),
132 Context::new_paragraph(ostream & os) and Context::atParagraphStart()
133 to make Context usage more explicit
134 * texparser.[Ch]: Rework Parser::tokenize (see comment in texparser.h)
137 * texparser.C: Don't silently drop comments
138 * texparser.C: Token::asInput() does not append a space anymore
139 * texparser.[Ch]: Renamed Parser::prev_token() to Parser::curr_token().
140 New function Parser::prev_token() returns now really the previous token
142 * text.C: Convert known vspaces at paragraph start to \\added_space_top
143 * preamble.C: Don't put out newlines twice.
144 * text.C: Fix minipage position bug
145 * text.C: Fix \labelwidthstring bug
146 * text.C: Recognize alignment environments
147 * text.C: Fix a few cases of incorrect context usage, resulting
148 in missing or superflous \begin_layout / \end_laout lines.
150 2003-10-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
160 - add \text{}, \intertext{} and \fbox{} support in mathmode.
161 - add support for some math environments like displaymath
162 - allow parsing of partial documents (for inclusion with \input).
163 - steal commandline switches -c and -f from reLyX to support the
165 - add support for lengths with comma (4,5cm instead of 4.5cm) to
166 minipage environments. Handle \textwidth etc. without factor
167 - rearrange active_environments.[push,pop]back() so that they are always
169 - write an error message if layout file could not be found.
170 - convert \begin{comment}...\end{comment} to comment inset
171 - handle \= correctly inside tabbing environments
172 - fix multicolumn vertical rule bug in tables
173 - add missing \includegraphics options
174 - output minipages with latex lengths as ERT, since lyx cannot handle them
175 - recognize \textsl{}
176 - remove duplicate \ldots
177 - recognize \bibliographystyle and \bibliography
178 - handle \psfrag{ps-text}[ps-pos][tex-pos]{tex-text} correctly
179 - handle environments in table cells correctly
180 - add missing -userdir and -sysdir commandline switches
181 - recognize start of appendix
182 - handle optional arg to \item as ERT in itemize environment, since LyX
183 does not support it directly
185 2003-10-18 Lars Gullik Bjønnes <larsbj@gullik.net>
187 * Makefile.am (BUILT_SOURCES): use this instead of "linked_files"
188 and the link_files target. make the BUILT_SOURCES dependency
189 automatically link the needed files.
191 2003-10-14 Angus Leeming <leeming@lyx.org>
193 * Makefile.am: move boost.C from the linked_files section
194 to the tex2lyx_SOURCES section.
196 * boost.C: new file. Simpler than the version in the main lyx source.
197 No reference to the emergencyCleanup stuff.
199 * tex2lyx.C: remove emergencyCleanup() stuff.
201 2003-10-08 Angus Leeming <leeming@lyx.org>
203 Fix doxygen warnings.
205 * Spacing.h: \file Spacing.h -> \file tex2lyx/Spacing.h
206 * gettext.C: \file gettext.C -> \file tex2lyx/gettext.C
207 * gettext.h: \file gettext.h -> \file tex2lyx/gettext.h
208 * lyxfont.C: \file lyxfont.C -> \file tex2lyx/lyxfont.C
209 * lyxfont.h: \file lyxfont.h -> \file tex2lyx/lyxfont.h
210 * text.C: \file text.C -> \file tex2lyx/text.C
212 2003-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
214 * tex2lyx.C: adjust for new debugstream.
216 2003-09-08 Angus Leeming <leeming@lyx.org>
222 * texparser.C: remove redundant using directives.
224 2003-08-19 Angus Leeming <leeming@lyx.org>
226 * most files: add 'standard conformant' header blurb.
227 Also add Jean-Marc as an author where appropriate.
229 2003-08-08 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
231 * Makefile.am (EXTRA_DIST):
232 * test-insets.tex: new file. Describes the insets and special
233 characters that tex2lyx handles.
235 * text.C (parse_text): support \vref, \vpageref (only one optional
236 argument), \prettyref; add support for include inset; when \\ has
237 optional arguments, use ERT; support also \listoffigures,
238 \listoftables, and \listof{xxx} for existing float types;
239 translate lenghts properly for graphics inset.
240 (parse_environment): add support for minipages
242 * text.C (translate_len): A simple function to translate a latex
243 length to something lyx can understand. Not perfect, but rather
246 2003-08-07 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
248 * text.C (parse_text): special handling for \item and \bibitem
251 * context.C (begin_layout, end_layout, begin_deeper, end_deeper):
252 tiny helper functions
254 (check_end_deeper): add special handling for the case of a normal
255 paragraph inside a list-like environment.
257 * test-structure.tex: add more stuff there
259 2003-08-05 Alfredo Braunstein <abraunst@libero.it>
261 * context.h: compile fix
263 2003-08-05 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
265 * text.C: some tweaks to make nesting work. What still does not
266 work is nesting a standard paragraph in a list.
268 * test-structure.tex: update a bit
270 * context.C (check_deeper, check_end_deeper): new methods to
271 handle the *_deeper stuff
273 * preamble.C (end_preamble): small tweaks
275 2003-08-03 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
277 * text.C: update to use Context struct, and more notably:
278 (cap, check_layout, check_end_layout): remove
279 (parse_text_snippet): new thin wrapper around parse_text, used for
280 things like \textrm{...}
281 (parse_environment): remove existing depth handling code, which is
282 handled transparently by the Context struct; make unknown
283 environments work (again?) through ERT
285 * test-structure.tex: new test file, used to try out various
290 * table.C: update to use Context struct
292 * context.[Ch]: new helper struct which is passed to parse_*
293 functions and handles *_layout and *_deeper tags output
295 * Makefile.am (EXTRA_DIST): new file test-structure.tex
296 (tex2lyx_SOURCES): add context.[Ch]
298 2003-07-30 Angus Leeming <leeming@lyx.org>
300 * Makefile.am: Hide the fact that we re-generate those symbolic links
303 2003-07-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
305 * text.C (check_layout): \layout -> \begin_layout
306 (parse_text_in_inset): convenience function
308 * tex2lyx.C (main): \the_end -> \end_document
310 * preamble.C (end_preamble): update version number to 225
312 * text.C (parse_text): replace test on "lyxcode" with test on
313 LyXLayout::freespacing.
314 (check_end_layout): new function, used to check whether we need to
317 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
319 * tex2lyx.C (clean_layouts): remove
321 * text.C: output lazily the \layout commands using the
322 check_layout function. Remove all explicit \layout tags.
323 (parse_text): pass an optional parameter 'layout'
326 * text.C (output_command_layout): renamed from output_layout
327 (parse_environment): new method containing a part of parse_text
331 * table.C: \begin_layout -> \layout. We are not quite ready for
334 2003-07-28 José Matos <jamatos@lyx.org>
339 * table.C: \layout -> \begin_layout.
341 2003-07-28 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
343 * text.C (parse_text): read environment from layout file too. Now,
344 all layout entries are supported (but many hacks remain); note
345 that the nesting support is broken and will have to be completely
347 (parse_text): basic support for english double quotes
349 * table.C (handle_tabular): make the output more similar to LyX
352 * text.C (output_layout): fix handling of optional argument
353 (parse_text): small tweaks to make output format closer to lyx
354 format; support \tableofcontents; fix/improve support for various
357 2003-07-27 Angus Leeming <leeming@lyx.org>
359 * Makefile.am: remove unused graphics_link_files cruft.
362 2003-07-27 Angus Leeming <leeming@lyx.org>
364 * tex2lyx.C: add Debug::ANY hack.
366 * text.C: remove hardcoded command layouts.
368 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
370 * text.C (parse_text): fix handling of \LaTeXe macro
372 2003-07-26 Angus Leeming <leeming@lyx.org>
376 * gettext.[Ch]: minimal (near empty) analogues of the real LyX
377 files; enough to get LyXTextClass and LyXLayout to compile without
378 needing to store any real information about Spacing or Font.
380 * Makefile.am: add these files above and also include a minimal
381 chunk of the main lyx source tree as soft links in order to add in
382 LyXTextClass and LyXLayout.
384 * .cvsignore: add all these soft links.
386 * preamble.C (end_preamble): passed a LyXTextClass arg.
387 (parse_preamble): returns the document LyXTextClass.
389 * tabular.C (handle_tabular): passed a LyXTextClass arg. In turn
390 pass it to parse_text.
392 * tex2lyx.C: add some global vars, build_lyxdir et al. For now,
393 give them some horrible hard-coded value.
394 (main): receive a LyXTextClass var from parse_preamble and pass it
397 * text.C (parse_text): receives a LyXTextClass arg. Use it to
398 remove the hard-coded handling of floats and instead check the
399 textclass for its existence. Also handle wide floats naturally.
401 * tex2lyx.h: associated changes to function declarations.
403 2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
405 * texparser.C (catInit): same warning avoidance as in math_parser.C
406 (setCatCode): cast to safe type
409 2003-05-17 Joao Luis M. Assirati <assirati@fma.if.usp.br>
411 * texparser.C: fix paragraph parsing after comment
413 2003-04-29 André Pönitz <poenitz@gmx.net>
416 texparser.h: whitespace
418 2003-04-20 Kayvan A. Sylvan <kayvan@sylvan.com>
420 * table.C: use string::erase(), not string::clear() to enable older
421 versions of gcc to compile the code.
423 2003-04-17 André Pönitz <poenitz@gmx.net>
430 * table.C: better table handling
432 * tex2lyx.C: lots of small changes
434 2003-02-25 Angus Leeming <leeming@lyx.org>
436 * .cvsignore: ignore *.lo and libtexparser.la.
438 2003-02-20 Angus Leeming <leeming@lyx.org>
440 * tex2lyx.C: swap <sstream> for "Lsstream.h".
442 2003-02-11 Angus Leeming <leeming@lyx.org>
444 * tex2lyx.C (handle_opt): prevent infinite loop if opts is empty.
445 (handle_package): new function, factoring code out of Parser::parse.
446 (trim): copied across from support/lstrings.C
447 (Parser::parse): handle '\usepackage{foo, bar}'.
449 2003-02-11 André Pönitz <poenitz@gmx.net>
451 * tex2lyx.C: first shot at real code
453 2003-02-11 Angus Leeming <leeming@lyx.org>
455 * .cvsignore: new file.
457 2003-02-10 Angus Leeming <leeming@lyx.org>
459 * Makefile.am: empty, dummy file so that autogen.sh and configure