~ubuntu-branches/ubuntu/utopic/asciidoc/utopic

« back to all changes in this revision

Viewing changes to docbook.conf

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2010-11-27 23:19:57 UTC
  • mfrom: (1.1.12 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20101127231957-jxdmrk7z7lkcqy3l
Tags: 8.6.3-1
* New upstream version (Closes: #595324)
* Support asciidoc API (Closes: #526351)
* Depend on python >= 2.4 (Closes: #571303)
* Do not compress .txt files (Closes: #592423)
* Enhance asciidoc manpage (Closes: #499497)
* Move some of the Recommends (vim-addon-manager, source-highlight) to 
  Suggests (Closes: #564015)
* Bump standards version (No changes)
* Add README.Source file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# docbook.conf
3
 
#
4
 
# Asciidoc configuration file.
5
 
# Default docbook backend.
6
 
#
7
 
 
8
 
[miscellaneous]
9
 
outfilesuffix=.xml
10
 
# Printable page width and units.
11
 
# Used to calculate DocBook CALS tables absolute column and table widths.
12
 
pagewidth=425
13
 
pageunits=*
14
 
 
15
 
[attributes]
16
 
basebackend=docbook
17
 
basebackend-docbook=
18
 
# toc and numbered are set to maintain original default behavior.
19
 
toc=
20
 
numbered=
21
 
 
22
 
[replacements2]
23
 
# Line break markup. Custom processing instruction in fo.xsl.
24
 
(?m)^(.*)\s\+$=\1<?asciidoc-br?>
25
 
 
26
 
[replacements]
27
 
ifdef::asciidoc7compatible[]
28
 
# Superscripts.
29
 
\^(.+?)\^=<superscript>\1</superscript>
30
 
# Subscripts.
31
 
~(.+?)~=<subscript>\1</subscript>
32
 
endif::asciidoc7compatible[]
33
 
 
34
 
[ruler-blockmacro]
35
 
# Uses custom processing instructions in fo.xsl and asciidoc-dblatex.xsl.
36
 
<simpara><?asciidoc-hr?></simpara>
37
 
 
38
 
[pagebreak-blockmacro]
39
 
# Uses custom processing instructions in fo.xsl and asciidoc-dblatex.xsl.
40
 
<simpara><?asciidoc-pagebreak?></simpara>
41
 
 
42
 
[blockdef-pass]
43
 
latexmath-style=template="latexmathblock",subs=[]
44
 
 
45
 
[macros]
46
 
# math macros.
47
 
(?su)[\\]?(?P<name>latexmath):(?P<subslist>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[]
48
 
(?u)^(?P<name>latexmath)::(?P<subslist>\S*?)(\[(?P<passtext>.*?)\])$=#[]
49
 
 
50
 
[latexmath-inlinemacro]
51
 
<inlineequation>
52
 
<alt><![CDATA[{passtext}]]></alt>
53
 
<inlinemediaobject><textobject><phrase></phrase></textobject></inlinemediaobject>
54
 
</inlineequation>
55
 
 
56
 
[latexmath-blockmacro]
57
 
<informalequation>
58
 
<alt><![CDATA[{passtext}]]></alt>
59
 
<mediaobject><textobject><phrase></phrase></textobject></mediaobject>
60
 
</informalequation>
61
 
 
62
 
[latexmathblock]
63
 
<equation{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><title>{title}</title>
64
 
{title%}<informalequation{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
65
 
<alt><![CDATA[|]]></alt>
66
 
<mediaobject><textobject><phrase></phrase></textobject></mediaobject>
67
 
{title#}</equation>
68
 
{title%}</informalequation>
69
 
 
70
 
[image-inlinemacro]
71
 
<inlinemediaobject>
72
 
  <imageobject>
73
 
  <imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}/>
74
 
  </imageobject>
75
 
  <textobject><phrase>{alt={target}}</phrase></textobject>
76
 
</inlinemediaobject>
77
 
 
78
 
[image-blockmacro]
79
 
<figure{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}{pgwide-option? pgwide="1"}><title>{title}</title>
80
 
{title%}<informalfigure{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{pgwide-option?<?dbfo pgwide="1"?>}
81
 
# DocBook XSL Stylesheets custom processing instructions.
82
 
<?dbfo keep-together="{breakable-option#auto}"?>
83
 
<?dbfo keep-together="{unbreakable-option#always}"?>
84
 
<mediaobject>
85
 
  <imageobject>
86
 
  <imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}{scaledwidth? width="{scaledwidth}" scalefit="1"}{align? align="{align}"}/>
87
 
  </imageobject>
88
 
  <textobject><phrase>{alt={target}}</phrase></textobject>
89
 
</mediaobject>
90
 
{title#}</figure>
91
 
{title%}</informalfigure>
92
 
 
93
 
[indexterm-inlinemacro]
94
 
# Index term.
95
 
# Generate separate index entries for primary, secondary and tertiary
96
 
# descriptions.
97
 
# Primary only.
98
 
{2%}<indexterm>
99
 
{2%}  <primary>{1}</primary>
100
 
{2%}</indexterm>
101
 
# Primary and secondary.
102
 
{2#}{3%}<indexterm>
103
 
{2#}{3%}  <primary>{1}</primary><secondary>{2}</secondary>
104
 
{2#}{3%}</indexterm>
105
 
{2#}{3%}<indexterm>
106
 
{2#}{3%}  <primary>{2}</primary>
107
 
{2#}{3%}</indexterm>
108
 
# Primary, secondary and tertiary.
109
 
{3#}<indexterm>
110
 
  <primary>{1}</primary><secondary>{2}</secondary><tertiary>{3}</tertiary>
111
 
{3#}</indexterm>
112
 
{3#}<indexterm>
113
 
  <primary>{2}</primary><secondary>{3}</secondary>
114
 
{3#}</indexterm>
115
 
{3#}<indexterm>
116
 
  <primary>{3}</primary>
117
 
{3#}</indexterm>
118
 
 
119
 
[indexterm2-inlinemacro]
120
 
# Index term.
121
 
# Single entry index term that is visible in the primary text flow.
122
 
<indexterm><primary>{1}</primary></indexterm>{1}
123
 
 
124
 
[footnote-inlinemacro]
125
 
# Footnote.
126
 
<footnote><simpara>{0}</simpara></footnote>
127
 
 
128
 
[footnoteref-inlinemacro]
129
 
# Footnote reference.
130
 
{2#}<footnote id="{1}"><simpara>{2}</simpara></footnote>
131
 
{2%}<footnoteref linkend="{1}" />
132
 
 
133
 
[callout-inlinemacro]
134
 
# Callout.
135
 
<co id="{coid}"/>
136
 
 
137
 
# List tags.
138
 
[listtags-bulleted]
139
 
list=<itemizedlist{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}{compact-option? spacing="compact"}>{title?<title>{title}</title>}|</itemizedlist>
140
 
item=<listitem>|</listitem>
141
 
text=<simpara>|</simpara>
142
 
 
143
 
[listtags-numbered]
144
 
list=<orderedlist{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"} numeration="{style}"{compact-option? spacing="compact"}>{title?<title>{title}</title>}|</orderedlist>
145
 
item=<listitem>|</listitem>
146
 
text=<simpara>|</simpara>
147
 
 
148
 
[listtags-labeled]
149
 
list=<variablelist{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{title?<title>{title}</title>}|</variablelist>
150
 
entry=<varlistentry>|</varlistentry>
151
 
label=
152
 
term=<term>|</term>
153
 
item=<listitem>|</listitem>
154
 
text=<simpara>|</simpara>
155
 
 
156
 
[listtags-horizontal]
157
 
# Horizontal labeled list (implemented with two column table).
158
 
# Hardwired column widths to 30%,70% because the current crop of PDF
159
 
# generators do not auto calculate column widths.
160
 
 list=<{title?table}{title!informaltable}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}{style? tabstyle="{style}"}{pgwide-option? pgwide="1"} frame="none" colsep="0" rowsep="0">{title?<title>{title}</title>}<tgroup cols="2"><colspec colwidth="{labelwidth=15}*"/><colspec colwidth="{itemwidth=85}*"/><tbody valign="top">|</tbody></tgroup><{title?/table}{title!/informaltable}>
161
 
entry=<row>|</row>
162
 
label=<entry>|</entry>
163
 
term=<simpara>|</simpara>
164
 
item=<entry>|</entry>
165
 
text=<simpara>|</simpara>
166
 
 
167
 
[listtags-callout]
168
 
list=<calloutlist{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{title?<title>{title}</title>}|</calloutlist>
169
 
item=<callout arearefs="{coids}">|</callout>
170
 
text=<simpara>|</simpara>
171
 
 
172
 
[listtags-qanda]
173
 
list=<qandaset{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{title?<title>{title}</title>}|</qandaset>
174
 
entry=<qandaentry>|</qandaentry>
175
 
label=<question>|</question>
176
 
term=<simpara>|</simpara>
177
 
item=<answer>|</answer>
178
 
text=<simpara>|</simpara>
179
 
 
180
 
[listtags-bibliography]
181
 
list=
182
 
item=<bibliomixed>|</bibliomixed>
183
 
text=<bibliomisc>|</bibliomisc>
184
 
 
185
 
[listtags-glossary]
186
 
list=
187
 
entry=<glossentry>|</glossentry>
188
 
label=
189
 
term=<glossterm>|</glossterm>
190
 
item=<glossdef>|</glossdef>
191
 
text=<simpara>|</simpara>
192
 
 
193
 
[tags]
194
 
# Quoted text
195
 
emphasis={role?<phrase role="{role}">}<emphasis>|</emphasis>{role?</phrase>}
196
 
strong={role?<phrase role="{role}">}<emphasis role="strong">|</emphasis>{role?</phrase>}
197
 
monospaced={role?<phrase role="{role}">}<literal>|</literal>{role?</phrase>}
198
 
singlequoted={role?<phrase role="{role}">}{amp}#8216;|{amp}#8217;{role?</phrase>}
199
 
doublequoted={role?<phrase role="{role}">}{amp}#8220;|{amp}#8221;{role?</phrase>}
200
 
unquoted={role?<phrase role="{role}">}|{role?</phrase>}
201
 
subscript={role?<phrase role="{role}">}<subscript>|</subscript>{role?</phrase>}
202
 
superscript={role?<phrase role="{role}">}<superscript>|</superscript>{role?</phrase>}
203
 
 
204
 
# Inline macros
205
 
[http-inlinemacro]
206
 
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
207
 
[https-inlinemacro]
208
 
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
209
 
[ftp-inlinemacro]
210
 
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
211
 
[file-inlinemacro]
212
 
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
213
 
[irc-inlinemacro]
214
 
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
215
 
[mailto-inlinemacro]
216
 
<ulink url="mailto:{target}">{0={target}}</ulink>
217
 
[callto-inlinemacro]
218
 
<ulink url="{name}:{target}">{0={target}}</ulink>
219
 
[link-inlinemacro]
220
 
<ulink url="{target}">{0={target}}</ulink>
221
 
# anchor:id[text]
222
 
[anchor-inlinemacro]
223
 
<anchor id="{target}" xreflabel="{0=[{target}]}"/>
224
 
# [[id,text]]
225
 
[anchor2-inlinemacro]
226
 
<anchor id="{1}" xreflabel="{2=[{1}]}"/>
227
 
# [[[id]]]
228
 
[anchor3-inlinemacro]
229
 
<anchor id="{1}" xreflabel="[{1}]"/>[{1}]
230
 
# xref:id[text]
231
 
[xref-inlinemacro]
232
 
<link linkend="{target}">{0}</link>
233
 
{2%}<xref linkend="{target}"/>
234
 
# <<id,text>>
235
 
[xref2-inlinemacro]
236
 
<link linkend="{1}">{2}</link>
237
 
{2%}<xref linkend="{1}"/>
238
 
# // comment line
239
 
[comment-inlinemacro]
240
 
{showcomments#}<remark>{passtext}</remark>
241
 
 
242
 
[comment-blockmacro]
243
 
template::[comment-inlinemacro]
244
 
 
245
 
[literal-inlinemacro]
246
 
# Inline literal.
247
 
<literal>{passtext}</literal>
248
 
 
249
 
# Special word macros
250
 
[emphasizedwords]
251
 
<emphasis>{words}</emphasis>
252
 
[monospacedwords]
253
 
<literal>{words}</literal>
254
 
[strongwords]
255
 
<emphasis role="strong">{words}</emphasis>
256
 
 
257
 
# Paragraph substitution.
258
 
[paragraph]
259
 
<formalpara{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><title>{title}</title><para>
260
 
{title%}<simpara{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
261
 
|
262
 
{title%}</simpara>
263
 
{title#}</para></formalpara>
264
 
{empty}
265
 
 
266
 
[admonitionparagraph]
267
 
<{name}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><simpara>|</simpara></{name}>
268
 
 
269
 
[literalparagraph]
270
 
# The literal block employs the same markup.
271
 
template::[literalblock]
272
 
 
273
 
[verseparagraph]
274
 
template::[verseblock]
275
 
 
276
 
# Delimited blocks.
277
 
[literalblock]
278
 
<formalpara{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><title>{title}</title><para>
279
 
{title#}<literallayout class="monospaced">
280
 
{title%}<literallayout{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"} class="monospaced">
281
 
|
282
 
</literallayout>
283
 
{title#}</para></formalpara>
284
 
 
285
 
[listingblock]
286
 
<formalpara{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><title>{title}</title><para>
287
 
{title#}<screen>
288
 
{title%}<screen{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
289
 
|
290
 
</screen>
291
 
{title#}</para></formalpara>
292
 
 
293
 
[sidebarblock]
294
 
<sidebar{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
295
 
<title>{title}</title>
296
 
|
297
 
</sidebar>
298
 
 
299
 
[abstractblock]
300
 
<abstract{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
301
 
<title>{title}</title>
302
 
|
303
 
</abstract>
304
 
 
305
 
[quoteblock]
306
 
<blockquote{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
307
 
<title>{title}</title>
308
 
# Include attribution only if either {attribution} or {citetitle} is defined.
309
 
{attribution#}<attribution>
310
 
{attribution%}{citetitle#}<attribution>
311
 
{attribution}
312
 
<citetitle>{citetitle}</citetitle>
313
 
{attribution#}</attribution>
314
 
{attribution%}{citetitle#}</attribution>
315
 
|
316
 
</blockquote>
317
 
 
318
 
[verseblock]
319
 
<blockquote{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
320
 
<title>{title}</title>
321
 
# Include attribution only if either {attribution} or {citetitle} is defined.
322
 
{attribution#}<attribution>
323
 
{attribution%}{citetitle#}<attribution>
324
 
{attribution}
325
 
<citetitle>{citetitle}</citetitle>
326
 
{attribution#}</attribution>
327
 
{attribution%}{citetitle#}</attribution>
328
 
<literallayout>
329
 
|
330
 
</literallayout>
331
 
</blockquote>
332
 
 
333
 
[exampleblock]
334
 
<{title?example}{title!informalexample}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
335
 
# DocBook XSL Stylesheets custom processing instructions.
336
 
<?dbfo keep-together="{breakable-option#auto}"?>
337
 
<?dbfo keep-together="{unbreakable-option#always}"?>
338
 
<title>{title}</title>
339
 
|
340
 
</{title?example}{title!informalexample}>
341
 
 
342
 
[admonitionblock]
343
 
<{name}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
344
 
<title>{title}</title>
345
 
|
346
 
</{name}>
347
 
 
348
 
# Tables.
349
 
[tabletags-default]
350
 
colspec=<colspec colname="col_{colnumber}" colwidth="{width!{colpcwidth}*}{width?{colabswidth}{pageunits}}"/>
351
 
bodyrow=<row>|</row>
352
 
headdata=<entry align="{halign}" valign="{valign}"{colspan@1:: namest="col_{colstart}" nameend="col_{colend}"}{morerows@0:: morerows="{morerows}"}>|</entry>
353
 
bodydata=<entry align="{halign}" valign="{valign}"{colspan@1:: namest="col_{colstart}" nameend="col_{colend}"}{morerows@0:: morerows="{morerows}"}>|</entry>
354
 
paragraph=<simpara>|</simpara>
355
 
 
356
 
[tabletags-emphasis]
357
 
paragraph=<simpara><emphasis>|</emphasis></simpara>
358
 
 
359
 
[tabletags-header]
360
 
paragraph=<simpara><emphasis role="strong">|</emphasis></simpara>
361
 
 
362
 
[tabletags-strong]
363
 
paragraph=<simpara><emphasis role="strong">|</emphasis></simpara>
364
 
 
365
 
[tabletags-monospaced]
366
 
paragraph=<simpara><literal>|</literal></simpara>
367
 
 
368
 
[tabletags-verse]
369
 
bodydata=<entry align="{halign}" valign="{valign}"{colspan@1:: namest="col_{colstart}" nameend="col_{colend}"}{morerows@0:: morerows="{morerows}"}><literallayout>|</literallayout></entry>
370
 
paragraph=
371
 
 
372
 
[tabletags-literal]
373
 
bodydata=<entry align="{halign}" valign="{valign}"{colspan@1:: namest="col_{colstart}" nameend="col_{colend}"}{morerows@0:: morerows="{morerows}"}><literallayout class="monospaced">|</literallayout></entry>
374
 
paragraph=
375
 
 
376
 
[tabletags-asciidoc]
377
 
paragraph=
378
 
 
379
 
[table]
380
 
<{title?table}{title!informaltable}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}{pgwide-option? pgwide="1"}
381
 
frame="{frame=all}"
382
 
{grid%rowsep="1" colsep="1"}
383
 
rowsep="{grid@none|cols:0:1}" colsep="{grid@none|rows:0:1}"
384
 
>
385
 
<title>{title}</title>
386
 
# DocBook XSL Stylesheets custom processing instructions.
387
 
<?dbhtml table-width="{width}"?>
388
 
<?dbfo table-width="{width}"?>
389
 
<?dbfo keep-together="{breakable-option#auto}"?>
390
 
<?dbfo keep-together="{unbreakable-option#always}"?>
391
 
<tgroup cols="{colcount}">
392
 
{colspecs}
393
 
{headrows#}<thead>
394
 
{headrows}
395
 
{headrows#}</thead>
396
 
{footrows#}<tfoot>
397
 
{footrows}
398
 
{footrows#}</tfoot>
399
 
<tbody>
400
 
{bodyrows}
401
 
</tbody>
402
 
</tgroup>
403
 
</{title?table}{title!informaltable}>
404
 
 
405
 
#--------------------------------------------------------------------
406
 
# Deprecated old table definitions.
407
 
#
408
 
 
409
 
[old_tabledef-default]
410
 
template=old_table
411
 
colspec=<colspec colwidth="{colwidth}{pageunits}" align="{colalign}"/>
412
 
bodyrow=<row>|</row>
413
 
bodydata=<entry>|</entry>
414
 
 
415
 
[old_table]
416
 
<{title?table}{title!informaltable}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"} pgwide="0"
417
 
frame="{frame=topbot}"
418
 
{grid%rowsep="0" colsep="0"}
419
 
rowsep="{grid@none|cols:0:1}" colsep="{grid@none|rows:0:1}"
420
 
>
421
 
<title>{title}</title>
422
 
<tgroup cols="{cols}">
423
 
{colspecs}
424
 
{headrows#}<thead>
425
 
{headrows}
426
 
{headrows#}</thead>
427
 
{footrows#}<tfoot>
428
 
{footrows}
429
 
{footrows#}</tfoot>
430
 
<tbody>
431
 
{bodyrows}
432
 
</tbody>
433
 
</tgroup>
434
 
</{title?table}{title!informaltable}>
435
 
 
436
 
# End of deprecated old table definitions.
437
 
#--------------------------------------------------------------------
438
 
 
439
 
# Special sections.
440
 
[preface]
441
 
<preface{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
442
 
<title>{title}</title>
443
 
|
444
 
</preface>
445
 
 
446
 
[index]
447
 
<index{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
448
 
<title>{title}</title>
449
 
|
450
 
</index>
451
 
 
452
 
[bibliography]
453
 
<bibliography{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
454
 
<title>{title}</title>
455
 
|
456
 
</bibliography>
457
 
 
458
 
[glossary]
459
 
<glossary{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
460
 
<title>{title}</title>
461
 
|
462
 
</glossary>
463
 
 
464
 
[appendix]
465
 
<appendix{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
466
 
<title>{title}</title>
467
 
|
468
 
</appendix>
469
 
 
470
 
[floatingtitle]
471
 
<bridgehead{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"} renderas="sect{level}">{title}</bridgehead>
472
 
 
473
 
 
474
 
[header-declarations]
475
 
<?xml version="1.0" encoding="{encoding}"?>
476
 
<!DOCTYPE {doctype-article?article}{doctype-book?book}{doctype-manpage?refentry} PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
477
 
{toc#}<?asciidoc-toc?>
478
 
{numbered#}<?asciidoc-numbered?>
479
 
 
480
 
[docinfo]
481
 
    <title>{doctitle}</title>
482
 
    <date>{revdate}</date>
483
 
# To ensure valid articleinfo/bookinfo when there is no AsciiDoc header.
484
 
    {doctitle%}{revdate%}<date>{docdate}</date>
485
 
    {authored#}<author>
486
 
        <firstname>{firstname}</firstname>
487
 
        <othername>{middlename}</othername>
488
 
        <surname>{lastname}</surname>
489
 
        <affiliation><orgname>{orgname}</orgname></affiliation>
490
 
        <email>{email}</email>
491
 
    {authored#}</author>
492
 
    <authorinitials>{authorinitials}</authorinitials>
493
 
<revhistory><revision>{revnumber?<revnumber>{revnumber}</revnumber>}<date>{revdate}</date>{authorinitials?<authorinitials>{authorinitials}</authorinitials>}{revremark?<revremark>{revremark}</revremark>}</revision></revhistory>
494
 
# Include file named like source document with -docinfo.xml suffix
495
 
# if it exists and if the docinfo attribute is defined.
496
 
# include it as the document history.
497
 
{docinfo#}{include:{docdir}/{docname}-docinfo.xml}
498
 
# DEPRECTED: Use docinfo.
499
 
{revisionhistory#}{include:{docdir}/{docname}-revhistory.xml}
500
 
# DEPRECTED: Use corpname in preference to companyname.
501
 
    <corpname>{companyname}</corpname>
502
 
    <corpname>{corpname}</corpname>
503
 
 
504
 
#-------------------------
505
 
# article document type
506
 
#-------------------------
507
 
ifdef::doctype-article[]
508
 
 
509
 
[header]
510
 
template::[header-declarations]
511
 
 
512
 
<article lang="{lang=en}">
513
 
<articleinfo>
514
 
template::[docinfo]
515
 
</articleinfo>
516
 
 
517
 
[footer]
518
 
</article>
519
 
 
520
 
[preamble]
521
 
# Untitled elements between header and first section title.
522
 
|
523
 
 
524
 
[abstract]
525
 
<abstract{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
526
 
|
527
 
</abstract>
528
 
 
529
 
[sect1]
530
 
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
531
 
<title>{title}</title>
532
 
|
533
 
</section>
534
 
 
535
 
[sect2]
536
 
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
537
 
<title>{title}</title>
538
 
|
539
 
</section>
540
 
 
541
 
[sect3]
542
 
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
543
 
<title>{title}</title>
544
 
|
545
 
</section>
546
 
 
547
 
[sect4]
548
 
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
549
 
<title>{title}</title>
550
 
|
551
 
</section>
552
 
 
553
 
endif::doctype-article[]
554
 
 
555
 
#-------------------------
556
 
# manpage document type
557
 
#-------------------------
558
 
ifdef::doctype-manpage[]
559
 
 
560
 
[replacements]
561
 
# The roff format does not substitute special characters so just print them as
562
 
# text.
563
 
\(C\)=(C)
564
 
\(TM\)=(TM)
565
 
 
566
 
[header]
567
 
template::[header-declarations]
568
 
<refentry lang="{lang=en}">
569
 
<refmeta>
570
 
<refentrytitle>{mantitle}</refentrytitle>
571
 
<manvolnum>{manvolnum}</manvolnum>
572
 
# Default source and manual to suppress DocBook XSL warnings.
573
 
<refmiscinfo class="source">{mansource=&nbsp;}</refmiscinfo>
574
 
<refmiscinfo class="manual">{manmanual=&nbsp;}</refmiscinfo>
575
 
<refmiscinfo class="version">{manversion={revnumber}}</refmiscinfo>
576
 
</refmeta>
577
 
<refnamediv>
578
 
    <refname>{manname1}</refname>
579
 
    <refname>{manname2}</refname>
580
 
    <refname>{manname3}</refname>
581
 
    <refname>{manname4}</refname>
582
 
    <refname>{manname5}</refname>
583
 
    <refname>{manname6}</refname>
584
 
    <refname>{manname7}</refname>
585
 
    <refname>{manname8}</refname>
586
 
    <refname>{manname9}</refname>
587
 
    <refpurpose>{manpurpose}</refpurpose>
588
 
</refnamediv>
589
 
 
590
 
[footer]
591
 
</refentry>
592
 
 
593
 
# Section macros
594
 
[synopsis]
595
 
<refsynopsisdiv{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
596
 
|
597
 
</refsynopsisdiv>
598
 
 
599
 
[sect1]
600
 
<refsect1{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
601
 
<title>{title}</title>
602
 
|
603
 
</refsect1>
604
 
 
605
 
[sect2]
606
 
<refsect2{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
607
 
<title>{title}</title>
608
 
|
609
 
</refsect2>
610
 
 
611
 
[sect3]
612
 
<refsect3{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
613
 
<title>{title}</title>
614
 
|
615
 
</refsect3>
616
 
 
617
 
endif::doctype-manpage[]
618
 
 
619
 
#-------------------------
620
 
# book document type
621
 
#-------------------------
622
 
ifdef::doctype-book[]
623
 
 
624
 
[header]
625
 
template::[header-declarations]
626
 
 
627
 
<book lang="{lang=en}">
628
 
<bookinfo>
629
 
template::[docinfo]
630
 
</bookinfo>
631
 
 
632
 
[footer]
633
 
</book>
634
 
 
635
 
[preamble]
636
 
# Preamble is not allowed in DocBook book so wrap it in a preface.
637
 
<preface{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
638
 
<title></title>
639
 
|
640
 
</preface>
641
 
 
642
 
[dedication]
643
 
<dedication{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
644
 
|
645
 
</dedication>
646
 
 
647
 
[colophon]
648
 
<colophon{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
649
 
|
650
 
</colophon>
651
 
 
652
 
[sect0]
653
 
<part{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
654
 
<title>{title}</title>
655
 
|
656
 
</part>
657
 
 
658
 
[sect1]
659
 
<chapter{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
660
 
<title>{title}</title>
661
 
|
662
 
</chapter>
663
 
 
664
 
[sect2]
665
 
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
666
 
<title>{title}</title>
667
 
|
668
 
</section>
669
 
 
670
 
[sect3]
671
 
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
672
 
<title>{title}</title>
673
 
|
674
 
</section>
675
 
 
676
 
[sect4]
677
 
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
678
 
<title>{title}</title>
679
 
|
680
 
</section>
681
 
 
682
 
endif::doctype-book[]
683
 
 
684
 
ifdef::sgml[]
685
 
#
686
 
# Optional DocBook SGML.
687
 
#
688
 
# Most of the differences between DocBook XML and DocBook SGML boils
689
 
# down to the empty element syntax: SGML does not like the XML empty
690
 
# element <.../> syntax, use <...> instead.
691
 
#
692
 
[miscellaneous]
693
 
outfilesuffix=.sgml
694
 
 
695
 
[header-declarations]
696
 
<!DOCTYPE {doctype-article?article}{doctype-book?book}{doctype-manpage?refentry} PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
697
 
 
698
 
[tabledef-default]
699
 
colspec=<colspec colwidth="{colabswidth}{pageunits}" align="{colalign}">
700
 
 
701
 
[image-inlinemacro]
702
 
<inlinemediaobject>
703
 
  <imageobject>
704
 
  <imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? width="{width}"}{height? depth="{height}"}>
705
 
  </imageobject>
706
 
  <textobject><phrase>{alt={target}}</phrase></textobject>
707
 
</inlinemediaobject>
708
 
 
709
 
[image-blockmacro]
710
 
<figure><title>{title}</title>
711
 
{title%}<informalfigure>
712
 
<mediaobject>
713
 
  <imageobject>
714
 
  <imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? width="{width}"}{height? depth="{height}"}>
715
 
  </imageobject>
716
 
  <textobject><phrase>{alt={target}}</phrase></textobject>
717
 
</mediaobject>
718
 
{title#}</figure>
719
 
{title%}</informalfigure>
720
 
 
721
 
# Inline macros
722
 
[xref-inlinemacro]
723
 
<link linkend="{target}">{0}</link>
724
 
{2%}<xref linkend="{target}">
725
 
[xref2-inlinemacro]
726
 
# <<id,text>>
727
 
<link linkend="{1}">{2}</link>
728
 
{2%}<xref linkend="{1}">
729
 
[anchor-inlinemacro]
730
 
<anchor id="{target}" xreflabel="{0=[{target}]}">
731
 
[anchor2-inlinemacro]
732
 
# [[id,text]]
733
 
<anchor id="{1}" xreflabel="{2=[{1}]}">
734
 
 
735
 
endif::sgml[]