blob: ae71a6f984e66bce0821dde2bcae74ff1a52242a [file] [log] [blame]
njn3e986b22004-11-30 10:43:45 +00001 <!-- -*- sgml -*- -->
2----------------------------------------------
3Docbook Reference Manual (1999):
4- http://www.oreilly.com/catalog/docbook/
5DocBook XSL: The Complete Guide (2002)
6- http://www.sagehill.net/docbookxsl/index.html
7
8DocBook elements (what tags are allowed where)
9- http://www.oreilly.com/catalog/docbook/chapter/book/refelem.html
10
11Catalogs:
12- http://www.sagehill.net/docbookxsl/WriteCatalog.html
13
14
15----------------------------------------------
16xml to html markup transformations:
17
18<programlisting> --> <pre class="programlisting">
19<screen> --> <pre class="screen">
20<computeroutput> --> <tt class="computeroutput">
21<literal> --> <tt>
22<emphasis> --> <i>
23<command> --> <b class="command">
24<blockquote> --> <div class="blockquote">
25 <blockquote class="blockquote">
26
27Important: inside <screen> and <programlisting> blocks, do NOT
28use 'html entities' in your markup, eg. '&lt;' If you *do* use
29them, they will be output verbatim, which is not what you want.
debad57fc2005-12-03 22:33:29 +000030Instead, wrap the content with CDATA tags (see below).
njn3e986b22004-11-30 10:43:45 +000031
32----------------------------------------------
33
34<ulink url="http://..">http://kcachegrind.sourceforge.net</ulink>
35
36
37----------------------------------------------
38<variablelist> --> <dl>
39 <varlistentry>
40 <term>TTF</term> --> <dt>
41 <listitem>TrueType fonts.</listitem> --> <dd>
42 </varlistentry>
43</variablelist> --> <dl>
44
45
46----------------------------------------------
47<itemizedlist> --> <ul>
48 <listitem> --> <li>
49 <para>....</para>
50 <para>....</para>
51 </listitem> --> </li>
52</itemizedlist> --> </ul>
53
54
55----------------------------------------------
56<orderedlist> --> <ol>
57 <listitem> --> <li>
58 <para>....</para>
59 <para>....</para>
60 </listitem> --> </li>
61</orderedlist> --> </ol>
62
63
64----------------------------------------------
65To achieve this:
66
67This is a paragraph of text before a list:
68
69 * some text
70
71 * some more text
72
73and this is some more text after the list.
74
75Do this:
76<para>This is a paragraph of text before a list:</para>
77<itemizedlist>
78 <listitem>
79 <para>some text</para>
80 </listitem>
81 <listitem>
82 <para>some more text</para>
83 </listitem>
84</itemizedlist>
85
debad57fc2005-12-03 22:33:29 +000086<para>and this is some more text after the list.</para>
87
njn3e986b22004-11-30 10:43:45 +000088
89----------------------------------------------
90To achieve this:
91For further details, see <a href="clientreq">The Mechanism</a>
92
93Do this:
94
95 Given:
96 <sect1 id="clientreq" xreflabel="The Mechanism">
97 <title>The Mechanism</title>
98 <para>...</para>
99 </sect1>
100
101 Then do:
102 For further details, see <xref linkend="clientreq"/>.
103
104
105----------------------------------------------
106To achieve this:
107<p><b>Warning:</b> Only do this if ...</p>
108
109Do this:
110<formalpara>
111 <title>Warning:</title>
112 <para>Only do this if ...</para>
113</formalpara>
114
115Or this:
116<para><command>Warning:</command> Only do this if ... </para>
117
118
119----------------------------------------------
120To achieve this:
debad57fc2005-12-03 22:33:29 +0000121<p>It uses the Eraser algorithm described in:<br/>
122<br/>
123 Eraser: A Dynamic Data Race Detector for Multithreaded Programs<br/>
124 Stefan Savage, Michael Burrows, Patrick Sobalvarro and Thomas Anderson<br/>
125 ACM Transactions on Computer Systems, 15(4):391-411<br/>
126 November 1997.<br/>
njn3e986b22004-11-30 10:43:45 +0000127</p>
128
129Do this:
130<literallayout>
131It uses the Eraser algorithm described in:
132
133 Eraser: A Dynamic Data Race Detector for Multithreaded Programs
134 Stefan Savage, Michael Burrows, Patrick Sobalvarro and Thomas Anderson
135 ACM Transactions on Computer Systems, 15(4):391-411
136 November 1997.
137</literallayout>
138
139
140----------------------------------------------
141To achieve this:
142<pre>
143/* Hook to delay things long enough so we can get the pid
144 and attach GDB in another shell. */
145if (0) {
146 Int p, q;
147 for ( p = 0; p < 50000; p++ )
148 for ( q = 0; q < 50000; q++ ) ;
149</pre>
150
151Do this:
152<programlisting><![CDATA[
153/* Hook to delay things long enough so we can get the pid
154 and attach GDB in another shell. */
155if (0) {
156 Int p, q;
157 for ( p = 0; p < 50000; p++ )
158 for ( q = 0; q < 50000; q++ ) ;
159}]]></programlisting>
160
161
162(do the same thing for <screen> tag)
163
164
165----------------------------------------------
166To achieve this:
167 where <i><code>TAG</code></i> has the ...
168
169Do this:
170 where <emphasis><computeroutput>TAG</computeroutput></emphasis> has the ...
171
172Note: you cannot put <emphasis> inside <computeroutput>, unfortunately.
173
174----------------------------------------------
175
debad57fc2005-12-03 22:33:29 +0000176Any other helpful hints? Please add to this.