1 #LyX 1.6.0 created this file. For more info see http://www.lyx.org/
6 \use_default_options false
11 \font_typewriter default
12 \font_default_family default
18 \paperfontsize default
27 \paperorientation portrait
30 \paragraph_separation indent
32 \quotes_language english
35 \paperpagestyle default
36 \tracking_changes false
53 \begin_inset Flex Element:Firstname
56 \begin_layout Plain Layout
63 \begin_inset Flex Element:Surname
66 \begin_layout Plain Layout
75 \begin_layout Abstract
76 This is a small illustration of lyx's features using DocBook.
79 \begin_layout Abstract
80 The abstract can span several paragraphs.
84 \begin_inset CommandInset label
93 \begin_layout Standard
94 This file ilustrates the generation of docbook documents with LyX.
97 \begin_layout Standard
98 This will improve as soon as new features are available.
101 \begin_layout Section
105 \begin_layout Standard
106 One of the goals is the support, as much as possible, of layouts used in
107 other textclass, for compatibility purposes.
110 \begin_layout Standard
111 Remember that this is work in progress, I would like to hear any comments,
113 \begin_inset Quotes eld
117 \begin_inset Quotes erd
123 \begin_layout Subsection
127 \begin_layout Standard
128 This is an example with several nested lists.
131 \begin_layout Itemize
136 \begin_layout Enumerate
140 \begin_layout Description
145 \begin_layout Enumerate
151 \begin_layout Itemize
155 \begin_layout Subsection
159 \begin_layout Standard
160 Required steps to have a running lyx.
163 \begin_layout Quotation
164 Be carefull with your own code.
167 \begin_layout Quotation
195 \begin_layout Subsection
199 \begin_layout Standard
200 If a label is the first element in any layout, that label will be merged
203 \begin_inset CommandInset ref
206 reference "first-section"
213 \begin_layout Subsection
217 \begin_layout Standard
218 The only fonts supported are
223 \begin_inset Flex Element:Literal
226 \begin_layout Plain Layout
235 \begin_layout Subsection
239 \begin_layout Standard
240 One of the major changes in the docbook when compared with the linuxdoc
241 support are the figures support.
242 LyX only allows to view eps figures.
243 So you should have one of these if you want to take advantage of this feature.
246 \begin_layout Standard
247 Notice that when the docbook code is exported the filename extension is
249 This enables that when the several backends are processed in sgmltools,
250 the corresponding extensions are added.
251 The default extension are eps for the print and gif for the html backend.
254 \begin_layout Standard
255 \begin_inset Float figure
261 \begin_layout Plain Layout
262 \begin_inset Graphics
263 filename ../doc/clipart/platypus.eps
275 \begin_layout Plain Layout
278 \begin_layout Plain Layout
292 \begin_layout Standard
293 Wide figures are treated as normal figures.
296 \begin_layout Standard
297 \begin_inset Float figure
303 \begin_layout Plain Layout
304 \begin_inset Graphics
305 filename ../doc/clipart/platypus.eps
317 \begin_layout Plain Layout
320 \begin_layout Plain Layout
321 long, very long\SpecialChar \ldots{}
335 \begin_layout Subsection
339 \begin_layout Standard
340 There is also basic support for tables.
341 \begin_inset Float table
347 \begin_layout Plain Layout
350 <lyxtabular version="3" rows="3" columns="5">
352 <column alignment="center" valignment="top" width="0pt">
353 <column alignment="center" valignment="top" width="0pt">
354 <column alignment="center" valignment="top" width="0pt">
355 <column alignment="center" valignment="top" width="0pt">
356 <column alignment="center" valignment="top" width="0pt">
358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
361 \begin_layout Plain Layout
367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
370 \begin_layout Plain Layout
376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
379 \begin_layout Plain Layout
385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
388 \begin_layout Plain Layout
394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
397 \begin_layout Plain Layout
405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
408 \begin_layout Plain Layout
414 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
417 \begin_layout Plain Layout
423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
426 \begin_layout Plain Layout
432 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
435 \begin_layout Plain Layout
441 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
444 \begin_layout Plain Layout
452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
455 \begin_layout Plain Layout
461 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
464 \begin_layout Plain Layout
470 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
473 \begin_layout Plain Layout
479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
482 \begin_layout Plain Layout
488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
491 \begin_layout Plain Layout
505 \begin_layout Plain Layout
508 \begin_layout Plain Layout
522 \begin_layout Standard
523 As it happens with the figures the wide tables are treated as normal tables.
526 \begin_layout Subsection
530 \begin_layout Standard
531 There are some restrictions when using margins.
532 For further information on docbook allowed syntax consult the
533 \begin_inset CommandInset href
535 name "docbook reference manual"
536 target "http://www.oasis-open.org/docbook/documentation/reference/"
543 \begin_layout Quotation
544 It is also possible to insert margin notes inside some environments.
548 \begin_layout Standard
552 \begin_layout Plain Layout
556 \begin_layout Plain Layout
558 second par -> margin note
561 \begin_layout Plain Layout
563 third par -> margin note
572 \begin_layout Quotation
573 Notice that the previous layout is at level 1
577 \begin_layout Plain Layout
578 This comes from a docbook restriction.
579 Sidebar can only appear inside "MSGTEXT", "CAUTION", "IMPORTANT", "NOTE",
580 "TIP", "WARNING", "BLOCKQUOTE".
583 \begin_layout Plain Layout
584 These environments are easily added to the docbook layout.
589 and so is the follow:
593 \begin_layout Standard
597 \begin_layout Plain Layout
607 \begin_layout Section
611 \begin_layout Standard
612 This is a small list of the remaining tasks:
615 \begin_layout Itemize
616 Expand the number of layouts
620 \begin_layout Itemize
624 \begin_layout Itemize
628 \begin_layout Itemize
632 \begin_layout Itemize
636 \begin_layout Itemize
640 \begin_layout Itemize
645 \begin_layout Itemize
646 Compose other layout files, besides article
650 \begin_layout Enumerate
654 \begin_layout Enumerate
659 \begin_layout Plain Layout
660 I do not expect lyx to deal with colection of books, for now!
668 \begin_layout Enumerate
673 \begin_layout Itemize
678 \begin_layout Enumerate
679 including other lyx files
682 \begin_layout Enumerate
683 more advanced tables support
687 \begin_layout Itemize
691 \begin_layout Standard