]> git.lyx.org Git - lyx.git/blob - development/FORMAT
f50a4146c291acdcd5dcc84c62a98690a87346cc
[lyx.git] / development / FORMAT
1 LyX file-format changes
2 -----------------------
3
4 2003-12-29  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
5
6         * format incremented to 229.
7         * Minipages cannot be read anymore. All minipage insets will
8         be converted to frameless box insets between 228->229.
9
10 2003-12-15  Angus Leeming  <leeming@lyx.org>
11
12         * format incremented to 228.
13         * Change the output of all insets derived from InsetCollapsable
14         except for InsetERT (which has a similar output already), changing lines
15         "collapsed true" -> "status collapsed"
16         "collapsed false" -> "status open".
17         * Change the output of InsetERT, changing lines
18         "status Collapsed" -> "status collapsed"
19         "status Open" -> "status open".
20         "status Inlined" -> "status inlined".
21
22 2003-12-10  Angus Leeming  <leeming@lyx.org>
23
24         * format NOT incremented.
25         * add a 'draft' option to InsetExternal.
26
27 2003-12-10  Angus Leeming  <leeming@lyx.org>
28
29         * format incremented to 227.
30         * Change the output of InsetBox:
31         \begin_inset Boxed -> \begin_inset Box Boxed
32         \begin_inset Doublebox -> \begin_inset Box Doublebox
33         \begin_inset Frameless -> \begin_inset Box Frameless
34         \begin_inset ovalbox -> \begin_inset Box ovalbox
35         \begin_inset Ovalbox -> \begin_inset Box Ovalbox
36         \begin_inset Shadowbox -> \begin_inset Box Shadowbox
37
38 2003-12-10  Angus Leeming  <leeming@lyx.org>
39
40         * format incremented to 226.
41         * Change the output of InsetNote:
42         \begin_inset Note -> \begin_inset Note Note
43         \begin_inset Comment -> \begin_inset Note Comment
44         \begin_inset Greyedout -> \begin_inset Note Greyedout
45
46 2003-11-28  André Pönitz
47
48         * Remove space_above/space_below from Paragraph. 
49     This is now handled by InsetVSpace.
50
51 2003-10-07  Angus Leeming  <leeming@lyx.org>
52
53         * Add transformations to InsetExternal
54
55         boundingBox 0 0 20 20           the dimensions of the B.B..
56                                         Output if the B.B. is not empty.
57         clip                            clip the image to the B.B.
58                                         Output if true.
59         extra LaTeX "draft"             'extra' data passed to the primary
60                                         command for this output format.
61                                         (Possible formats LaTeX, PDFLaTeX,
62                                          LinuxDoc, DocBook, Ascii.)
63                                         The string can contain spaces and so
64                                         is wrapped in "...".
65         rotateAngle 30                  Rotation of the data.
66                                         Output for non-zero rotation only.
67         rotateOrigin bottomleft         Rotation origin.
68                                         Output for non-zero rotation and
69                                         non-default origin (center) only.
70         scale 50                        
71         width 2cm                       Output only if the image is resized.
72         height 2cm
73         keepAspectRatio
74         
75 2003-10-07  Martin Vermeer  <martin.vermeer@hut.fi>
76
77         * Added box inset. File format:
78
79         \begin_inset Ovalbox            Boxed/Frameless/ovalbox/Ovalbox
80                                             /Shadowbox/Doublebox
81         position "b"                    t/c/b
82         hor_pos "c"                     l/c/r/s
83         has_inner_box 1                 1/0
84         inner_pos "b"                   t/c/b/s
85         use_parbox 0                    1/0
86         width "100col%"                 unit+width-string
87         special "none"                  none/height/depth
88                                             /totalheight/width
89         height "1in"                    unit+width-string
90         height_special "totalheight"    none/height/depth
91                                             /totalheight/width
92         collapsed false                 true/false
93
94         \begin_layout Standard
95
96         <box contents>
97         \end_layout
98
99         \end_inset
100
101         This box (Frameless, has_inner_box=1, use_parbox=0) replaces 
102         the pre-existing Minipage inset. Parameters translate as follows:
103         position                        0/1/2   -> t/c/b
104         inner_position                  0/1/2/3 -> inner_pos c/t/b/s
105         height                          same
106         width                           same
107         collapsed                       same
108
109 2003-08-19  Michael Schmitt  <michael.schmitt@teststep.org>
110
111         * attribute valignment="center" is replaced by valignment="middle"
112         for tabular columns and cells
113
114 2003-07-28  José Matos  <jamatos@lyx.org>
115
116         * \the_end is replaced with \end_document
117
118 2003-07-28  José Matos  <jamatos@lyx.org>
119
120         * \layout is replaced with \begin_layout
121
122 2003-07-28  José Matos  <jamatos@fep.up.pt>
123
124         Format bumped to 225
125
126         * All layouts finish now with \end_layout
127
128 2003-06-04  Angus Leeming  <leeming@lyx.org>
129
130         Format bumped to 224
131
132         * the storage of the external inset has been changed from
133
134                 \begin_inset External XFig,"file.fig",""
135
136                 \end_inset
137
138         to this
139
140                 \begin_inset External
141                         template XFig
142                         filename file.fig
143                         display <display_type>
144                         lyxscale <scale>
145
146                 \end_inset 
147
148         throwing away the final arg (here "", more generally "<string>") that holds
149         the parameters variable.
150         Variables are output if present (filename) or different from the default
151         values (display, lyxscale).
152
153         Moreover, the RasterImage template has been scrapped. All RasterImage
154         external insets are now converted to Graphics insets.
155
156 2003-05-20  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
157
158         * Added new space insets:
159                 \SpecialChar ~ is now \InsetSpace ~
160                 ERT: "\ " could be converted to InsetSpace \<space>
161                 ERT: "\," could be converted to InsetSpace \,
162
163 2003-03-12  John Levon  <levon@movementarian.org>
164
165         * Added \\end_header to signify the end of the header in a
166           more robust fashion.
167
168         * use_amsmath is now a tristate {0 = never, 1 = auto, 2 = always}
169
170 2003-02-10  John Levon  <levon@movementarian.org>
171
172         Format bumped to 222
173
174         Added \\tracking_changes 0|1 to the header.
175
176         Added \\author to the header. This can be present multiple
177         times, and is of the form :
178
179         \\author "Real Name" email@address.com
180
181         Added \\change_deleted, \\change_inserted. Each of these does not
182         span a paragraph, and is delimited by "\\change_unchanged\n". Both are
183         of the form :
184
185         \\change_inserted author time
186
187         where author is an integer ID reference into the author list in
188         the header, and time is time_t.
189
190 2002-10-24  Rob Lahaye  <lahaye@snu.ac.kr>
191
192         * insetgraphicsParams.h (scale): is now a float, not an unsigned int.
193
194 2002-08-22  Rob Lahaye <lahaye@snu.ac.kr>
195
196 New graphics dialog. With the removal of buttons in the dialog, also
197 keywords in the graphics inset went. The following keywords do not
198 exist anymore:
199         lyxsize_kind
200         lyxsize_type
201         lyxwidth
202         lyxheight
203         size_kind
204         size_type
205         rotate
206
207 Only non-default values are saved to the lyx files. The defaults of the remaining
208 keywords are;
209         filename <empty>
210         lyxscale 100
211         display default
212         scale 100
213         width <empty>
214         height <empty>
215         draft <off>
216         noUnzip <off>
217         BoundingBox <from file>
218         clip <off>
219         rotateAngle 0
220         rotateOrigin centerBaseline
221         subcaption <off>
222         subcaptionText <empty>
223         special <empty>
224
225 The remaining keywords have sufficient overlap with the old ones for a
226 smooth reading of the 1.2.x inset keywords in most common cases.
227
228 Compatibility is certainly broken for the old lyxwidth/lyxheight keywords.
229 They don't exist anymore and we can't translate them into a scaling value, while
230 we're reading the graphics inset. The old lyxwidth/lyxheight keyword and its
231 argument is ignored and lost.
232
233 Only few compatibility issues are left for lyx2lyx:
234
235 ------------------------------------------------------------------------------
236 old-token                                   new-token         remove
237 ------------------------------------------------------------------------------
238 size_kind original / size_type 0            scale 100         width <val>
239                                                               height <val>
240                                                               scale <val>
241
242 size_kind width_height / size_type 1            -             scale <val>
243
244 lyxsize_kind original / lyxsize_type 0      lyxscale 100      lyxscale <val>
245 ------------------------------------------------------------------------------
246 [replace old-token by new-token, and remove any of subsequent tokens as listed]
247
248 If "rotate" is absent, lyx2lyx should ignore "rotateAngle <val>":
249    if ( "rotateAngle <val>" is there WITHOUT being preceded by the keyword "rotate" )
250    then
251         replace "rotateAngle <val>" by "rotateAngle 0"
252
253
254 2002-08-12  Andre' Poenitz <poenitz@gmx.de>
255
256 Added \lyxlock for locked math inset when written to .lyx file.
257 When "downgrading" .lyx files this should simple be deleted but it
258 does not hurt at all if it stays in. It does not have to be added
259 when "upgrading".
260
261
262 2002-08-02  Angus Leeming  <leeming@lyx.org>
263
264 Added a boolean "preview" flag to InsetCommandParams.
265 Currently it is written only by InsetInclude, because only this
266 class can generate a preview of its contents.
267
268 The LyX file now contains:
269
270  \begin_inset Include \input{snapshot_t=40.tex}
271 +preview true
272
273  \end_inset 
274
275 Earlier versions of LyX just swallow this extra token silently.
276
277 2002-08-12  Angus Leeming  <leeming@lyx.org>
278
279 The 1.2.0 InsetGraphicsParams "size_type" and "lyxsize_type" have been
280 renamed as "size_kind" and "lyxsize_kind" respectively.
281
282  \begin_inset Graphics FormatVersion 1
283         filename file.eps
284         display default
285 -       size_kind original
286 +       size_type original
287         width 7cm
288         rotateOrigin center
289 -       lyxsize_kind original
290 +       lyxsize_type original
291         lyxwidth 4cm
292
293  \end_inset 
294