1 LyX file-format changes
2 -----------------------
4 2007-05-06 Uwe Stöhr <uwestoehr@web.de>
6 * format incremented to 268: add support for the CJK encodings
7 - all encodings supported by CJK.sty are now in lib/encodings
8 - lib/encoding has got two new flags:
10 "inputenc" for those languages that use the inputenc-package and
11 "CJK" for the CJK encodings
12 - "fixed"/"variable" to divide between multi- or single-byte encoding
13 - lib/languages allows now to set an empty language for babel
14 in this case babel isn't called.
16 2007-05-04 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
18 * format incremented to 267: add plain utf8 encoding (for XeTeX).
20 2007-04-29 Uwe Stöhr <uwestoehr@web.de>
22 * format incremented to 266:
23 Support for the Armenian language
25 2007-04-26 Uwe Stöhr <uwestoehr@web.de>
27 * format incremented to 265: fix LyX's table border line handling
28 With the fix (see bug 1746) LyX now takes care if the user has entered
29 a "|" character in the argument field of tables. Therefore the "|"
30 character has to be removed when also a table border is set.
32 2007-04-24 José Matos <jamatos@lyx.org>
34 * format incremented to 264:
35 textclass cv is renamed simplecv
37 2007-02-22 José Matos <jamatos@lyx.org>
39 * format incremented to 263: changes in the language names (overdue):
41 portuges -> portuguese
43 2007-02-16 Georg Baum <Georg.Baum@post.rwth-aachen.de>
45 * format incremented to 262: Allow ascii \inputencoding
47 2007-02-14 Georg Baum <Georg.Baum@post.rwth-aachen.de>
49 * format incremented to 261: \output_changes is now considered
50 even if \tracking_changes is false. This allows to output existing
51 changes even if future changes are not tracked anymore.
54 \tracking_changes false
57 is therefore converted to
59 \tracking_changes false
62 on upgrade. Nothing is done on downgrade since the new behaviour is
63 not supported in older formats.
65 2007-02-13 Georg Baum <Georg.Baum@post.rwth-aachen.de>
67 * format incremented to 260: Allow utf8x \inputencoding
69 2007-02-12 Georg Baum <Georg.Baum@post.rwth-aachen.de>
71 * format incremented to 259:
72 Old: Spaces at start or end of font changes were output outside of
73 the font change, i.e. not 'xx\textbf{ yy }zz', but
75 New: Spaces are always output with the font set by the user.
77 2007-01-31 Uwe Stöhr <uwestoehr@web.de>
79 * format incremented to 258: new \lyxline definition
81 \\newcommand{\\lyxline}[1]{
82 {#1 \\vspace{1ex} \\hrule width \\columnwidth \\vspace{1ex}}
85 \\newcommand{\\lyxline}[1][1pt]{%
87 \\rule[.5ex]{\\linewidth}{#1}\\par}
88 The new definition is more robust, see bug 1988 and now really takes care about
89 the fontsize: \lyxline{\Huge} produces now a thicker line then \lyxline{\normalfont}
91 2007-01-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
93 * format incremented to 257: Caption styles have been replaced by
94 InsetCaption. This is at the same time also a layout file format
95 change to format 3. layout2layout removes caption layouts from old
97 Note that InsetCaption did exist before this format, but was never
98 used. Old files containing do nevertheless still work.
99 Of course users can still define a Caption style in layout files,
100 but the special treatment in LyX is gone (apart from the sensitive
103 2006-12-22 Georg Baum <Georg.Baum@post.rwth-aachen.de>
105 * format incremented to 256: allow some new inputenc settings.
106 For the complete list, see lib/lyx2lyx/lyx_1_5.py.
108 2006-11-25 Georg Baum <Georg.Baum@post.rwth-aachen.de>
110 * format incremented to 255: new insets for \clearpage and
111 \cleardoublepage. They are written inline to the file, exactly like
114 2006-11-13 Georg Baum <Georg.Baum@post.rwth-aachen.de>
116 * format incremented to 254: new header parameter \use_esint.
117 It can have the same values as \use_amsmath: 0 (off), 1 (auto) and
120 2006-10-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
122 * format incremented to 253: new nomenclature and printnomenclature
123 insets. These are standard InsetCommand with the following parameters:
124 \nomenclature[prefix]{symbol}{description}
125 \printnomenclature[labelwidth]
127 2006-10-15 Georg Baum <Georg.Baum@post.rwth-aachen.de>
129 * format incremented to 252: changed command inset syntax
133 \begin_inset LatexCommand \cmdname[opt1][opt2]{arg}
144 \begin_inset LatexCommand cmdname
151 The order of the parameters and for each parameter the name and
152 optional/required bit is now stored in InsetCommandParams.
154 2006-10-03 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
156 * format incremented to 251: save show_label param for charstyles.
158 On revert, the show_label param is just removed. Nothing to convert.
160 2006-10-12 Martin Vermeer <martin.vermeer@hut.fi>
162 * Format incremented to 250: allow optional arg to environments
164 No material format change. Now optargs for environments are allowed
165 to be specified in layout files and will be handled properly. When
166 converted back to older formats, they will be ignored in LaTeX
169 2006-08-14 Georg Baum <Georg.Baum@post.rwth-aachen.de>
171 * format incremented to 249: Unicode
173 LyX documents are now always encoded in utf8. The value of
174 \inputencoding does now only determine the encoding of the created
176 Up to format 248 the value of \inputencoding did also determine the
177 encoding of the LyX file:
179 \inputencoding LyX file encoding
180 auto as determined by the document and character
183 everything else as determined by \inputencoding
185 The difference between auto and default is only the LaTeX output:
186 auto causes loading of the inputenc package, default does not.
188 2006-07-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
190 * format incremented to 248: Basic booktabs support
192 The <features> tag has a new switch: booktabs="true|false".
193 An absent switch is equivalent to booktabs="false".
194 Horizontal lines are set with the booktabs package if this switch
197 The <row> tag of tabulars has the following new attributes:
198 topspace, bottomspace and interlinespace. All take a LyXLength
199 as value, or the special keyword "default".
201 2006-06-10 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
203 * format incremented to 247. The Grand Font Interface Rewrite.
204 (1) Split font selection to rm, sf, tt:
205 \fontscheme -> \font_roman, \font_sans, \font_typewriter
207 \fontscheme \font_roman \font_sans \font_typewriter
208 default default default default
209 ae ae default default
210 times times default default
211 palatino palatino default default
212 helvet default helvet default
213 avant default avant default
214 newcent newcent default default
215 bookman bookman default default
216 pslatex times (or \usepackage{pslatex})
218 \font_roman: cmr (-> \renewcommand{\rmdefault}{cmr}),
219 lmodern, charter, utopia, ccfonts, chancery, beraserif
220 (-> \usepackage{<name>})
221 \font_sans: cmss, lmss, cmbr
222 (-> \renewcommand{\sfdefault}{<name>})
223 berasans (-> \usepackage{<name>})
224 \font_typewriter: cmtt, lmtt, cmtl,
225 (-> \renewcommand{\sfdefault}{<name>})
226 courier, luximono, beramono
227 (-> \usepackage{<name>})
228 (2) New param \font_default_family (rmdefault, sfdefault, ttdefault)
229 (3) New param \font_sc (true, false).
230 (4) New param \font_osf (true, false).
231 (5) New param \font_sf_scale (float)
232 (6) New param \font_tt_scale (float)
233 Support for the following fonts has been added:
234 bera, ccfonts, chancery, charter, cmbright, computer modern (explicitely),
235 courier, lmodern, luximono, utopia.
236 Support for the following font has been removed:
237 pslatex (it's superseded by mathptmx (times)).
239 2006-06-03 Martin Vermeer <martin.vermeer@hut.fi>
241 * format incremented to 246. The framed.sty package is
242 now supported with note types framed and shaded.
244 2005-10-12 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
246 * format incremented to 245. The \quotes_times parameter
249 2005-09-24 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
251 * format incremented to 244. Rename '\InsetSpace \,'
252 to '\InsetSpace \thinspace{}', because the comma was
253 not parsed by lyxlex, and '\InsetSpace \space' to
254 '\InsetSpace \space{}' in favour of consistency.
256 2005-07-18 José Matos <jamatos@lyx.org>
258 * format incremented to 243.
260 * this change only affects the preamble, the paperpackage
261 option was removed and papersize is changed to default.
263 2005-06-21 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
265 * format incremented to 242. There is no file format per
266 se, but the "frenchb" language has been removed from lib/language
267 and has to be translated to "french" by lyx2lyx.
269 2005-02-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
271 * format incremented to 241.
273 All following changes apply only to text in ERT insets. The
274 rationale is that text in ERT is simply ASCII text, and nothing more.
276 * paragraph breaks are now a single newline in latex and not a
277 paragraph break anymore (bug 698).
278 * \newline is not allowed anymore, because it is redundant (see above)
279 * layouts other than Standard, paragraph parameters and font changes
280 are not allowed anymore. They never made sense and were ignored for
281 latex output, but now they can't be read or set anymore (bug 922).
284 2005-01-23 Jürgen Spitzmüller <j.spitzmüller@gmx.de>
286 * format incremented to 240.
288 \output_changes {true|false}
289 (should the change tracking marks be visible in the output or not?)
290 * lyx2lyx should just delete the param in 239.
292 2005-01-06 José Matos <jamatos@lyx.org>
294 * format incremented to 239.
295 * the paragraph parameters are displayed in their own line. This
296 change is consistent with the insets behaviour, and corresponds
297 to a more uniform treatment of the paragraphs since some of them
298 had already their own line.
300 An example of a single paragraph follows:
302 \begin_layout Standard
303 \paragraph_spacing single
309 2004-12-03 José Matos <jamatos@lyx.org>
311 * format incremented to 238.
312 * The compatibility code to read old latex accents from 0.12.x in
313 InsetLatexAccent::checkContents has been removed.
314 The following translations are done:
316 "\i \xy" -> "\i \x{y}"
317 "\i \x y" -> "\i \x{y}"
318 "\i \x\i" -> "\i \x{\i}"
319 "\i \x\j" -> "\i \x{\j}"
320 x is a latex accent command, y the base character. \, i and j are
322 lyx did these changes already from 0.12.x -> 215, but not lyx2lyx,
323 so formats 215 - 237 can have both versions.
326 2004-10-10 José Matos <jamatos@lyx.org>
328 * format incremented to 237.
329 * In the header, the following statments use now booleans values,
335 2004-08-15 José Matos <jamatos@lyx.org>
337 * format incremented to 236.
344 * The options for \papersize are changed:
347 * All whitespaces are removed at the end of lines, when
348 not necessary. As an example we have all the lines in the header that
349 do not belong to the preamble.
351 2004-07-01 Georg Baum <Georg.Baum@post.rwth-aachen.de>
353 * format incremented to 235.
354 * \paperpackage had an off-by-one error. Translation table:
356 234: a4 a4wide widemarginsa4
357 235: none a4 a4wide widemarginsa4
359 The "widemarginsa4" setting of 235 has no equivalent in 234.
361 2004-05-12 Angus Leeming <leeming@lyx.org>
363 * format incremented to 234.
364 * the citation engine is specified explicitly rather than being
365 deduced from 3 bools.
368 \use_numerical_citations 0 -> \cite_engine <style>
371 where <style> is one of "basic", "natbib_authoryear",
372 "natbib_numerical" or "jurabib".
374 2004-04-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
376 * format incremented to 233.
377 * insetgraphics does not allow filenames without extension anymore.
378 The complete filename has to be given.
380 2004-03-29 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
382 * format incremented to 232.
384 * Support for bibtopic (sectioned bibliographies).
385 - bufferparam \use_bibtopic [1|0]
386 - the bibtex inset has a second argument for bibtopic's
387 btPrint{Cited|NotCited|All} command:
389 \begin_inset LatexCommand \bibtex[<style>]{<database>}
391 \begin_inset LatexCommand \bibtex[<style>][<btPrintX>]{<database>}
392 Forwards, there's nothing to be done. Backwards, \usepackage[dot]{bibtopic}
393 has to be inserted to the preamble. Instead of the bibtex inset, the LaTeX
394 \bibliographystyle{<style>}
395 \begin{btSect}{<database>}
400 2004-03-29 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
402 * format incremented to 231.
404 * Support for sidewaysfigure/sidewaystable (rotating package).
405 insetfloat has now a param \sideways [true|false] (default is false).
406 The param should be erased on downwards conversion, if it was true,
407 the inset should be replaced by
408 \begin{sidewaysfigure} <content> \end{sidewaysfigure}
410 \begin{sidewaystable} <content> \end{sidewaystable}
413 2004-02-23 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
415 * format incremented to 230.
417 * Support for a second optional argument in insetcommand.
418 currently, citation uses this to support natbibs second
419 optional argument \cite[before][after]{key}.
420 I think there's nothing to convert upwards. Downwards, the
421 commands with 2 optional args need to be converted to ERT.
423 * Support for jurabib (param \use_jurabib [1|0], default is 0).
424 When converting downwards, \usepackage{jurabib} has to be added
425 to the preamble and, if babel is used, \usepackage{babel} before
426 (jurabib fails if babel is called afterwards). If the natbib commands
427 are used together with jurabib, they have to be converted to ERT too.
429 2003-12-29 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
431 * format incremented to 229.
432 * Minipages cannot be read anymore. All minipage insets will
433 be converted to frameless box insets between 228->229.
435 2003-12-15 Angus Leeming <leeming@lyx.org>
437 * format incremented to 228.
438 * Change the output of all insets derived from InsetCollapsable
439 except for InsetERT (which has a similar output already), changing lines
440 "collapsed true" -> "status collapsed"
441 "collapsed false" -> "status open".
442 * Change the output of InsetERT, changing lines
443 "status Collapsed" -> "status collapsed"
444 "status Open" -> "status open".
445 "status Inlined" -> "status inlined".
447 2003-12-10 Angus Leeming <leeming@lyx.org>
449 * format NOT incremented.
450 * add a 'draft' option to InsetExternal.
452 2003-12-10 Angus Leeming <leeming@lyx.org>
454 * format incremented to 227.
455 * Change the output of InsetBox:
456 \begin_inset Boxed -> \begin_inset Box Boxed
457 \begin_inset Doublebox -> \begin_inset Box Doublebox
458 \begin_inset Frameless -> \begin_inset Box Frameless
459 \begin_inset ovalbox -> \begin_inset Box ovalbox
460 \begin_inset Ovalbox -> \begin_inset Box Ovalbox
461 \begin_inset Shadowbox -> \begin_inset Box Shadowbox
463 2003-12-10 Angus Leeming <leeming@lyx.org>
465 * format incremented to 226.
466 * Change the output of InsetNote:
467 \begin_inset Note -> \begin_inset Note Note
468 \begin_inset Comment -> \begin_inset Note Comment
469 \begin_inset Greyedout -> \begin_inset Note Greyedout
471 2003-11-28 André Pönitz
473 * Remove space_above/space_below from Paragraph.
474 This is now handled by InsetVSpace.
476 2003-10-07 Angus Leeming <leeming@lyx.org>
478 * Add transformations to InsetExternal
480 boundingBox 0 0 20 20 the dimensions of the B.B..
481 Output if the B.B. is not empty.
482 clip clip the image to the B.B.
484 extra LaTeX "draft" 'extra' data passed to the primary
485 command for this output format.
486 (Possible formats LaTeX, PDFLaTeX,
487 LinuxDoc, DocBook, Ascii.)
488 The string can contain spaces and so
490 rotateAngle 30 Rotation of the data.
491 Output for non-zero rotation only.
492 rotateOrigin bottomleft Rotation origin.
493 Output for non-zero rotation and
494 non-default origin (center) only.
496 width 2cm Output only if the image is resized.
500 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
502 * Added box inset. File format:
504 \begin_inset Ovalbox Boxed/Frameless/ovalbox/Ovalbox
509 inner_pos "b" t/c/b/s
511 width "100col%" unit+width-string
512 special "none" none/height/depth
514 height "1in" unit+width-string
515 height_special "totalheight" none/height/depth
517 collapsed false true/false
519 \begin_layout Standard
526 This box (Frameless, has_inner_box=1, use_parbox=0) replaces
527 the pre-existing Minipage inset. Parameters translate as follows:
528 position 0/1/2 -> t/c/b
529 inner_position 0/1/2/3 -> inner_pos c/t/b/s
534 2003-08-19 Michael Schmitt <michael.schmitt@teststep.org>
536 * attribute valignment="center" is replaced by valignment="middle"
537 for tabular columns and cells
539 2003-08-17 Martin Vermeer <martin.vermeer@hut.fi>
541 * Added branch inset. File format:
543 branch definition in the header:
549 \begin_inset Branch <branchname>
550 collapsed false true/false
552 \begin_layout Standard
559 2003-07-28 José Matos <jamatos@lyx.org>
561 * \the_end is replaced with \end_document
563 2003-07-28 José Matos <jamatos@lyx.org>
565 * \layout is replaced with \begin_layout
567 2003-07-28 José Matos <jamatos@fep.up.pt>
571 * All layouts finish now with \end_layout
573 2003-06-04 Angus Leeming <leeming@lyx.org>
577 * the storage of the external inset has been changed from
579 \begin_inset External XFig,"file.fig",""
585 \begin_inset External
588 display <display_type>
593 throwing away the final arg (here "", more generally "<string>") that holds
594 the parameters variable.
595 Variables are output if present (filename) or different from the default
596 values (display, lyxscale).
598 Moreover, the RasterImage template has been scrapped. All RasterImage
599 external insets are now converted to Graphics insets.
601 2003-05-20 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
603 * Added new space insets:
604 \SpecialChar ~ is now \InsetSpace ~
605 ERT: "\ " could be converted to InsetSpace \<space>
606 ERT: "\," could be converted to InsetSpace \,
608 2003-04-24 André Pönitz <poenitz@gmx.net>
610 * Added eqref support:
611 \begin_inset LatexCommand \eqref{label}
613 2003-03-14 Dekel Tsur
615 * Format bumped to 223.
617 2003-03-12 John Levon <levon@movementarian.org>
619 * Added \\end_header to signify the end of the header in a
622 * use_amsmath is now a tristate {0 = never, 1 = auto, 2 = always}
624 2003-02-10 John Levon <levon@movementarian.org>
628 Added \\tracking_changes 0|1 to the header.
630 Added \\author to the header. This can be present multiple
631 times, and is of the form :
633 \\author "Real Name" email@address.com
635 Added \\change_deleted, \\change_inserted. Each of these does not
636 span a paragraph, and is delimited by "\\change_unchanged\n". Both are
639 \\change_inserted author time
641 where author is an integer ID reference into the author list in
642 the header, and time is time_t.
644 2002-10-24 Rob Lahaye <lahaye@snu.ac.kr>
646 * InsetGraphicsParams.h (scale): is now a float, not an unsigned int.
648 2002-08-22 Rob Lahaye <lahaye@snu.ac.kr>
650 New graphics dialog. With the removal of buttons in the dialog, also
651 keywords in the graphics inset went. The following keywords do not
661 Only non-default values are saved to the lyx files. The defaults of the remaining
671 BoundingBox <from file>
674 rotateOrigin centerBaseline
676 subcaptionText <empty>
679 The remaining keywords have sufficient overlap with the old ones for a
680 smooth reading of the 1.2.x inset keywords in most common cases.
682 Compatibility is certainly broken for the old lyxwidth/lyxheight keywords.
683 They don't exist anymore and we can't translate them into a scaling value, while
684 we're reading the graphics inset. The old lyxwidth/lyxheight keyword and its
685 argument is ignored and lost.
687 Only few compatibility issues are left for lyx2lyx:
689 ------------------------------------------------------------------------------
690 old-token new-token remove
691 ------------------------------------------------------------------------------
692 size_kind original / size_type 0 scale 100 width <val>
696 size_kind width_height / size_type 1 - scale <val>
698 lyxsize_kind original / lyxsize_type 0 lyxscale 100 lyxscale <val>
699 ------------------------------------------------------------------------------
700 [replace old-token by new-token, and remove any of subsequent tokens as listed]
702 If "rotate" is absent, lyx2lyx should ignore "rotateAngle <val>":
703 if ( "rotateAngle <val>" is there WITHOUT being preceded by the keyword "rotate" )
705 replace "rotateAngle <val>" by "rotateAngle 0"
708 2002-08-12 Andre' Poenitz <poenitz@gmx.de>
710 Added \lyxlock for locked math inset when written to .lyx file.
711 When "downgrading" .lyx files this should simple be deleted but it
712 does not hurt at all if it stays in. It does not have to be added
716 2002-08-02 Angus Leeming <leeming@lyx.org>
718 Added a boolean "preview" flag to InsetCommandParams.
719 Currently it is written only by InsetInclude, because only this
720 class can generate a preview of its contents.
722 The LyX file now contains:
724 \begin_inset Include \input{snapshot_t=40.tex}
729 Earlier versions of LyX just swallow this extra token silently.
731 2002-08-12 Angus Leeming <leeming@lyx.org>
733 The 1.2.0 InsetGraphicsParams "size_type" and "lyxsize_type" have been
734 renamed as "size_kind" and "lyxsize_kind" respectively.
736 \begin_inset Graphics FormatVersion 1
743 - lyxsize_kind original
744 + lyxsize_type original