blob: 41d5ed7957197731db7e2c64fc8241ff20c2324d [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.
30
31
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
86
87----------------------------------------------
88To achieve this:
89For further details, see <a href="clientreq">The Mechanism</a>
90
91Do this:
92
93 Given:
94 <sect1 id="clientreq" xreflabel="The Mechanism">
95 <title>The Mechanism</title>
96 <para>...</para>
97 </sect1>
98
99 Then do:
100 For further details, see <xref linkend="clientreq"/>.
101
102
103----------------------------------------------
104To achieve this:
105<p><b>Warning:</b> Only do this if ...</p>
106
107Do this:
108<formalpara>
109 <title>Warning:</title>
110 <para>Only do this if ...</para>
111</formalpara>
112
113Or this:
114<para><command>Warning:</command> Only do this if ... </para>
115
116
117----------------------------------------------
118To achieve this:
119<p>It uses the Eraser algorithm described in:<br />
120<br />
121 Eraser: A Dynamic Data Race Detector for Multithreaded Programs<br />
122 Stefan Savage, Michael Burrows, Patrick Sobalvarro and Thomas Anderson<br />
123 ACM Transactions on Computer Systems, 15(4):391-411<br />
124 November 1997.<br />
125</p>
126
127Do this:
128<literallayout>
129It uses the Eraser algorithm described in:
130
131 Eraser: A Dynamic Data Race Detector for Multithreaded Programs
132 Stefan Savage, Michael Burrows, Patrick Sobalvarro and Thomas Anderson
133 ACM Transactions on Computer Systems, 15(4):391-411
134 November 1997.
135</literallayout>
136
137
138----------------------------------------------
139To achieve this:
140<pre>
141/* Hook to delay things long enough so we can get the pid
142 and attach GDB in another shell. */
143if (0) {
144 Int p, q;
145 for ( p = 0; p < 50000; p++ )
146 for ( q = 0; q < 50000; q++ ) ;
147</pre>
148
149Do this:
150<programlisting><![CDATA[
151/* Hook to delay things long enough so we can get the pid
152 and attach GDB in another shell. */
153if (0) {
154 Int p, q;
155 for ( p = 0; p < 50000; p++ )
156 for ( q = 0; q < 50000; q++ ) ;
157}]]></programlisting>
158
159
160(do the same thing for <screen> tag)
161
162
163----------------------------------------------
164To achieve this:
165 where <i><code>TAG</code></i> has the ...
166
167Do this:
168 where <emphasis><computeroutput>TAG</computeroutput></emphasis> has the ...
169
170Note: you cannot put <emphasis> inside <computeroutput>, unfortunately.
171
172----------------------------------------------
173
174Any other helpful hints? Please tell us.