1 #LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
10 \font_typewriter default
11 \font_default_family default
17 \paperfontsize default
24 \paperorientation portrait
27 \paragraph_separation indent
29 \quotes_language english
32 \paperpagestyle default
33 \tracking_changes false
49 \begin_inset CharStyle Firstname
53 \begin_layout Standard
60 \begin_inset CharStyle Surname
64 \begin_layout Standard
73 \begin_layout Abstract
74 This is a small illustration of lyx's features using DocBook.
77 \begin_layout Abstract
78 The abstract can span several paragraphs.
82 \begin_inset LatexCommand label
90 \begin_layout Standard
91 This file ilustrates the generation of docbook documents with LyX.
94 \begin_layout Standard
95 This will improve as soon as new features are available.
102 \begin_layout Standard
103 One of the goals is the support, as much as possible, of layouts used in
104 other textclass, for compatibility purposes.
107 \begin_layout Standard
108 Remember that this is work in progress, I would like to hear any comments,
110 \begin_inset Quotes eld
114 \begin_inset Quotes erd
120 \begin_layout Subsection
124 \begin_layout Standard
125 This is an example with several nested lists.
128 \begin_layout Itemize
133 \begin_layout Enumerate
137 \begin_layout Description
142 \begin_layout Enumerate
148 \begin_layout Itemize
152 \begin_layout Subsection
156 \begin_layout Standard
157 Required steps to have a running lyx.
160 \begin_layout Quotation
161 Be carefull with your own code.
164 \begin_layout Quotation
192 \begin_layout Subsection
196 \begin_layout Standard
197 If a label is the first element in any layout, that label will be merged
200 \begin_inset LatexCommand ref
202 reference "first-section"
209 \begin_layout Subsection
213 \begin_layout Standard
214 The only fonts supported are
219 \begin_inset CharStyle Literal
223 \begin_layout Standard
232 \begin_layout Subsection
236 \begin_layout Standard
237 One of the major changes in the docbook when compared with the linuxdoc
238 support are the figures support.
239 LyX only allows to view eps figures.
240 So you should have one of these if you want to take advantage of this feature.
243 \begin_layout Standard
244 Notice that when the docbook code is exported the filename extension is
246 This enables that when the several backends are processed in sgmltools,
247 the corresponding extensions are added.
248 The default extension are eps for the print and gif for the html backend.
251 \begin_layout Standard
252 \begin_inset Float figure
258 \begin_layout Standard
259 \begin_inset Graphics
260 filename ../doc/platypus.eps
272 \begin_layout Caption
281 \begin_layout Standard
282 Wide figures are treated as normal figures.
285 \begin_layout Standard
286 \begin_inset Float figure
292 \begin_layout Standard
293 \begin_inset Graphics
294 filename ../doc/platypus.eps
306 \begin_layout Caption
316 \begin_layout Subsection
320 \begin_layout Standard
321 There is also basic support for tables.
322 \begin_inset Float table
328 \begin_layout Standard
331 <lyxtabular version="3" rows="3" columns="5">
333 <column alignment="center" valignment="top" leftline="true" width="0pt">
334 <column alignment="center" valignment="top" leftline="true" width="0pt">
335 <column alignment="center" valignment="top" leftline="true" width="0pt">
336 <column alignment="center" valignment="top" leftline="true" width="0pt">
337 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
342 \begin_layout Standard
348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
351 \begin_layout Standard
357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
360 \begin_layout Standard
366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
369 \begin_layout Standard
375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
378 \begin_layout Standard
386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
389 \begin_layout Standard
395 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
398 \begin_layout Standard
404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
407 \begin_layout Standard
413 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
416 \begin_layout Standard
422 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
425 \begin_layout Standard
432 <row topline="true" bottomline="true">
433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
436 \begin_layout Standard
442 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
445 \begin_layout Standard
451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
454 \begin_layout Standard
460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
463 \begin_layout Standard
469 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
472 \begin_layout Standard
486 \begin_layout Caption
495 \begin_layout Standard
496 As it happens with the figures the wide tables are treated as normal tables.
499 \begin_layout Subsection
503 \begin_layout Standard
504 There are some restrictions when using margins.
505 For further information on docbook allowed syntax consult the
506 \begin_inset LatexCommand url
507 name "docbook reference manual"
508 target "http://www.oasis-open.org/docbook/documentation/reference/"
515 \begin_layout Quotation
516 It is also possible to insert margin notes inside some environments.
520 \begin_layout Standard
524 \begin_layout Standard
526 \begin_inset Marginal
529 \begin_layout Standard
538 \begin_layout Standard
540 second par -> margin note
543 \begin_layout Standard
545 third par -> margin note
554 \begin_layout Quotation
555 Notice that the previous layout is at level 1
559 \begin_layout Standard
560 This comes from a docbook restriction.
561 Sidebar can only appear inside "MSGTEXT", "CAUTION", "IMPORTANT", "NOTE",
562 "TIP", "WARNING", "BLOCKQUOTE".
565 \begin_layout Standard
566 These environments are easily added to the docbook layout.
571 and so is the follow:
575 \begin_layout Standard
579 \begin_layout Standard
581 \begin_inset Marginal
584 \begin_layout Standard
599 \begin_layout Section
603 \begin_layout Standard
604 This is a small list of the remaining tasks:
607 \begin_layout Itemize
608 Expand the number of layouts
612 \begin_layout Itemize
616 \begin_layout Itemize
620 \begin_layout Itemize
624 \begin_layout Itemize
628 \begin_layout Itemize
632 \begin_layout Itemize
637 \begin_layout Itemize
638 Compose other layout files, besides article
642 \begin_layout Enumerate
646 \begin_layout Enumerate
651 \begin_layout Standard
652 I do not expect lyx to deal with colection of books, for now!
660 \begin_layout Enumerate
665 \begin_layout Itemize
670 \begin_layout Enumerate
671 including other lyx files
674 \begin_layout Enumerate
675 more advanced tables support
679 \begin_layout Itemize
683 \begin_layout Standard