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