192 |
- |
1 |
#
|
|
|
2 |
# html5.conf
|
|
|
3 |
#
|
|
|
4 |
# Asciidoc configuration file.
|
|
|
5 |
# html5 backend.
|
|
|
6 |
#
|
|
|
7 |
|
|
|
8 |
[miscellaneous]
|
|
|
9 |
outfilesuffix=.html
|
|
|
10 |
|
|
|
11 |
[attributes]
|
|
|
12 |
basebackend=html
|
|
|
13 |
basebackend-html=
|
|
|
14 |
basebackend-html5=
|
|
|
15 |
|
|
|
16 |
[replacements2]
|
|
|
17 |
# Line break.
|
|
|
18 |
(?m)^(.*)\s\+$=\1<br>
|
|
|
19 |
|
|
|
20 |
[replacements]
|
|
|
21 |
ifdef::asciidoc7compatible[]
|
|
|
22 |
# Superscripts.
|
|
|
23 |
\^(.+?)\^=<sup>\1</sup>
|
|
|
24 |
# Subscripts.
|
|
|
25 |
~(.+?)~=<sub>\1</sub>
|
|
|
26 |
endif::asciidoc7compatible[]
|
|
|
27 |
|
|
|
28 |
[ruler-blockmacro]
|
|
|
29 |
<hr>
|
|
|
30 |
|
|
|
31 |
[pagebreak-blockmacro]
|
|
|
32 |
<div style="page-break-after:always"></div>
|
|
|
33 |
|
|
|
34 |
[blockdef-pass]
|
|
|
35 |
asciimath-style=template="asciimathblock",subs=()
|
|
|
36 |
latexmath-style=template="latexmathblock",subs=(),posattrs=(),filter="unwraplatex.py"
|
|
|
37 |
|
|
|
38 |
[macros]
|
|
|
39 |
^(?P<name>audio|video)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=#
|
|
|
40 |
# math macros.
|
|
|
41 |
# Special characters are escaped in HTML math markup.
|
|
|
42 |
(?su)[\\]?(?P<name>asciimath):(?P<subslist>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[specialcharacters]
|
|
|
43 |
^(?P<name>asciimath)::(?P<subslist>\S*?)(\[(?P<passtext>.*?)\])$=#[specialcharacters]
|
|
|
44 |
(?su)[\\]?(?P<name>latexmath):(?P<subslist>\S*?)\[(?:\$\s*)?(?P<passtext>.*?)(?:\s*\$)?(?<!\\)\]=[specialcharacters]
|
|
|
45 |
^(?P<name>latexmath)::(?P<subslist>\S*?)(\[(?:\\\[\s*)?(?P<passtext>.*?)(?:\s*\\\])?\])$=#[specialcharacters]
|
|
|
46 |
|
|
|
47 |
[asciimath-inlinemacro]
|
|
|
48 |
`{passtext}`
|
|
|
49 |
|
|
|
50 |
[asciimath-blockmacro]
|
|
|
51 |
<div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
|
|
52 |
<div class="content">
|
|
|
53 |
<div class="title">{title}</div>
|
|
|
54 |
`{passtext}`
|
|
|
55 |
</div></div>
|
|
|
56 |
|
|
|
57 |
[asciimathblock]
|
|
|
58 |
<div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
|
|
59 |
<div class="content">
|
|
|
60 |
<div class="title">{title}</div>
|
|
|
61 |
`|`
|
|
|
62 |
</div></div>
|
|
|
63 |
|
|
|
64 |
[latexmath-inlinemacro]
|
|
|
65 |
${passtext}$
|
|
|
66 |
|
|
|
67 |
[latexmath-blockmacro]
|
|
|
68 |
<div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
|
|
69 |
<div class="content">
|
|
|
70 |
<div class="title">{title}</div>
|
|
|
71 |
{backslash}[{passtext}{backslash}]
|
|
|
72 |
</div></div>
|
|
|
73 |
|
|
|
74 |
[latexmathblock]
|
|
|
75 |
<div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
|
|
76 |
<div class="content">
|
|
|
77 |
<div class="title">{title}</div>
|
|
|
78 |
\[|\]
|
|
|
79 |
</div></div>
|
|
|
80 |
|
|
|
81 |
[image-inlinemacro]
|
|
|
82 |
<span class="image{role? {role}}">
|
|
|
83 |
<a class="image" href="{link}">
|
|
|
84 |
{data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}>
|
|
|
85 |
{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}
|
|
|
86 |
{data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print('src=\x22data:' + mimetypes.guess_type(r'{target}')[0] + ';base64,'); base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
|
|
|
87 |
{link#}</a>
|
|
|
88 |
</span>
|
|
|
89 |
|
|
|
90 |
[image-blockmacro]
|
|
|
91 |
<div class="imageblock{style? {style}}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}{align? style="text-align:{align};"}{float? style="float:{float};"}>
|
|
|
92 |
<div class="content">
|
|
|
93 |
<a class="image" href="{link}">
|
|
|
94 |
{data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}>
|
|
|
95 |
{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}
|
|
|
96 |
{data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print('src=\x22data:' + mimetypes.guess_type(r'{target}')[0] + ';base64,'); base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
|
|
|
97 |
{link#}</a>
|
|
|
98 |
</div>
|
|
|
99 |
<div class="title">{caption={figure-caption} {counter:figure-number}. }{title}</div>
|
|
|
100 |
</div>
|
|
|
101 |
|
|
|
102 |
[audio-blockmacro]
|
|
|
103 |
<div class="audioblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
|
|
104 |
<div class="title">{caption=}{title}</div>
|
|
|
105 |
<div class="content">
|
|
|
106 |
<audio src="{imagesdir=}{imagesdir?/}{target}"{autoplay-option? autoplay}{nocontrols-option! controls}{loop-option? loop}>
|
|
|
107 |
Your browser does not support the audio tag.
|
|
|
108 |
</audio>
|
|
|
109 |
</div></div>
|
|
|
110 |
|
|
|
111 |
[video-blockmacro]
|
|
|
112 |
<div class="videoblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
|
|
113 |
<div class="title">{caption=}{title}</div>
|
|
|
114 |
<div class="content">
|
|
|
115 |
<video src="{imagesdir=}{imagesdir?/}{target}"{width? width="{width}"}{height? height="{height}"}{poster? poster="{poster}"}{autoplay-option? autoplay}{nocontrols-option! controls}{loop-option? loop}>
|
|
|
116 |
Your browser does not support the video tag.
|
|
|
117 |
</video>
|
|
|
118 |
</div></div>
|
|
|
119 |
|
|
|
120 |
[unfloat-blockmacro]
|
|
|
121 |
<div style="clear:both;"></div>
|
|
|
122 |
|
|
|
123 |
[toc-blockmacro]
|
|
|
124 |
template::[toc]
|
|
|
125 |
|
|
|
126 |
[indexterm-inlinemacro]
|
|
|
127 |
# Index term.
|
|
|
128 |
{empty}
|
|
|
129 |
|
|
|
130 |
[indexterm2-inlinemacro]
|
|
|
131 |
# Index term.
|
|
|
132 |
# Single entry index term that is visible in the primary text flow.
|
|
|
133 |
{1}
|
|
|
134 |
|
|
|
135 |
[footnote-inlinemacro]
|
|
|
136 |
# footnote:[<text>].
|
|
|
137 |
<span class="footnote"><br>[{0}]<br></span>
|
|
|
138 |
|
|
|
139 |
[footnoteref-inlinemacro]
|
|
|
140 |
# footnoteref:[<id>], create reference to footnote.
|
|
|
141 |
{2%}<span class="footnoteref"><br><a href="#_footnote_{1}">[{1}]</a><br></span>
|
|
|
142 |
# footnoteref:[<id>,<text>], create footnote with ID.
|
|
|
143 |
{2#}<span class="footnote" id="_footnote_{1}"><br>[{2}]<br></span>
|
|
|
144 |
|
|
|
145 |
[callout-inlinemacro]
|
|
|
146 |
ifndef::icons[]
|
|
|
147 |
<b><{index}></b>
|
|
|
148 |
endif::icons[]
|
|
|
149 |
ifdef::icons[]
|
|
|
150 |
ifndef::data-uri[]
|
|
|
151 |
<img src="{icon={iconsdir}/callouts/{index}.png}" alt="{index}">
|
|
|
152 |
endif::data-uri[]
|
|
|
153 |
ifdef::data-uri[]
|
|
|
154 |
<img alt="{index}" src="data:image/png;base64,
|
|
|
155 |
{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/callouts/{index}.png}")}"}">
|
|
|
156 |
endif::data-uri[]
|
|
|
157 |
endif::icons[]
|
|
|
158 |
|
|
|
159 |
# Comment line macros.
|
|
|
160 |
[comment-inlinemacro]
|
|
|
161 |
{showcomments#}<br><span class="comment">{passtext}</span><br>
|
|
|
162 |
|
|
|
163 |
[comment-blockmacro]
|
|
|
164 |
{showcomments#}<p><span class="comment">{passtext}</span></p>
|
|
|
165 |
|
|
|
166 |
[literal-inlinemacro]
|
|
|
167 |
# Inline literal.
|
|
|
168 |
<span class="monospaced">{passtext}</span>
|
|
|
169 |
|
|
|
170 |
# List tags.
|
|
|
171 |
[listtags-bulleted]
|
|
|
172 |
list=<div class="ulist{style? {style}}{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ul>|</ul></div>
|
|
|
173 |
item=<li>|</li>
|
|
|
174 |
text=<p>|</p>
|
|
|
175 |
|
|
|
176 |
[listtags-numbered]
|
|
|
177 |
# The start attribute is not valid XHTML 1.1 but all browsers support it.
|
|
|
178 |
list=<div class="olist{style? {style}}{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol class="{style}"{start? start="{start}"}>|</ol></div>
|
|
|
179 |
item=<li>|</li>
|
|
|
180 |
text=<p>|</p>
|
|
|
181 |
|
|
|
182 |
[listtags-labeled]
|
|
|
183 |
list=<div class="dlist{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div>
|
|
|
184 |
entry=
|
|
|
185 |
label=
|
|
|
186 |
term=<dt class="hdlist1{strong-option? strong}">|</dt>
|
|
|
187 |
item=<dd>|</dd>
|
|
|
188 |
text=<p>|</p>
|
|
|
189 |
|
|
|
190 |
[listtags-horizontal]
|
|
|
191 |
list=<div class="hdlist{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<table>{labelwidth?<col width="{labelwidth}%">}{itemwidth?<col width="{itemwidth}%">}|</table></div>
|
|
|
192 |
label=<td class="hdlist1{strong-option? strong}">|</td>
|
|
|
193 |
term=|<br>
|
|
|
194 |
entry=<tr>|</tr>
|
|
|
195 |
item=<td class="hdlist2">|</td>
|
|
|
196 |
text=<p style="margin-top: 0;">|</p>
|
|
|
197 |
|
|
|
198 |
[listtags-qanda]
|
|
|
199 |
list=<div class="qlist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div>
|
|
|
200 |
entry=<li>|</li>
|
|
|
201 |
label=
|
|
|
202 |
term=<p><em>|</em></p>
|
|
|
203 |
item=
|
|
|
204 |
text=<p>|</p>
|
|
|
205 |
|
|
|
206 |
[listtags-callout]
|
|
|
207 |
ifndef::icons[]
|
|
|
208 |
list=<div class="colist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div>
|
|
|
209 |
item=<li>|</li>
|
|
|
210 |
text=<p>|</p>
|
|
|
211 |
endif::icons[]
|
|
|
212 |
ifdef::icons[]
|
|
|
213 |
list=<div class="colist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<table>|</table></div>
|
|
|
214 |
ifndef::data-uri[]
|
|
|
215 |
item=<tr><td><img src="{iconsdir}/callouts/{listindex}.png" alt="{listindex}"></td><td>|</td></tr>
|
|
|
216 |
endif::data-uri[]
|
|
|
217 |
ifdef::data-uri[]
|
|
|
218 |
item=<tr><td><img alt="{listindex}" src="data:image/png;base64, {sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/callouts/{listindex}.png}")}"}"></td><td>|</td></tr>
|
|
|
219 |
endif::data-uri[]
|
|
|
220 |
text=|
|
|
|
221 |
endif::icons[]
|
|
|
222 |
|
|
|
223 |
[listtags-glossary]
|
|
|
224 |
list=<div class="dlist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div>
|
|
|
225 |
label=
|
|
|
226 |
entry=
|
|
|
227 |
term=<dt>|</dt>
|
|
|
228 |
item=<dd>|</dd>
|
|
|
229 |
text=<p>|</p>
|
|
|
230 |
|
|
|
231 |
[listtags-bibliography]
|
|
|
232 |
list=<div class="ulist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ul>|</ul></div>
|
|
|
233 |
item=<li>|</li>
|
|
|
234 |
text=<p>|</p>
|
|
|
235 |
|
|
|
236 |
[tags]
|
|
|
237 |
# Quoted text.
|
|
|
238 |
emphasis=<em>{1?<span class="{1}">}|{1?</span>}</em>
|
|
|
239 |
strong=<strong>{1?<span class="{1}">}|{1?</span>}</strong>
|
|
|
240 |
monospaced=<span class="monospaced{1? {1}}">|</span>
|
|
|
241 |
singlequoted={lsquo}{1?<span class="{1}">}|{1?</span>}{rsquo}
|
|
|
242 |
doublequoted={ldquo}{1?<span class="{1}">}|{1?</span>}{rdquo}
|
|
|
243 |
unquoted={1?<span class="{1}">}|{1?</span>}
|
|
|
244 |
superscript=<sup>{1?<span class="{1}">}|{1?</span>}</sup>
|
|
|
245 |
subscript=<sub>{1?<span class="{1}">}|{1?</span>}</sub>
|
|
|
246 |
|
|
|
247 |
ifdef::deprecated-quotes[]
|
|
|
248 |
# Override with deprecated quote attributes.
|
|
|
249 |
emphasis={role?<span class="{role}">}<em{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</em>{role?</span>}
|
|
|
250 |
strong={role?<span class="{role}">}<strong{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</strong>{role?</span>}
|
|
|
251 |
monospaced=<span class="monospaced{role? {role}}"{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</span>
|
|
|
252 |
singlequoted={role?<span class="{role}">}{1,2,3?<span style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?">}{amp}#8216;|{amp}#8217;{1,2,3?</span>}{role?</span>}
|
|
|
253 |
doublequoted={role?<span class="{role}">}{1,2,3?<span style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?">}{amp}#8220;|{amp}#8221;{1,2,3?</span>}{role?</span>}
|
|
|
254 |
unquoted={role?<span class="{role}">}{1,2,3?<span style="{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}">}|{1,2,3?</span>}{role?</span>}
|
|
|
255 |
superscript={role?<span class="{role}">}<sup{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</sup>{role?</span>}
|
|
|
256 |
subscript={role?<span class="{role}">}<sub{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</sub>{role?</span>}
|
|
|
257 |
endif::deprecated-quotes[]
|
|
|
258 |
|
|
|
259 |
# Inline macros
|
|
|
260 |
[http-inlinemacro]
|
|
|
261 |
<a href="{name}:{target}">{0={name}:{target}}</a>
|
|
|
262 |
[https-inlinemacro]
|
|
|
263 |
<a href="{name}:{target}">{0={name}:{target}}</a>
|
|
|
264 |
[ftp-inlinemacro]
|
|
|
265 |
<a href="{name}:{target}">{0={name}:{target}}</a>
|
|
|
266 |
[file-inlinemacro]
|
|
|
267 |
<a href="{name}:{target}">{0={name}:{target}}</a>
|
|
|
268 |
[irc-inlinemacro]
|
|
|
269 |
<a href="{name}:{target}">{0={name}:{target}}</a>
|
|
|
270 |
[mailto-inlinemacro]
|
|
|
271 |
<a href="mailto:{target}">{0={target}}</a>
|
|
|
272 |
[link-inlinemacro]
|
|
|
273 |
<a href="{target}">{0={target}}</a>
|
|
|
274 |
[callto-inlinemacro]
|
|
|
275 |
<a href="{name}:{target}">{0={target}}</a>
|
|
|
276 |
# anchor:id[text]
|
|
|
277 |
[anchor-inlinemacro]
|
|
|
278 |
<a id="{target}"></a>
|
|
|
279 |
# [[id,text]]
|
|
|
280 |
[anchor2-inlinemacro]
|
|
|
281 |
<a id="{1}"></a>
|
|
|
282 |
# [[[id]]]
|
|
|
283 |
[anchor3-inlinemacro]
|
|
|
284 |
<a id="{1}"></a>[{1}]
|
|
|
285 |
# xref:id[text]
|
|
|
286 |
[xref-inlinemacro]
|
|
|
287 |
<a href="#{target}">{0=[{target}]}</a>
|
|
|
288 |
# <<id,text>>
|
|
|
289 |
[xref2-inlinemacro]
|
|
|
290 |
<a href="#{1}">{2=[{1}]}</a>
|
|
|
291 |
|
|
|
292 |
# Special word substitution.
|
|
|
293 |
[emphasizedwords]
|
|
|
294 |
<em>{words}</em>
|
|
|
295 |
[monospacedwords]
|
|
|
296 |
<span class="monospaced">{words}</span>
|
|
|
297 |
[strongwords]
|
|
|
298 |
<strong>{words}</strong>
|
|
|
299 |
|
|
|
300 |
# Paragraph substitution.
|
|
|
301 |
[paragraph]
|
|
|
302 |
<div class="paragraph{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<p>
|
|
|
303 |
|
|
|
|
304 |
</p></div>
|
|
|
305 |
|
|
|
306 |
[admonitionparagraph]
|
|
|
307 |
template::[admonitionblock]
|
|
|
308 |
|
|
|
309 |
# Delimited blocks.
|
|
|
310 |
[listingblock]
|
|
|
311 |
<div class="listingblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
|
|
312 |
<div class="title">{caption=}{title}</div>
|
|
|
313 |
<div class="content monospaced">
|
|
|
314 |
<pre>
|
|
|
315 |
|
|
|
|
316 |
</pre>
|
|
|
317 |
</div></div>
|
|
|
318 |
|
|
|
319 |
[literalblock]
|
|
|
320 |
<div class="literalblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
|
|
321 |
<div class="title">{title}</div>
|
|
|
322 |
<div class="content monospaced">
|
|
|
323 |
<pre>
|
|
|
324 |
|
|
|
|
325 |
</pre>
|
|
|
326 |
</div></div>
|
|
|
327 |
|
|
|
328 |
[sidebarblock]
|
|
|
329 |
<div class="sidebarblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
|
|
330 |
<div class="content">
|
|
|
331 |
<div class="title">{title}</div>
|
|
|
332 |
|
|
|
|
333 |
</div></div>
|
|
|
334 |
|
|
|
335 |
[openblock]
|
|
|
336 |
<div class="openblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
|
|
337 |
<div class="title">{title}</div>
|
|
|
338 |
<div class="content">
|
|
|
339 |
|
|
|
|
340 |
</div></div>
|
|
|
341 |
|
|
|
342 |
[partintroblock]
|
|
|
343 |
template::[openblock]
|
|
|
344 |
|
|
|
345 |
[abstractblock]
|
|
|
346 |
template::[quoteblock]
|
|
|
347 |
|
|
|
348 |
[quoteblock]
|
|
|
349 |
<div class="quoteblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
|
|
350 |
<div class="title">{title}</div>
|
|
|
351 |
<div class="content">
|
|
|
352 |
|
|
|
|
353 |
</div>
|
|
|
354 |
<div class="attribution">
|
|
|
355 |
<em>{citetitle}</em>{attribution?<br>}
|
|
|
356 |
— {attribution}
|
|
|
357 |
</div></div>
|
|
|
358 |
|
|
|
359 |
[verseblock]
|
|
|
360 |
<div class="verseblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
|
|
361 |
<div class="title">{title}</div>
|
|
|
362 |
<pre class="content">
|
|
|
363 |
|
|
|
|
364 |
</pre>
|
|
|
365 |
<div class="attribution">
|
|
|
366 |
<em>{citetitle}</em>{attribution?<br>}
|
|
|
367 |
— {attribution}
|
|
|
368 |
</div></div>
|
|
|
369 |
|
|
|
370 |
[exampleblock]
|
|
|
371 |
<div class="exampleblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
|
|
372 |
<div class="title">{caption={example-caption} {counter:example-number}. }{title}</div>
|
|
|
373 |
<div class="content">
|
|
|
374 |
|
|
|
|
375 |
</div></div>
|
|
|
376 |
|
|
|
377 |
[admonitionblock]
|
|
|
378 |
<div class="admonitionblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
|
|
379 |
<table><tr>
|
|
|
380 |
<td class="icon">
|
|
|
381 |
{data-uri%}{icons#}<img src="{icon={iconsdir}/{name}.png}" alt="{caption}">
|
|
|
382 |
{data-uri#}{icons#}<img alt="{caption}" src="data:image/png;base64,
|
|
|
383 |
{data-uri#}{icons#}{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/{name}.png}")}"}">
|
|
|
384 |
{icons%}<div class="title">{caption}</div>
|
|
|
385 |
</td>
|
|
|
386 |
<td class="content">
|
|
|
387 |
<div class="title">{title}</div>
|
|
|
388 |
|
|
|
|
389 |
</td>
|
|
|
390 |
</tr></table>
|
|
|
391 |
</div>
|
|
|
392 |
|
|
|
393 |
# Tables.
|
|
|
394 |
[tabletags-default]
|
|
|
395 |
colspec=<col{autowidth-option! style="width:{colpcwidth}%;"}>
|
|
|
396 |
bodyrow=<tr>|</tr>
|
|
|
397 |
headdata=<th class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }>|</th>
|
|
|
398 |
bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }>|</td>
|
|
|
399 |
paragraph=<p class="tableblock">|</p>
|
|
|
400 |
|
|
|
401 |
[tabletags-header]
|
|
|
402 |
paragraph=<p class="tableblock header">|</p>
|
|
|
403 |
|
|
|
404 |
[tabletags-emphasis]
|
|
|
405 |
paragraph=<p class="tableblock"><em>|</em></p>
|
|
|
406 |
|
|
|
407 |
[tabletags-strong]
|
|
|
408 |
paragraph=<p class="tableblock"><strong>|</strong></p>
|
|
|
409 |
|
|
|
410 |
[tabletags-monospaced]
|
|
|
411 |
paragraph=<p class="tableblock monospaced">|</p>
|
|
|
412 |
|
|
|
413 |
[tabletags-verse]
|
|
|
414 |
bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div class="verse">|</div></td>
|
|
|
415 |
paragraph=
|
|
|
416 |
|
|
|
417 |
[tabletags-literal]
|
|
|
418 |
bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div class="literal monospaced"><pre>|</pre></div></td>
|
|
|
419 |
paragraph=
|
|
|
420 |
|
|
|
421 |
[tabletags-asciidoc]
|
|
|
422 |
bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div>|</div></td>
|
|
|
423 |
paragraph=
|
|
|
424 |
|
|
|
425 |
[table]
|
|
|
426 |
<table class="tableblock frame-{frame=all} grid-{grid=all}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}
|
|
|
427 |
style="
|
|
|
428 |
margin-left:{align@left:0}{align@center|right:auto}; margin-right:{align@left|center:auto}{align@right:0};
|
|
|
429 |
float:{float};
|
|
|
430 |
{autowidth-option%}width:{tablepcwidth}%;
|
|
|
431 |
{autowidth-option#}{width#style=width:{tablepcwidth}%;}
|
|
|
432 |
">
|
|
|
433 |
<caption class="title">{caption={table-caption} {counter:table-number}. }{title}</caption>
|
|
|
434 |
{colspecs}
|
|
|
435 |
{headrows#}<thead>
|
|
|
436 |
{headrows}
|
|
|
437 |
{headrows#}</thead>
|
|
|
438 |
{footrows#}<tfoot>
|
|
|
439 |
{footrows}
|
|
|
440 |
{footrows#}</tfoot>
|
|
|
441 |
<tbody>
|
|
|
442 |
{bodyrows}
|
|
|
443 |
</tbody>
|
|
|
444 |
</table>
|
|
|
445 |
|
|
|
446 |
#--------------------------------------------------------------------
|
|
|
447 |
# Deprecated old table definitions.
|
|
|
448 |
#
|
|
|
449 |
|
|
|
450 |
[miscellaneous]
|
|
|
451 |
# Screen width in pixels.
|
|
|
452 |
pagewidth=800
|
|
|
453 |
pageunits=px
|
|
|
454 |
|
|
|
455 |
[old_tabledef-default]
|
|
|
456 |
template=old_table
|
|
|
457 |
colspec=<col style="width:{colwidth}{pageunits};" />
|
|
|
458 |
bodyrow=<tr>|</tr>
|
|
|
459 |
headdata=<th class="tableblock halign-{colalign=left}">|</th>
|
|
|
460 |
footdata=<td class="tableblock halign-{colalign=left}">|</td>
|
|
|
461 |
bodydata=<td class="tableblock halign-{colalign=left}">|</td>
|
|
|
462 |
|
|
|
463 |
[old_table]
|
|
|
464 |
<table class="tableblock frame-{frame=all} grid-{grid=all}"{id? id="{id}"}>
|
|
|
465 |
<caption class="title">{caption={table-caption}}{title}</caption>
|
|
|
466 |
{colspecs}
|
|
|
467 |
{headrows#}<thead>
|
|
|
468 |
{headrows}
|
|
|
469 |
{headrows#}</thead>
|
|
|
470 |
{footrows#}<tfoot>
|
|
|
471 |
{footrows}
|
|
|
472 |
{footrows#}</tfoot>
|
|
|
473 |
<tbody style="vertical-align:top;">
|
|
|
474 |
{bodyrows}
|
|
|
475 |
</tbody>
|
|
|
476 |
</table>
|
|
|
477 |
|
|
|
478 |
# End of deprecated old table definitions.
|
|
|
479 |
#--------------------------------------------------------------------
|
|
|
480 |
|
|
|
481 |
[floatingtitle]
|
|
|
482 |
<h{level@0:1}{level@1:2}{level@2:3}{level@3:4}{level@4:5}{id? id="{id}"} class="float">{title}</h{level@0:1}{level@1:2}{level@2:3}{level@3:4}{level@4:5}>
|
|
|
483 |
|
|
|
484 |
[preamble]
|
|
|
485 |
# Untitled elements between header and first section title.
|
|
|
486 |
<div id="preamble">
|
|
|
487 |
<div class="sectionbody">
|
|
|
488 |
|
|
|
|
489 |
</div>
|
|
|
490 |
</div>
|
|
|
491 |
|
|
|
492 |
# Document sections.
|
|
|
493 |
[sect0]
|
|
|
494 |
<h1{id? id="{id}"}>{title}</h1>
|
|
|
495 |
|
|
|
|
496 |
|
|
|
497 |
[sect1]
|
|
|
498 |
<div class="sect1{style? {style}}{role? {role}}">
|
|
|
499 |
<h2{id? id="{id}"}>{numbered?{sectnum} }{title}</h2>
|
|
|
500 |
<div class="sectionbody">
|
|
|
501 |
|
|
|
|
502 |
</div>
|
|
|
503 |
</div>
|
|
|
504 |
|
|
|
505 |
[sect2]
|
|
|
506 |
<div class="sect2{style? {style}}{role? {role}}">
|
|
|
507 |
<h3{id? id="{id}"}>{numbered?{sectnum} }{title}</h3>
|
|
|
508 |
|
|
|
|
509 |
</div>
|
|
|
510 |
|
|
|
511 |
[sect3]
|
|
|
512 |
<div class="sect3{style? {style}}{role? {role}}">
|
|
|
513 |
<h4{id? id="{id}"}>{numbered?{sectnum} }{title}</h4>
|
|
|
514 |
|
|
|
|
515 |
</div>
|
|
|
516 |
|
|
|
517 |
[sect4]
|
|
|
518 |
<div class="sect4{style? {style}}{role? {role}}">
|
|
|
519 |
<h5{id? id="{id}"}>{title}</h5>
|
|
|
520 |
|
|
|
|
521 |
</div>
|
|
|
522 |
|
|
|
523 |
[appendix]
|
|
|
524 |
<div class="sect1{style? {style}}{role? {role}}">
|
|
|
525 |
<h2{id? id="{id}"}>{numbered?{sectnum} }{appendix-caption} {counter:appendix-number:A}: {title}</h2>
|
|
|
526 |
<div class="sectionbody">
|
|
|
527 |
|
|
|
|
528 |
</div>
|
|
|
529 |
</div>
|
|
|
530 |
|
|
|
531 |
[toc]
|
|
|
532 |
<div id="toc">
|
|
|
533 |
<div id="toctitle">{toc-title}</div>
|
|
|
534 |
<noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
|
|
|
535 |
</div>
|
|
|
536 |
|
|
|
537 |
[header]
|
|
|
538 |
<!DOCTYPE html>
|
|
|
539 |
<html lang="{lang=en}">
|
|
|
540 |
<head>
|
|
|
541 |
<meta http-equiv="Content-Type" content="text/html; charset={encoding}">
|
|
|
542 |
<meta name="generator" content="AsciiDoc {asciidoc-version}">
|
|
|
543 |
<meta name="description" content="{description}">
|
|
|
544 |
<meta name="keywords" content="{keywords}">
|
|
|
545 |
<title>{title}</title>
|
|
|
546 |
{title%}<title>{doctitle=}</title>
|
|
|
547 |
ifdef::linkcss[]
|
|
|
548 |
<link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}.css" type="text/css">
|
|
|
549 |
ifeval::["{source-highlighter}"=="pygments"]
|
|
|
550 |
<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">
|
|
|
551 |
endif::[]
|
|
|
552 |
|
|
|
553 |
# DEPRECATED: 'pygments' attribute.
|
|
|
554 |
ifdef::pygments[<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">]
|
|
|
555 |
|
|
|
556 |
ifdef::toc2[<link rel="stylesheet" href="{stylesdir=.}/toc2.css" type="text/css" />]
|
|
|
557 |
<link rel="stylesheet" href="{stylesdir=.}/{stylesheet}" type="text/css">
|
|
|
558 |
endif::linkcss[]
|
|
|
559 |
ifndef::linkcss[]
|
|
|
560 |
<style type="text/css">
|
|
|
561 |
include1::{theme%}{stylesdir=./stylesheets}/asciidoc.css[]
|
|
|
562 |
include1::{themedir}/{theme}.css[]
|
|
|
563 |
ifeval::["{source-highlighter}"=="pygments"]
|
|
|
564 |
include1::{stylesdir=./stylesheets}/pygments.css[]
|
|
|
565 |
endif::[]
|
|
|
566 |
|
|
|
567 |
# DEPRECATED: 'pygments' attribute.
|
|
|
568 |
ifdef::pygments[]
|
|
|
569 |
include1::{stylesdir=./stylesheets}/pygments.css[]
|
|
|
570 |
endif::pygments[]
|
|
|
571 |
|
|
|
572 |
ifdef::toc2[]
|
|
|
573 |
include1::{stylesdir=./stylesheets}/toc2.css[]
|
|
|
574 |
endif::toc2[]
|
|
|
575 |
include1::{stylesheet}[]
|
|
|
576 |
</style>
|
|
|
577 |
endif::linkcss[]
|
|
|
578 |
ifndef::disable-javascript[]
|
|
|
579 |
ifdef::linkcss[]
|
|
|
580 |
<script type="text/javascript" src="{scriptsdir=.}/asciidoc.js"></script>
|
|
|
581 |
<script type="text/javascript" src="{scriptsdir=.}/{theme}.js"></script>
|
|
|
582 |
<script type="text/javascript">
|
|
|
583 |
#TODO: Escape not necessary in HTML5?
|
|
|
584 |
# Escape as CDATA to pass validators.
|
|
|
585 |
/*<![CDATA[*/
|
|
|
586 |
asciidoc.install({toc,toc2?{toclevels}});
|
|
|
587 |
/*]]>*/
|
|
|
588 |
</script>
|
|
|
589 |
endif::linkcss[]
|
|
|
590 |
ifndef::linkcss[]
|
|
|
591 |
<script type="text/javascript">
|
|
|
592 |
# Escape as CDATA to pass validators.
|
|
|
593 |
/*<![CDATA[*/
|
|
|
594 |
include1::{scriptsdir=./javascripts}/asciidoc.js[]
|
|
|
595 |
include1::{themedir}/{theme}.js[warnings=False]
|
|
|
596 |
asciidoc.install({toc,toc2?{toclevels}});
|
|
|
597 |
/*]]>*/
|
|
|
598 |
</script>
|
|
|
599 |
endif::linkcss[]
|
|
|
600 |
endif::disable-javascript[]
|
|
|
601 |
ifdef::asciimath[]
|
|
|
602 |
ifdef::linkcss[]
|
|
|
603 |
<script type="text/javascript" src="{scriptsdir=.}/ASCIIMathML.js"></script>
|
|
|
604 |
endif::linkcss[]
|
|
|
605 |
ifndef::linkcss[]
|
|
|
606 |
<script type="text/javascript">
|
|
|
607 |
# Escape as CDATA to pass validators.
|
|
|
608 |
/*<![CDATA[*/
|
|
|
609 |
include1::{scriptsdir=./javascripts}/ASCIIMathML.js[]
|
|
|
610 |
/*]]>*/
|
|
|
611 |
</script>
|
|
|
612 |
endif::linkcss[]
|
|
|
613 |
endif::asciimath[]
|
|
|
614 |
ifdef::latexmath[]
|
|
|
615 |
ifdef::linkcss[]
|
|
|
616 |
<script type="text/javascript" src="{scriptsdir=.}/LaTeXMathML.js"></script>
|
|
|
617 |
endif::linkcss[]
|
|
|
618 |
ifndef::linkcss[]
|
|
|
619 |
<script type="text/javascript">
|
|
|
620 |
# Escape as CDATA to pass validators.
|
|
|
621 |
/*<![CDATA[*/
|
|
|
622 |
include1::{scriptsdir=./javascripts}/LaTeXMathML.js[]
|
|
|
623 |
/*]]>*/
|
|
|
624 |
</script>
|
|
|
625 |
endif::linkcss[]
|
|
|
626 |
endif::latexmath[]
|
|
|
627 |
ifdef::mathjax[]
|
|
|
628 |
<script type="text/x-mathjax-config">
|
|
|
629 |
MathJax.Hub.Config({
|
|
|
630 |
extensions: ["tex2jax.js"],
|
|
|
631 |
jax: ["input/TeX", "output/HTML-CSS"],
|
|
|
632 |
tex2jax: {
|
|
|
633 |
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
|
|
|
634 |
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
|
|
|
635 |
processEscapes: true
|
|
|
636 |
},
|
|
|
637 |
"HTML-CSS": { availableFonts: ["TeX"] }
|
|
|
638 |
});
|
|
|
639 |
</script>
|
|
|
640 |
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>
|
|
|
641 |
endif::mathjax[]
|
|
|
642 |
{docinfo1,docinfo2#}{include:{docdir}/docinfo.html}
|
|
|
643 |
{docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.html}
|
|
|
644 |
template::[docinfo]
|
|
|
645 |
</head>
|
|
|
646 |
<body class="{doctype}"{max-width? style="max-width:{max-width}"}{css-signature? id="{css-signature}"}>
|
|
|
647 |
# Article, book header.
|
|
|
648 |
ifndef::doctype-manpage[]
|
|
|
649 |
<div id="header">
|
|
|
650 |
ifndef::notitle[<h1>{doctitle}</h1>]
|
|
|
651 |
ifdef::doctitle[]
|
|
|
652 |
<span id="author">{author}</span><br>
|
|
|
653 |
<span id="email" class="monospaced"><<a href="mailto:{email}">{email}</a>></span><br>
|
|
|
654 |
<span id="revnumber">version {revnumber}{revdate?,}</span>
|
|
|
655 |
<span id="revdate">{revdate}</span>
|
|
|
656 |
<br><span id="revremark">{revremark}</span>
|
|
|
657 |
endif::doctitle[]
|
|
|
658 |
{toc,toc2#}{toc-placement$auto:}{template:toc}
|
|
|
659 |
</div>
|
|
|
660 |
endif::doctype-manpage[]
|
|
|
661 |
# Man page header.
|
|
|
662 |
ifdef::doctype-manpage[]
|
|
|
663 |
<div id="header">
|
|
|
664 |
<h1>
|
|
|
665 |
{doctitle} Manual Page
|
|
|
666 |
</h1>
|
|
|
667 |
{toc,toc2#}{toc-placement$auto:}{template:toc}
|
|
|
668 |
<h2>{manname-title}</h2>
|
|
|
669 |
<div class="sectionbody">
|
|
|
670 |
<p>{manname} -
|
|
|
671 |
{manpurpose}
|
|
|
672 |
</p>
|
|
|
673 |
</div>
|
|
|
674 |
</div>
|
|
|
675 |
endif::doctype-manpage[]
|
|
|
676 |
<div id="content">
|
|
|
677 |
|
|
|
678 |
[footer]
|
|
|
679 |
</div>
|
|
|
680 |
{disable-javascript%<div id="footnotes"><hr></div>}
|
|
|
681 |
<div id="footer">
|
|
|
682 |
# Removing footer date and version if footer-style set to none
|
|
|
683 |
ifeval::["{footer-style=default}"!="none"]
|
|
|
684 |
<div id="footer-text">
|
|
|
685 |
template::[footer-text]
|
|
|
686 |
</div>
|
|
|
687 |
endif::[]
|
|
|
688 |
ifdef::badges[]
|
|
|
689 |
<div id="footer-badges">
|
|
|
690 |
ifndef::icons[]
|
|
|
691 |
Valid <a href="http://validator.w3.org/check?uri=referer">HTML5</a>
|
|
|
692 |
and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
|
|
|
693 |
endif::icons[]
|
|
|
694 |
ifdef::icons[]
|
|
|
695 |
<a href="http://validator.w3.org/check?uri=referer">
|
|
|
696 |
<img src="http://www.w3.org/html/logo/badge/html5-badge-h-solo.png"
|
|
|
697 |
width="30" alt="HTML5 Powered" title="HTML5 Powered">
|
|
|
698 |
</a>
|
|
|
699 |
<a href="http://jigsaw.w3.org/css-validator/check/referer">
|
|
|
700 |
<img style="border:0;width:88px;height:31px"
|
|
|
701 |
src="http://www.w3.org/Icons/valid-css"
|
|
|
702 |
alt="Valid CSS!">
|
|
|
703 |
</a>
|
|
|
704 |
endif::icons[]
|
|
|
705 |
</div>
|
|
|
706 |
endif::badges[]
|
|
|
707 |
</div>
|
|
|
708 |
</body>
|
|
|
709 |
</html>
|
|
|
710 |
|
|
|
711 |
[footer-date]
|
|
|
712 |
# Default footer date is document modification time
|
|
|
713 |
ifeval::["{footer-style=default}"!="revdate"]
|
|
|
714 |
{docdate} {doctime}
|
|
|
715 |
endif::[]
|
|
|
716 |
# If set to "revdate", it'll be set to the revision date
|
|
|
717 |
ifeval::["{footer-style=default}"=="revdate"]
|
|
|
718 |
{revdate}
|
|
|
719 |
endif::[]
|
|
|
720 |
|
|
|
721 |
ifdef::doctype-manpage[]
|
|
|
722 |
[synopsis]
|
|
|
723 |
template::[sect1]
|
|
|
724 |
endif::doctype-manpage[]
|
|
|
725 |
|