This commit was manufactured by cvs2svn to create tag
[lyx.git] / lib / examples / docbook_example.lyx
blobf3adc607d3d508077a6cb9347e5d6a529790e7f9
1 #This file was created by <jamatos> Wed Sep 29 16:07:48 1999
2 #LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team
3 \lyxformat 2.15
4 \textclass docbook
5 \language default
6 \inputencoding default
7 \fontscheme default
8 \graphics default
9 \paperfontsize default
10 \spacing single 
11 \papersize Default
12 \paperpackage a4
13 \use_geometry 0
14 \use_amsmath 0
15 \paperorientation portrait
16 \secnumdepth 3
17 \tocdepth 3
18 \paragraph_separation indent
19 \defskip medskip
20 \quotes_language english
21 \quotes_times 2
22 \papercolumns 1
23 \papersides 1
24 \paperpagestyle default
26 \layout SGML
29 \begin_inset Info Here goes the information about the article:
30   * title
31   * date
32   * author
33     + first name
34     + last name
35  * abstract
36 \end_inset 
39 \layout Title
40 \added_space_top vfill \added_space_bottom vfill 
41 Docbook with LyX
42 \layout Date
44 24 September 1999
45 \layout Author
47 \begin_deeper 
48 \layout SGML
49 \align center 
51 \size normal 
53 \begin_inset Info The author name is always composed of:
54   * first name
55   * surname
57 It is always possible to have more than one author.
58 \end_inset 
61 \layout FirstName
64 \latex no_latex 
65 Jos
66 \latex default 
68 \layout Surname
71 \latex no_latex 
72 Matos
73 \end_deeper 
74 \layout Abstract
76 This is a small illustration of lyx's features using DocBook.
77 \layout Abstract
79 The abstract can span several paragraphs.
80 \layout Section
83 \begin_inset LatexCommand \label{first-section}
85 \end_inset 
87 Introduction
88 \layout Standard
90 This file ilustrates the generation of docbook documents with LyX.
91 \layout Standard
93 This will improve as soon as new features are available.
94 \layout Section
96 Standard layouts
97 \layout Standard
99 One of the goals is the support, as much as possible, of layouts used in
100  other textclass, for compatibility purposes.
101 \layout Standard
103 Remember that this is work in progress, I would like to hear any comments,
104  good or 
105 \begin_inset Quotes eld
106 \end_inset 
109 \begin_inset Quotes erd
110 \end_inset 
113 \layout Subsection
115 Lists
116 \layout Standard
118 This is an example with several nested lists.
119 \layout Itemize
121 item 1
122 \begin_deeper 
123 \layout Enumerate
125 item 2
126 \layout Description
128 new item
129 \begin_deeper 
130 \layout Enumerate
132 collection
133 \end_deeper 
134 \end_deeper 
135 \layout Itemize
137 new set
138 \layout Subsection
140 Code
141 \layout Standard
143 Required steps to have a running lyx.
144 \layout Quotation
146 Be carefull with your own code.
147 \layout Quotation
149 The debugger.
150 \layout Code
152 cat > env.out
153 \layout Code
155 tar xvzf lyx.tgz
156 \layout Code
158 cd lyx-1_0_x
159 \layout Code
161 ./configure
162 \layout Code
164 make
165 \layout Code
167 make install
168 \layout Subsection
170 Labels
171 \layout Standard
173 If a label is the first element in any layout, that label will be merged
174  with that element.
175  See as an example 
176 \begin_inset LatexCommand \ref[first-section]{first-section}
178 \end_inset 
181 \layout Subsection
183 Fonts
184 \layout Standard
186 The only fonts supported are 
187 \emph on 
188 Emphasis
189 \emph default 
190  and 
191 \latex latex 
192 <literal>SGML</literal>
193 \latex default 
195 \layout Subsection
197 Figures
198 \layout Standard
200 One of the major changes in the docbook when compared with the linuxdoc
201  support are the figures support.
202  LyX only allows to view eps figures.
203  So you should have one of these if you want to take advantage of this feature.
204 \layout Standard
206 Notice that when the docbook code is exported the filename extension is
207  stripped.
208  This enables that when the several backends are processed in sgmltools,
209  the corresponding extensions are added.
210  The default extension are eps for the print and gif for the html backend.
211 \layout Standard
213 \begin_float fig 
214 \layout Standard
217 \begin_inset Figure size 56 85
218 file ../doc/platypus.eps
219 width 1 2
220 height 1 3
221 angle 45
222 flags 2
224 \end_inset 
227 \layout Caption
229 Nice platypus
230 \end_float 
232 \layout Standard
234 Wide figures are treated as normal figures.
235 \layout Standard
237 \begin_float wide-fig 
238 \layout Standard
241 \begin_inset Figure size 56 85
242 file ../doc/platypus.eps
243 width 1 2
244 height 1 3
245 angle 45
246 flags 2
248 \end_inset 
251 \layout Caption
253 long, very long...
254  :-)
255 \end_float 
256 \layout Subsection
258 Tables
259 \layout Standard
261 There is also basic support for tables.
262 \begin_float tab 
263 \layout Standard
264 \added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable
265 multicol5
266 3 5 0 0 -1 -1 -1 -1
267 1 0 0 0
268 1 0 0 0
269 1 1 0 0
270 8 1 0 "" ""
271 8 1 0 "" ""
272 8 1 0 "" ""
273 8 1 0 "" ""
274 8 1 1 "" ""
275 0 8 1 0 0 0 0 "" ""
276 0 8 1 0 0 0 0 "" ""
277 0 8 1 0 0 0 0 "" ""
278 0 8 1 0 0 0 0 "" ""
279 0 8 1 0 0 0 0 "" ""
280 0 8 1 0 0 0 0 "" ""
281 1 8 1 0 0 0 0 "" ""
282 0 8 1 0 0 0 0 "" ""
283 1 8 1 0 0 0 0 "" ""
284 2 8 1 0 0 0 0 "" ""
285 0 8 1 0 0 0 0 "" ""
286 1 8 0 1 0 0 0 "" ""
287 0 8 1 0 0 0 0 "" ""
288 0 8 1 0 0 0 0 "" ""
289 0 8 1 0 0 0 0 "" ""
292 \newline 
293 Software 1
294 \newline 
295 Software 2
296 \newline 
297 Software 3
298 \newline 
299 Software 4
300 \newline 
301 Plataform 1
302 \newline 
303 25 MB
304 \newline 
305 10 MB
306 \newline 
307 34 MB
308 \newline 
309 Plataform 2
310 \newline 
312 \newline 
313 12 MB
314 \newline 
315 30 MB
316 \newline 
317 35 MB
318 \layout Caption
320 Nice Formal Table
321 \end_float 
323 \layout Standard
325 As it happens with the figures the wide tables are treated as normal tables.
326 \layout Subsection
328 Margins
329 \layout Standard
331 There are some restrictions when using margins.
332  For further information on docbook allowed syntax consult the 
333 \begin_inset LatexCommand \url[docbook reference manual]{http://www.oasis-open.org/docbook/documentation/reference/}
335 \end_inset 
338 \layout Quotation
340 It is also possible to insert margin notes inside some environments.
341 \begin_deeper 
342 \layout SGML
344 \begin_float margin 
345 \end_deeper 
346 \layout Standard
348 margin note
349 \layout Standard
351 second par -> margin note
352 \layout Standard
354 third par -> margin note
355 \end_float 
357 \layout Quotation
359 Notice that the previous layout is at level 1 
360 \begin_float footnote 
361 \layout Standard
363 This comes from a docbook restriction.
364  Sidebar can only appear inside "MSGTEXT", "CAUTION", "IMPORTANT", "NOTE",
365  "TIP", "WARNING", "BLOCKQUOTE".
366 \layout Standard
368 These environments are easily added to the docbook layout.
369 \end_float 
370  and so is the follow:
371 \begin_deeper 
372 \layout SGML
374 \begin_float margin 
375 \end_deeper 
376 \layout Standard
378 too marginal ;-)
379 \end_float 
381 \layout Section
383 The road map
384 \layout Standard
386 This is a small list of the remaining tasks:
387 \layout Itemize
389 Expand the number of layouts
390 \begin_deeper 
391 \layout Itemize
393 example
394 \layout Itemize
396 note
397 \layout Itemize
399 warning
400 \layout Itemize
403 \layout Itemize
405 caution
406 \layout Itemize
408 important
409 \end_deeper 
410 \layout Itemize
412 Compose other layout files, besides article
413 \begin_deeper 
414 \layout Enumerate
416 book
417 \layout Enumerate
419 set (very unlikely)
420 \begin_float footnote 
421 \end_deeper 
422 \layout Standard
424 I do not expect lyx to deal with colection of books, for now!
425 \end_float 
426 \begin_deeper 
427 \layout Enumerate
429 refentry
430 \end_deeper 
431 \layout Itemize
433 goodies
434 \begin_deeper 
435 \layout Enumerate
437 including other lyx files
438 \layout Enumerate
440 more advanced tables support
441 \end_deeper 
442 \layout Itemize
444 better documentation
445 \layout Standard
447 That's all.
448  ;-)
449 \the_end