1 LyX file-format changes
2 -----------------------
4 2007-05-04 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
6 * format incremented to 275: add graphics params scaleBeforeRotation
9 2007-06-13 Dov Feldstern <dov@lyx.org>
10 * format incremented to 274: applying the conversion done in format 259
11 to the \lang property, which was forgotten back then... This is
12 slightly more complicated, because the default language has to be
13 determined on a per-paragraph basis.
15 2007-06-13 Bo Peng <ben.bob@gmail.com>
16 * format incremented to 273: add --Separator-- environment to
17 separate consecutive environments
19 2007-06-13 Bo Peng <bpeng@lyx.org>
20 * format incremented to 272: convert listings to ERT because
21 earlier versions of lyx can not handle unrecognizable
24 2007-05-15 José Matos <jamatos@lyx.org>
25 * format incremented to 271: extended textclasses accept the
26 normal font sizes: 10, 11 and 12pt.
28 2007-05-14 Martin Vermeer <martin.vermeer@tkk.fi>
29 * format incremented to 270: support beamer \alert, \structure
31 2007-05-08 Bo Peng <ben.bob@gmail.com>
32 * format incremented to 269: add listings support
33 - add preamble flag \listings_params, e.g. \listings_params "language=Python,float"
34 - add inset listings, with options lstparams and inline, e.g.
36 lstparams "xleftmargin=50pt,language=Python"
38 - add \lstinputlisting Include type. e.g.
39 \begin_inset Include \lstinputlisting{newfile1.lyx}[firstline=10,lastline=15]
41 2007-05-06 Uwe Stöhr <uwestoehr@web.de>
43 * format incremented to 268: add support for the CJK encodings
44 - all encodings supported by CJK.sty are now in lib/encodings
45 - lib/encoding has got two new flags:
47 "inputenc" for those languages that use the inputenc-package and
48 "CJK" for the CJK encodings
49 - "fixed"/"variable" to divide between multi- or single-byte encoding
50 - lib/languages allows now to set an empty language for babel
51 in this case babel isn't called.
53 2007-05-04 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
55 * format incremented to 267: add plain utf8 encoding (for XeTeX).
57 2007-04-29 Uwe Stöhr <uwestoehr@web.de>
59 * format incremented to 266:
60 Support for the Armenian language
62 2007-04-26 Uwe Stöhr <uwestoehr@web.de>
64 * format incremented to 265: fix LyX's table border line handling
65 With the fix (see bug 1746) LyX now takes care if the user has entered
66 a "|" character in the argument field of tables. Therefore the "|"
67 character has to be removed when also a table border is set.
69 2007-04-24 José Matos <jamatos@lyx.org>
71 * format incremented to 264:
72 textclass cv is renamed simplecv
74 2007-02-22 José Matos <jamatos@lyx.org>
76 * format incremented to 263: changes in the language names (overdue):
78 portuges -> portuguese
80 2007-02-16 Georg Baum <Georg.Baum@post.rwth-aachen.de>
82 * format incremented to 262: Allow ascii \inputencoding
84 2007-02-14 Georg Baum <Georg.Baum@post.rwth-aachen.de>
86 * format incremented to 261: \output_changes is now considered
87 even if \tracking_changes is false. This allows to output existing
88 changes even if future changes are not tracked anymore.
91 \tracking_changes false
94 is therefore converted to
96 \tracking_changes false
99 on upgrade. Nothing is done on downgrade since the new behaviour is
100 not supported in older formats.
102 2007-02-13 Georg Baum <Georg.Baum@post.rwth-aachen.de>
104 * format incremented to 260: Allow utf8x \inputencoding
106 2007-02-12 Georg Baum <Georg.Baum@post.rwth-aachen.de>
108 * format incremented to 259:
109 Old: Spaces at start or end of font changes were output outside of
110 the font change, i.e. not 'xx\textbf{ yy }zz', but
112 New: Spaces are always output with the font set by the user.
114 2007-01-31 Uwe Stöhr <uwestoehr@web.de>
116 * format incremented to 258: new \lyxline definition
118 \\newcommand{\\lyxline}[1]{
119 {#1 \\vspace{1ex} \\hrule width \\columnwidth \\vspace{1ex}}
122 \\newcommand{\\lyxline}[1][1pt]{%
124 \\rule[.5ex]{\\linewidth}{#1}\\par}
125 The new definition is more robust, see bug 1988 and now really takes care about
126 the fontsize: \lyxline{\Huge} produces now a thicker line then \lyxline{\normalfont}
128 2007-01-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
130 * format incremented to 257: Caption styles have been replaced by
131 InsetCaption. This is at the same time also a layout file format
132 change to format 3. layout2layout removes caption layouts from old
134 Note that InsetCaption did exist before this format, but was never
135 used. Old files containing do nevertheless still work.
136 Of course users can still define a Caption style in layout files,
137 but the special treatment in LyX is gone (apart from the sensitive
140 2006-12-22 Georg Baum <Georg.Baum@post.rwth-aachen.de>
142 * format incremented to 256: allow some new inputenc settings.
143 For the complete list, see lib/lyx2lyx/lyx_1_5.py.
145 2006-11-25 Georg Baum <Georg.Baum@post.rwth-aachen.de>
147 * format incremented to 255: new insets for \clearpage and
148 \cleardoublepage. They are written inline to the file, exactly like
151 2006-11-13 Georg Baum <Georg.Baum@post.rwth-aachen.de>
153 * format incremented to 254: new header parameter \use_esint.
154 It can have the same values as \use_amsmath: 0 (off), 1 (auto) and
157 2006-10-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
159 * format incremented to 253: new nomenclature and printnomenclature
160 insets. These are standard InsetCommand with the following parameters:
161 \nomenclature[prefix]{symbol}{description}
162 \printnomenclature[labelwidth]
164 2006-10-15 Georg Baum <Georg.Baum@post.rwth-aachen.de>
166 * format incremented to 252: changed command inset syntax
170 \begin_inset LatexCommand \cmdname[opt1][opt2]{arg}
181 \begin_inset LatexCommand cmdname
188 The order of the parameters and for each parameter the name and
189 optional/required bit is now stored in InsetCommandParams.
191 2006-10-03 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
193 * format incremented to 251: save show_label param for charstyles.
195 On revert, the show_label param is just removed. Nothing to convert.
197 2006-10-12 Martin Vermeer <martin.vermeer@hut.fi>
199 * Format incremented to 250: allow optional arg to environments
201 No material format change. Now optargs for environments are allowed
202 to be specified in layout files and will be handled properly. When
203 converted back to older formats, they will be ignored in LaTeX
206 2006-08-14 Georg Baum <Georg.Baum@post.rwth-aachen.de>
208 * format incremented to 249: Unicode
210 LyX documents are now always encoded in utf8. The value of
211 \inputencoding does now only determine the encoding of the created
213 Up to format 248 the value of \inputencoding did also determine the
214 encoding of the LyX file:
216 \inputencoding LyX file encoding
217 auto as determined by the document and character
220 everything else as determined by \inputencoding
222 The difference between auto and default is only the LaTeX output:
223 auto causes loading of the inputenc package, default does not.
225 2006-07-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
227 * format incremented to 248: Basic booktabs support
229 The <features> tag has a new switch: booktabs="true|false".
230 An absent switch is equivalent to booktabs="false".
231 Horizontal lines are set with the booktabs package if this switch
234 The <row> tag of tabulars has the following new attributes:
235 topspace, bottomspace and interlinespace. All take a LyXLength
236 as value, or the special keyword "default".
238 2006-06-10 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
240 * format incremented to 247. The Grand Font Interface Rewrite.
241 (1) Split font selection to rm, sf, tt:
242 \fontscheme -> \font_roman, \font_sans, \font_typewriter
244 \fontscheme \font_roman \font_sans \font_typewriter
245 default default default default
246 ae ae default default
247 times times default default
248 palatino palatino default default
249 helvet default helvet default
250 avant default avant default
251 newcent newcent default default
252 bookman bookman default default
253 pslatex times (or \usepackage{pslatex})
255 \font_roman: cmr (-> \renewcommand{\rmdefault}{cmr}),
256 lmodern, charter, utopia, ccfonts, chancery, beraserif
257 (-> \usepackage{<name>})
258 \font_sans: cmss, lmss, cmbr
259 (-> \renewcommand{\sfdefault}{<name>})
260 berasans (-> \usepackage{<name>})
261 \font_typewriter: cmtt, lmtt, cmtl,
262 (-> \renewcommand{\sfdefault}{<name>})
263 courier, luximono, beramono
264 (-> \usepackage{<name>})
265 (2) New param \font_default_family (rmdefault, sfdefault, ttdefault)
266 (3) New param \font_sc (true, false).
267 (4) New param \font_osf (true, false).
268 (5) New param \font_sf_scale (float)
269 (6) New param \font_tt_scale (float)
270 Support for the following fonts has been added:
271 bera, ccfonts, chancery, charter, cmbright, computer modern (explicitely),
272 courier, lmodern, luximono, utopia.
273 Support for the following font has been removed:
274 pslatex (it's superseded by mathptmx (times)).
276 2006-06-03 Martin Vermeer <martin.vermeer@hut.fi>
278 * format incremented to 246. The framed.sty package is
279 now supported with note types framed and shaded.
281 2005-10-12 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
283 * format incremented to 245. The \quotes_times parameter
286 2005-09-24 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
288 * format incremented to 244. Rename '\InsetSpace \,'
289 to '\InsetSpace \thinspace{}', because the comma was
290 not parsed by lyxlex, and '\InsetSpace \space' to
291 '\InsetSpace \space{}' in favour of consistency.
293 2005-07-18 José Matos <jamatos@lyx.org>
295 * format incremented to 243.
297 * this change only affects the preamble, the paperpackage
298 option was removed and papersize is changed to default.
300 2005-06-21 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
302 * format incremented to 242. There is no file format per
303 se, but the "frenchb" language has been removed from lib/language
304 and has to be translated to "french" by lyx2lyx.
306 2005-02-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
308 * format incremented to 241.
310 All following changes apply only to text in ERT insets. The
311 rationale is that text in ERT is simply ASCII text, and nothing more.
313 * paragraph breaks are now a single newline in latex and not a
314 paragraph break anymore (bug 698).
315 * \newline is not allowed anymore, because it is redundant (see above)
316 * layouts other than Standard, paragraph parameters and font changes
317 are not allowed anymore. They never made sense and were ignored for
318 latex output, but now they can't be read or set anymore (bug 922).
321 2005-01-23 Jürgen Spitzmüller <j.spitzmüller@gmx.de>
323 * format incremented to 240.
325 \output_changes {true|false}
326 (should the change tracking marks be visible in the output or not?)
327 * lyx2lyx should just delete the param in 239.
329 2005-01-06 José Matos <jamatos@lyx.org>
331 * format incremented to 239.
332 * the paragraph parameters are displayed in their own line. This
333 change is consistent with the insets behaviour, and corresponds
334 to a more uniform treatment of the paragraphs since some of them
335 had already their own line.
337 An example of a single paragraph follows:
339 \begin_layout Standard
340 \paragraph_spacing single
346 2004-12-03 José Matos <jamatos@lyx.org>
348 * format incremented to 238.
349 * The compatibility code to read old latex accents from 0.12.x in
350 InsetLatexAccent::checkContents has been removed.
351 The following translations are done:
353 "\i \xy" -> "\i \x{y}"
354 "\i \x y" -> "\i \x{y}"
355 "\i \x\i" -> "\i \x{\i}"
356 "\i \x\j" -> "\i \x{\j}"
357 x is a latex accent command, y the base character. \, i and j are
359 lyx did these changes already from 0.12.x -> 215, but not lyx2lyx,
360 so formats 215 - 237 can have both versions.
363 2004-10-10 José Matos <jamatos@lyx.org>
365 * format incremented to 237.
366 * In the header, the following statments use now booleans values,
372 2004-08-15 José Matos <jamatos@lyx.org>
374 * format incremented to 236.
381 * The options for \papersize are changed:
384 * All whitespaces are removed at the end of lines, when
385 not necessary. As an example we have all the lines in the header that
386 do not belong to the preamble.
388 2004-07-01 Georg Baum <Georg.Baum@post.rwth-aachen.de>
390 * format incremented to 235.
391 * \paperpackage had an off-by-one error. Translation table:
393 234: a4 a4wide widemarginsa4
394 235: none a4 a4wide widemarginsa4
396 The "widemarginsa4" setting of 235 has no equivalent in 234.
398 2004-05-12 Angus Leeming <leeming@lyx.org>
400 * format incremented to 234.
401 * the citation engine is specified explicitly rather than being
402 deduced from 3 bools.
405 \use_numerical_citations 0 -> \cite_engine <style>
408 where <style> is one of "basic", "natbib_authoryear",
409 "natbib_numerical" or "jurabib".
411 2004-04-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
413 * format incremented to 233.
414 * insetgraphics does not allow filenames without extension anymore.
415 The complete filename has to be given.
417 2004-03-29 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
419 * format incremented to 232.
421 * Support for bibtopic (sectioned bibliographies).
422 - bufferparam \use_bibtopic [1|0]
423 - the bibtex inset has a second argument for bibtopic's
424 btPrint{Cited|NotCited|All} command:
426 \begin_inset LatexCommand \bibtex[<style>]{<database>}
428 \begin_inset LatexCommand \bibtex[<style>][<btPrintX>]{<database>}
429 Forwards, there's nothing to be done. Backwards, \usepackage[dot]{bibtopic}
430 has to be inserted to the preamble. Instead of the bibtex inset, the LaTeX
431 \bibliographystyle{<style>}
432 \begin{btSect}{<database>}
437 2004-03-29 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
439 * format incremented to 231.
441 * Support for sidewaysfigure/sidewaystable (rotating package).
442 insetfloat has now a param \sideways [true|false] (default is false).
443 The param should be erased on downwards conversion, if it was true,
444 the inset should be replaced by
445 \begin{sidewaysfigure} <content> \end{sidewaysfigure}
447 \begin{sidewaystable} <content> \end{sidewaystable}
450 2004-02-23 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
452 * format incremented to 230.
454 * Support for a second optional argument in insetcommand.
455 currently, citation uses this to support natbibs second
456 optional argument \cite[before][after]{key}.
457 I think there's nothing to convert upwards. Downwards, the
458 commands with 2 optional args need to be converted to ERT.
460 * Support for jurabib (param \use_jurabib [1|0], default is 0).
461 When converting downwards, \usepackage{jurabib} has to be added
462 to the preamble and, if babel is used, \usepackage{babel} before
463 (jurabib fails if babel is called afterwards). If the natbib commands
464 are used together with jurabib, they have to be converted to ERT too.
466 2003-12-29 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
468 * format incremented to 229.
469 * Minipages cannot be read anymore. All minipage insets will
470 be converted to frameless box insets between 228->229.
472 2003-12-15 Angus Leeming <leeming@lyx.org>
474 * format incremented to 228.
475 * Change the output of all insets derived from InsetCollapsable
476 except for InsetERT (which has a similar output already), changing lines
477 "collapsed true" -> "status collapsed"
478 "collapsed false" -> "status open".
479 * Change the output of InsetERT, changing lines
480 "status Collapsed" -> "status collapsed"
481 "status Open" -> "status open".
482 "status Inlined" -> "status inlined".
484 2003-12-10 Angus Leeming <leeming@lyx.org>
486 * format NOT incremented.
487 * add a 'draft' option to InsetExternal.
489 2003-12-10 Angus Leeming <leeming@lyx.org>
491 * format incremented to 227.
492 * Change the output of InsetBox:
493 \begin_inset Boxed -> \begin_inset Box Boxed
494 \begin_inset Doublebox -> \begin_inset Box Doublebox
495 \begin_inset Frameless -> \begin_inset Box Frameless
496 \begin_inset ovalbox -> \begin_inset Box ovalbox
497 \begin_inset Ovalbox -> \begin_inset Box Ovalbox
498 \begin_inset Shadowbox -> \begin_inset Box Shadowbox
500 2003-12-10 Angus Leeming <leeming@lyx.org>
502 * format incremented to 226.
503 * Change the output of InsetNote:
504 \begin_inset Note -> \begin_inset Note Note
505 \begin_inset Comment -> \begin_inset Note Comment
506 \begin_inset Greyedout -> \begin_inset Note Greyedout
508 2003-11-28 André Pönitz
510 * Remove space_above/space_below from Paragraph.
511 This is now handled by InsetVSpace.
513 2003-10-07 Angus Leeming <leeming@lyx.org>
515 * Add transformations to InsetExternal
517 boundingBox 0 0 20 20 the dimensions of the B.B..
518 Output if the B.B. is not empty.
519 clip clip the image to the B.B.
521 extra LaTeX "draft" 'extra' data passed to the primary
522 command for this output format.
523 (Possible formats LaTeX, PDFLaTeX,
524 LinuxDoc, DocBook, Ascii.)
525 The string can contain spaces and so
527 rotateAngle 30 Rotation of the data.
528 Output for non-zero rotation only.
529 rotateOrigin bottomleft Rotation origin.
530 Output for non-zero rotation and
531 non-default origin (center) only.
533 width 2cm Output only if the image is resized.
537 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
539 * Added box inset. File format:
541 \begin_inset Ovalbox Boxed/Frameless/ovalbox/Ovalbox
546 inner_pos "b" t/c/b/s
548 width "100col%" unit+width-string
549 special "none" none/height/depth
551 height "1in" unit+width-string
552 height_special "totalheight" none/height/depth
554 collapsed false true/false
556 \begin_layout Standard
563 This box (Frameless, has_inner_box=1, use_parbox=0) replaces
564 the pre-existing Minipage inset. Parameters translate as follows:
565 position 0/1/2 -> t/c/b
566 inner_position 0/1/2/3 -> inner_pos c/t/b/s
571 2003-08-19 Michael Schmitt <michael.schmitt@teststep.org>
573 * attribute valignment="center" is replaced by valignment="middle"
574 for tabular columns and cells
576 2003-08-17 Martin Vermeer <martin.vermeer@hut.fi>
578 * Added branch inset. File format:
580 branch definition in the header:
586 \begin_inset Branch <branchname>
587 collapsed false true/false
589 \begin_layout Standard
596 2003-07-28 José Matos <jamatos@lyx.org>
598 * \the_end is replaced with \end_document
600 2003-07-28 José Matos <jamatos@lyx.org>
602 * \layout is replaced with \begin_layout
604 2003-07-28 José Matos <jamatos@fep.up.pt>
608 * All layouts finish now with \end_layout
610 2003-06-04 Angus Leeming <leeming@lyx.org>
614 * the storage of the external inset has been changed from
616 \begin_inset External XFig,"file.fig",""
622 \begin_inset External
625 display <display_type>
630 throwing away the final arg (here "", more generally "<string>") that holds
631 the parameters variable.
632 Variables are output if present (filename) or different from the default
633 values (display, lyxscale).
635 Moreover, the RasterImage template has been scrapped. All RasterImage
636 external insets are now converted to Graphics insets.
638 2003-05-20 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
640 * Added new space insets:
641 \SpecialChar ~ is now \InsetSpace ~
642 ERT: "\ " could be converted to InsetSpace \<space>
643 ERT: "\," could be converted to InsetSpace \,
645 2003-04-24 André Pönitz <poenitz@gmx.net>
647 * Added eqref support:
648 \begin_inset LatexCommand \eqref{label}
650 2003-03-14 Dekel Tsur
652 * Format bumped to 223.
654 2003-03-12 John Levon <levon@movementarian.org>
656 * Added \\end_header to signify the end of the header in a
659 * use_amsmath is now a tristate {0 = never, 1 = auto, 2 = always}
661 2003-02-10 John Levon <levon@movementarian.org>
665 Added \\tracking_changes 0|1 to the header.
667 Added \\author to the header. This can be present multiple
668 times, and is of the form :
670 \\author "Real Name" email@address.com
672 Added \\change_deleted, \\change_inserted. Each of these does not
673 span a paragraph, and is delimited by "\\change_unchanged\n". Both are
676 \\change_inserted author time
678 where author is an integer ID reference into the author list in
679 the header, and time is time_t.
681 2002-10-24 Rob Lahaye <lahaye@snu.ac.kr>
683 * InsetGraphicsParams.h (scale): is now a float, not an unsigned int.
685 2002-08-22 Rob Lahaye <lahaye@snu.ac.kr>
687 New graphics dialog. With the removal of buttons in the dialog, also
688 keywords in the graphics inset went. The following keywords do not
698 Only non-default values are saved to the lyx files. The defaults of the remaining
708 BoundingBox <from file>
711 rotateOrigin centerBaseline
713 subcaptionText <empty>
716 The remaining keywords have sufficient overlap with the old ones for a
717 smooth reading of the 1.2.x inset keywords in most common cases.
719 Compatibility is certainly broken for the old lyxwidth/lyxheight keywords.
720 They don't exist anymore and we can't translate them into a scaling value, while
721 we're reading the graphics inset. The old lyxwidth/lyxheight keyword and its
722 argument is ignored and lost.
724 Only few compatibility issues are left for lyx2lyx:
726 ------------------------------------------------------------------------------
727 old-token new-token remove
728 ------------------------------------------------------------------------------
729 size_kind original / size_type 0 scale 100 width <val>
733 size_kind width_height / size_type 1 - scale <val>
735 lyxsize_kind original / lyxsize_type 0 lyxscale 100 lyxscale <val>
736 ------------------------------------------------------------------------------
737 [replace old-token by new-token, and remove any of subsequent tokens as listed]
739 If "rotate" is absent, lyx2lyx should ignore "rotateAngle <val>":
740 if ( "rotateAngle <val>" is there WITHOUT being preceded by the keyword "rotate" )
742 replace "rotateAngle <val>" by "rotateAngle 0"
745 2002-08-12 Andre' Poenitz <poenitz@gmx.de>
747 Added \lyxlock for locked math inset when written to .lyx file.
748 When "downgrading" .lyx files this should simple be deleted but it
749 does not hurt at all if it stays in. It does not have to be added
753 2002-08-02 Angus Leeming <leeming@lyx.org>
755 Added a boolean "preview" flag to InsetCommandParams.
756 Currently it is written only by InsetInclude, because only this
757 class can generate a preview of its contents.
759 The LyX file now contains:
761 \begin_inset Include \input{snapshot_t=40.tex}
766 Earlier versions of LyX just swallow this extra token silently.
768 2002-08-12 Angus Leeming <leeming@lyx.org>
770 The 1.2.0 InsetGraphicsParams "size_type" and "lyxsize_type" have been
771 renamed as "size_kind" and "lyxsize_kind" respectively.
773 \begin_inset Graphics FormatVersion 1
780 - lyxsize_kind original
781 + lyxsize_type original