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