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
25 \paperorientation portrait
28 \paragraph_separation indent
30 \quotes_language english
33 \paperpagestyle default
34 \tracking_changes false
50 \begin_inset CharStyle Firstname
54 \begin_layout Standard
61 \begin_inset CharStyle Surname
65 \begin_layout Standard
74 \begin_layout Abstract
75 This is a small illustration of lyx's features using DocBook.
78 \begin_layout Abstract
79 The abstract can span several paragraphs.
83 \begin_inset LatexCommand label
91 \begin_layout Standard
92 This file ilustrates the generation of docbook documents with LyX.
95 \begin_layout Standard
96 This will improve as soon as new features are available.
103 \begin_layout Standard
104 One of the goals is the support, as much as possible, of layouts used in
105 other textclass, for compatibility purposes.
108 \begin_layout Standard
109 Remember that this is work in progress, I would like to hear any comments,
111 \begin_inset Quotes eld
115 \begin_inset Quotes erd
121 \begin_layout Subsection
125 \begin_layout Standard
126 This is an example with several nested lists.
129 \begin_layout Itemize
134 \begin_layout Enumerate
138 \begin_layout Description
143 \begin_layout Enumerate
149 \begin_layout Itemize
153 \begin_layout Subsection
157 \begin_layout Standard
158 Required steps to have a running lyx.
161 \begin_layout Quotation
162 Be carefull with your own code.
165 \begin_layout Quotation
193 \begin_layout Subsection
197 \begin_layout Standard
198 If a label is the first element in any layout, that label will be merged
201 \begin_inset LatexCommand ref
203 reference "first-section"
210 \begin_layout Subsection
214 \begin_layout Standard
215 The only fonts supported are
220 \begin_inset CharStyle Literal
224 \begin_layout Standard
233 \begin_layout Subsection
237 \begin_layout Standard
238 One of the major changes in the docbook when compared with the linuxdoc
239 support are the figures support.
240 LyX only allows to view eps figures.
241 So you should have one of these if you want to take advantage of this feature.
244 \begin_layout Standard
245 Notice that when the docbook code is exported the filename extension is
247 This enables that when the several backends are processed in sgmltools,
248 the corresponding extensions are added.
249 The default extension are eps for the print and gif for the html backend.
252 \begin_layout Standard
253 \begin_inset Float figure
259 \begin_layout Standard
260 \begin_inset Graphics
261 filename ../doc/platypus.eps
291 \begin_layout Standard
292 Wide figures are treated as normal figures.
295 \begin_layout Standard
296 \begin_inset Float figure
302 \begin_layout Standard
303 \begin_inset Graphics
304 filename ../doc/platypus.eps
335 \begin_layout Subsection
339 \begin_layout Standard
340 There is also basic support for tables.
341 \begin_inset Float table
347 \begin_layout Standard
350 <lyxtabular version="3" rows="3" columns="5">
352 <column alignment="center" valignment="top" leftline="true" width="0pt">
353 <column alignment="center" valignment="top" leftline="true" width="0pt">
354 <column alignment="center" valignment="top" leftline="true" width="0pt">
355 <column alignment="center" valignment="top" leftline="true" width="0pt">
356 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
361 \begin_layout Standard
367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
370 \begin_layout Standard
376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
379 \begin_layout Standard
385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
388 \begin_layout Standard
394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
397 \begin_layout Standard
405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
408 \begin_layout Standard
414 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
417 \begin_layout Standard
423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
426 \begin_layout Standard
432 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
435 \begin_layout Standard
441 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
444 \begin_layout Standard
451 <row topline="true" bottomline="true">
452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
455 \begin_layout Standard
461 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
464 \begin_layout Standard
470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
473 \begin_layout Standard
479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
482 \begin_layout Standard
488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
491 \begin_layout Standard
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 LatexCommand url
534 name "docbook reference manual"
535 target "http://www.oasis-open.org/docbook/documentation/reference/"
542 \begin_layout Quotation
543 It is also possible to insert margin notes inside some environments.
547 \begin_layout Standard
551 \begin_layout Standard
553 \begin_inset Marginal
556 \begin_layout Standard
565 \begin_layout Standard
567 second par -> margin note
570 \begin_layout Standard
572 third par -> margin note
581 \begin_layout Quotation
582 Notice that the previous layout is at level 1
586 \begin_layout Standard
587 This comes from a docbook restriction.
588 Sidebar can only appear inside "MSGTEXT", "CAUTION", "IMPORTANT", "NOTE",
589 "TIP", "WARNING", "BLOCKQUOTE".
592 \begin_layout Standard
593 These environments are easily added to the docbook layout.
598 and so is the follow:
602 \begin_layout Standard
606 \begin_layout Standard
608 \begin_inset Marginal
611 \begin_layout Standard
626 \begin_layout Section
630 \begin_layout Standard
631 This is a small list of the remaining tasks:
634 \begin_layout Itemize
635 Expand the number of layouts
639 \begin_layout Itemize
643 \begin_layout Itemize
647 \begin_layout Itemize
651 \begin_layout Itemize
655 \begin_layout Itemize
659 \begin_layout Itemize
664 \begin_layout Itemize
665 Compose other layout files, besides article
669 \begin_layout Enumerate
673 \begin_layout Enumerate
678 \begin_layout Standard
679 I do not expect lyx to deal with colection of books, for now!
687 \begin_layout Enumerate
692 \begin_layout Itemize
697 \begin_layout Enumerate
698 including other lyx files
701 \begin_layout Enumerate
702 more advanced tables support
706 \begin_layout Itemize
710 \begin_layout Standard