Debian Codegraph @

docs/xhtml/manual/sec-pub-output.html

raw
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Publishing Outputs</title><link rel="stylesheet" type="text/css" href="manual.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="home" href="index.html" title="DocBook to LaTeX Publishing" /><link rel="up" href="ch03.html" title="Chapter 3. Using dblatex" /><link rel="prev" href="sec-style.html" title="Output Formatting Style" /><link rel="next" href="sec-pagesetup.html" title="Global Page Setup" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Publishing Outputs</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="sec-style.html">Prev</a> </td><th width="60%" align="center">Chapter 3. Using dblatex</th><td width="20%" align="right"> <a accesskey="n" href="sec-pagesetup.html">Next</a></td></tr></table><hr /></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="sec-pub-output"></a>Publishing Outputs</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="sec-pub-output.html#idp920">Publishing a single document</a></span></dt><dt><span class="section"><a href="sec-pub-output.html#sec-book-set">Publishing a Set of Books</a></span></dt></dl></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idp920"></a>Publishing a single document</h3></div></div></div><p>The default publishing document units are: <code class="sgmltag-element">article</code>
3 and <code class="sgmltag-element">book</code>. The output file name is optionnaly specified by
4 the <code class="option">-o</code> option.</p><p>You can also publish an article or book subset, i.e. you can run dblatex
5 on an XML input whose root element is a <code class="sgmltag-element">chapter</code>, a
6 <code class="sgmltag-element">section</code>, or anything else. In this case, dblatex wraps the
7 root element in an <code class="sgmltag-element">article</code> or in a <code class="sgmltag-element">book</code>
8 and print out a warning. The output subset does not contain any front matter
9 data found in an article or in a book (cover page, revision history, etc.),
10 but it can contain some back matter materials like an index.</p><pre class="programlisting">$ dblatex subset.xml
11 Build the book set list...
12 Build the listings...
13 XSLT stylesheets DocBook - LaTeX 2e (0.2.11)
14 ===================================================
15 Warning: the root element is not an article nor a book
16 Warning: element section(sec-subset) wrapped with article
17 Build subset.pdf
18 ...
19 </pre></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="sec-book-set"></a>Publishing a Set of Books</h3></div></div></div><p>When the document root element is a <code class="sgmltag-element">set</code>, and when
20 <em class="parameter"><code>set.book.num</code></em> is set to '<code class="literal">all</code>',
21 dblatex ouputs a file per book contained in the set (and in the nested sets).
22 In this case the <code class="option">-o</code> option is ignored, and only the
23 <code class="option">-O</code> option is taken into account to specify the output
24 directory that will contain the generated files.</p><p>Instead of building all the books, the user can publish a single book
25 from the set, by setting the <em class="parameter"><code>set.book.num</code></em> parameter to
26 the absolute position of the book in the set(s). By default
27 <em class="parameter"><code>set.book.num</code></em> is set to 1 to publish only the first
28 book.</p><p>The output file names are the book identifiers when
29 <em class="parameter"><code>use.id.as.filename</code></em> is non zero, and when an identifier
30 exists. If one of the two conditions are not met, the filename pattern is
31 "<code class="filename">book<em class="replaceable"><code>&lt;position in set&gt;</code></em></code>".
32 </p><p>Example: given the following set:</p><pre class="programlisting">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
33
34 &lt;!-- setfile.xml. An example of set. All the books have an @id except one --&gt;
35
36 &lt;!DOCTYPE set PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
37 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"&gt;
38 &lt;set lang="en" id="a_set" xmlns:xi="http://www.w3.org/2001/XInclude"&gt;
39 &lt;title&gt;Set Title&lt;/title&gt;
40 &lt;set&gt;
41 &lt;xi:include href="book1.xml"/&gt; &lt;!-- book #1 --&gt;
42 &lt;xi:include href="book2.xml"/&gt; &lt;!-- book #2 --&gt;
43 &lt;xi:include href="book3.xml"/&gt; &lt;!-- book #3 --&gt;
44 &lt;/set&gt;
45 &lt;set&gt;
46 &lt;set&gt;
47 &lt;xi:include href="bookA.xml"/&gt; &lt;!-- book #4 --&gt;
48 &lt;xi:include href="bookB.xml"/&gt; &lt;!-- book #5 --&gt;
49 &lt;/set&gt;
50 &lt;set&gt;
51 &lt;xi:include href="bookC.xml"/&gt; &lt;!-- book #6 --&gt;
52 &lt;/set&gt;
53 &lt;/set&gt;
54 &lt;set&gt;
55 &lt;xi:include href="book4.xml"/&gt; &lt;!-- book #7 --&gt;
56 &lt;!-- The following book, at 8th position in the sets, has no @id --&gt;
57 &lt;xi:include href="book5.xml"/&gt; &lt;!-- book #8 --&gt;
58 &lt;xi:include href="book6.xml"/&gt; &lt;!-- book #9 --&gt;
59 &lt;/set&gt;
60 &lt;/set&gt;</pre><p>Publishing this set produces 9 books in the
61 <code class="filename">pdfdir</code> directory:</p><pre class="programlisting">$ dblatex -O./pdfdir -Pset.book.num=all -Puse.id.as.filename=1 setfile.xml
62 Build the book set list...
63 Build the listings...
64 XSLT stylesheets DocBook - LaTeX 2e (0.2.11)
65 ===================================================
66 Output all the books from the set
67 Writing sec1-mybook.rtex for book(sec1-mybook)
68 Writing sec2-mybook.rtex for book(sec2-mybook)
69 Writing sec3-mybook.rtex for book(sec3-mybook)
70 Writing secA-mybook.rtex for book(secA-mybook)
71 Writing book8.rtex for book
72 Writing secC-mybook.rtex for book(secC-mybook)
73 Writing sec4-mybook.rtex for book(sec4-mybook)
74 Writing sec5-mybook.rtex for book(sec5-mybook)
75 Writing sec6-mybook.rtex for book(sec6-mybook)
76 ...
77 Files successfully built in '/path/to/set/pdfdir':
78 sec1-mybook.pdf
79 sec2-mybook.pdf
80 sec3-mybook.pdf
81 sec4-mybook.pdf
82 book8.pdf
83 sec6-mybook.pdf
84 secA-mybook.pdf
85 secB-mybook.pdf
86 secC-mybook.pdf</pre><p></p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="sec-style.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch03.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="sec-pagesetup.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Output Formatting Style </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Global Page Setup</td></tr></table></div></body></html>