improve index generation and pagerefs
[nobug] / doc / latex.conf
1 #
2 # latex.conf
3 #
4 # Asciidoc configuration file.
5 # latex backend, generates LaTeX conformant markup.
6 #
7 # Originally created by Benjamin Klum, later modified by Geoff Eddy.
8
9 [titles]
10 subs=quotes,replacements,attributes,macros,specialcharacters,replacements2
11
12
13 # The listing block uses a LaTeX verbatim environment where special characters don't need to be escaped.
14 # Hence only "callouts" substitution should be applied.
15 [blockdef-listing]
16 source-style=template="listingblock",subs=("callouts",)
17
18
19 [attributes]
20 basebackend=latex
21 basebackend-latex=
22
23 latex-table-rowlimit=20
24 latex-use-bibliography-environment!
25 latex-indent-paragraphs!
26 latex-recognize-escaped-unicode!
27 latex-use-custom-list-items!
28 latex-use-colored-tables!
29 latex-use-running-title-headings!
30 latex-use-colored-sidebar-blocks!
31 newline=\n
32
33 [miscellaneous]
34 subsnormal=quotes,specialwords,replacements,attributes,macros,specialcharacters,replacements2
35 #subsnormal=quotes,specialwords,replacements,attributes,macros,passthroughs,specialcharacters,replacements2
36 subsverbatim=callouts,specialcharacters,replacements2
37 outfilesuffix=.tex
38 # Screen width in pixels.
39 pagewidth=418
40 pageunits=pt
41
42
43 [specialcharacters]
44 {=\{{}
45 }=\}{}
46 \=\textbackslash{}
47 $=\${}
48 <=\textless{}
49 >=\textgreater{}
50 &=\&{}
51 _=\_{}
52 %=\%{}
53 \#=\#{}
54 ^=\textasciicircum{}
55 ~=\textasciitilde{}
56 |=\textbar{}
57 "=\textquotedbl{}
58
59
60 [macros]
61 # I needed to rewrite some regular expressions because '<' and '>' have not been escaped to '&lt;' and '&gt;'
62
63 # Callout
64 [\\]?<(?P<index>\d+)>=callout
65
66 # Link: <<id,text>>
67 (?su)[\\]?<<(?P<attrlist>[\w"].*?)>>=xref2
68
69 [replacements]
70
71 # Line break.
72 (?m)^(.*)\s\+$=\1 !..backslash..!newline!..braceleft..!!..braceright..!
73
74 # -- Spaced em dashes (entity reference &mdash;)
75 (^|[^-\\])--($|[^-])=\1--\2
76
77
78 # (C) Copyright (entity reference &copy;)
79 (?<!\\)\(C\)=!..backslash..!textcopyright!..braceleft..!!..braceright..!
80 \\\(C\)=(C)
81
82 # (R) registered trade mark (entity reference &reg;
83 (?<!\\)\(R\)=!..backslash..!textregistered!..braceleft..!!..braceright..!
84 \\\(R\)=(R)
85
86 # (TM) Trademark (entity reference &trade;)
87 (?<!\\)\(TM\)=!..backslash..!texttrademark!..braceleft..!!..braceright..!
88 \\\(TM\)=(TM)
89
90 # ... Ellipsis (entity reference &hellip;)
91 (?<!\\)\.\.\.=!..backslash..!dots!..braceleft..!!..braceright..!
92 \\\.\.\.=...
93
94 # Recognize escaped unicode characters
95 # FIXME: these should be uncommented, but then there are encoding
96 # problems.
97
98 #&#([0-9]*);=!..backslash..!unichar!..braceleft..!\1!..braceright..!
99 #&#x([0123456789abcdefABCDEF]*);=!..backslash..!unichar!..braceleft..!{eval:0x\1}!..braceright..!
100
101 # -> right arrow
102 ->=!..backslash..!textrightarrow!..braceleft..!!..braceright..!
103 # => right double arrow (have to enter math mode)
104 =>=!..dollar..!!..backslash..!Rightarrow!..braceleft..!!..braceright..!!..dollar..!
105 # <- left arrow
106 <-=!..backslash..!textleftarrow!..braceleft..!!..braceright..!
107 # <= left double arrow (have to enter math mode)
108 <\==!..dollar..!!..backslash..!Leftarrow!..braceleft..!!..braceright..!!..dollar..!
109 # --> long right arrow (have to enter math mode)
110 -->=!..backslash..!textrightarrow!..braceleft..!!..braceright..!
111 # ==> long right double arrow (have to enter math mode)
112 =\=>=!..dollar..!!..backslash..!Rightarrow!..braceleft..!!..braceright..!!..dollar..!
113 # <-- long left arrow (have to enter math mode)
114 <--=!..backslash..!textleftarrow!..braceleft..!!..braceright..!
115 # <== long left double arrow (have to enter math mode)
116 <\=\==!..dollar..!!..backslash..!Leftarrow!..braceleft..!!..braceright..!!..dollar..!
117 # apostrophe
118 (\w)'(\w)=\1'\2 
119
120 [quotes]
121 #``|''=
122 #`|'=
123 `=monospaced
124
125 [replacements2]
126 !..braceleft..!={
127 !..braceright..!=}
128 !..backslash..!=\\
129 !..dollar..!=$
130 !..lessthan..!=<
131 !..greaterthan..!=>
132 !..amp..!=&
133 !..underline..!=_
134 !..percent..!=%
135 !..sharp..!=#
136 !..circum..!=^
137 !..tilde..!=~
138 !..bar..!=|
139 !..doublequote..!="
140 #"
141
142
143 # Ruler is interpreted as a page break.
144 [ruler-blockmacro]
145 \clearpage
146
147 [image-inlinemacro]
148 !..backslash..!href!..braceleft..!{link}!..braceright..!!..braceleft..!!..percent..!
149 !..backslash..!includegraphics[{scale?scale={scale},}{width?width={width}pt,}{height? height={height}pt}]!..braceleft..!{target}!..braceright..!
150 {link#}!..braceright..!
151
152
153 [image-blockmacro]
154 \begin\{figure\}
155 \\hypertarget\{{id}\}\{\}
156 \caption\{{title}\}
157 \href\{{link}\}\{%
158 \includegraphics[{scale?scale={scale},}{width?width={width}pt,}{height? height={height}pt}]\{{target}\}%
159 \label\{{id}\}
160 {link#}\}
161 \end\{figure\}
162
163 [indexterm-inlinemacro]
164 # Inline index term.
165 !..backslash..!index!..braceleft..!{1}{2?!{2}}{3?!{3}}!..braceright..!
166
167 [indexterm2-inlinemacro]
168 # Inline index term.
169 # Single entry index term that is visible in the primary text flow.
170 !..backslash..!index!..braceleft..!{1}!..braceright..!{1}
171
172 [footnote-inlinemacro]
173 # Inline footnote.
174 !..backslash..!footnote!..braceleft..!{0}!..braceright..!
175
176 [footnoteref-inlinemacro]
177
178
179 [callout-inlinemacro]
180 # Inline callout.
181 <{index}>
182
183 [literal-inlinemacro]
184
185 [listtags-bulleted]
186 list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{itemize\}|\end\{itemize\}
187 item=\item%|
188 text=|
189
190 [listtags-numbered]
191 list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
192 item=\item%|
193 text=|
194
195 [listtags-labeled]
196 list=\begin\{description\}|\end\{description\}
197 item=
198 text=|
199 term=\item[|]\hfill\\*
200 entry=
201 label=
202
203 [listtags-horizontal]
204 list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{description\}|\end\{description\}
205 item=
206 text=|
207 term=\item[%|]
208 entry=
209 label=
210
211 [listtags-dotted]
212 list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{description\}|\end\{description\}
213 item=
214 text=|
215 term=\item[%|]\dotfill
216 entry=
217 label=
218
219 [listtags-callout]
220 list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
221 item=\item%|
222 text=|
223
224 [listtags-qanda]
225 list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
226 item=\begin\{quotation\}|\end\{quotation\}
227 text=|
228 term=|
229 entry=\item%|
230 label=
231
232 [listtags-glossary]
233 list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
234 item=\item%|
235 text=|
236 term=\item%|
237 entry=
238 label=
239
240 [listtags-bibliography]
241 list=biblist={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{description\} | \end\{description\}
242 item=|
243 text=|
244
245
246
247 [tags]
248 superscript=!..backslash..!textsuperscript!..braceleft..!|!..braceright..!
249 subscript=!..backslash..!textsubscript!..braceleft..!|!..braceright..!
250 singlequoted=``|''
251 doublequoted=`|'
252 #'
253
254
255 # Quoted text.
256 emphasis=!..backslash..!emph!..braceleft..!|!..braceright..!
257 strong=!..backslash..!textbf!..braceleft..!|!..braceright..!
258 monospaced=!..backslash..!texttt!..braceleft..!|!..braceright..!
259 doublequoted=!..backslash..!{language!textquotedblleft}{language?{language@.german:glqq}}{language?{language@english:textquotedblleft}}!..braceleft..!!..braceright..!|!..backslash..!{language?{language@.german:grqq}}{language?{language@english:textquotedblright}}{language!textquotedblright}!..braceleft..!!..braceright..!
260 unquoted=|
261
262 # $$ inline passthrough.
263 $$passthrough=|
264
265 # Inline macros
266 [http-inlinemacro]
267 !..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{1={name}:{target}}!..braceright..!
268 [https-inlinemacro]
269 !..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{1={name}:{target}}!..braceright..!
270 [ftp-inlinemacro]
271 !..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{1={name}:{target}}!..braceright..!
272 [file-inlinemacro]
273 !..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{1={name}:{target}}!..braceright..!
274 [mailto-inlinemacro]
275 !..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{1={target}}!..braceright..!
276 [callto-inlinemacro]
277 !..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{1={target}}!..braceright..!
278 [link-inlinemacro]
279 !..backslash..!href!..braceleft..!{target}!..braceright..!!..braceleft..!{1={target}}!..braceright..!
280 # anchor:id[text]
281 [anchor-inlinemacro]
282 !..backslash..!label!..braceleft..!{target}!..braceright..!!..backslash..!hypertarget!..braceleft..!{target}!..braceright..!!..braceleft..!!..braceright..!
283 # [[id,text]]
284 [anchor2-inlinemacro]
285 !..backslash..!label!..braceleft..!{1}!..braceright..!!..backslash..!hypertarget!..braceleft..!{1}!..braceright..!!..braceleft..!{2={1}}!..braceright..!
286 # [[[id]]]
287 [anchor3-inlinemacro]
288 {latex-use-bibliography-environment?!..backslash..!bibitem!..braceleft..!{1}!..braceright..!} {latex-use-bibliography-environment!!..backslash..!item[{1}]} !..backslash..!label!..braceleft..!{1}!..braceright..!!..backslash..!hypertarget!..braceleft..!{1}!..braceright..!!..braceleft..!!..braceright..!
289 # xref:id[text]
290 [xref-inlinemacro]
291 {style#}{style$page:!..backslash..!pageref!..braceleft..!{target}!..braceright..!}
292 {style#}{style$autoref:!..backslash..!autoref!..braceleft..!{target}!..braceright..!}
293 {style#}{style$ref:!..backslash..!ref!..braceleft..!{target}!..braceright..!}
294 {style#}{latex-use-bibliography-environment#}{style$cite:!..backslash..!cite!..braceleft..!{target}!..braceright..!}
295 {style#}{latex-use-bibliography-environment%}{style$cite:!..backslash..!hyperlink!..braceleft..!{target}!..braceright..!!..braceleft..!{0=[{target}]}!..braceright..!}
296 {style%}!..backslash..!hyperlink!..braceleft..!{target}!..braceright..!!..braceleft..!{0=[{target}]}!..braceright..!!..backslash..!showpagenumber!..braceleft..!{target}!..braceright..!
297 # <<id,text>>
298 [xref2-inlinemacro]
299 {3#}{3$page:!..backslash..!pageref!..braceleft..!{1}!..braceright..!}
300 {3#}{3$autoref:!..backslash..!autoref!..braceleft..!{1}!..braceright..!}
301 {3#}{3$ref:!..backslash..!ref!..braceleft..!{1}!..braceright..!}
302 {3#}{latex-use-bibliography-environment#}{3$cite:!..backslash..!cite!..braceleft..!{1}!..braceright..!}
303 {3#}{latex-use-bibliography-environment%}{3$cite:!..backslash..!hyperlink!..braceleft..!{1}!..braceright..!!..braceleft..!{2=[{1}]}!..braceright..!}
304 {3%}!..backslash..!hyperlink!..braceleft..!{1}!..braceright..!!..braceleft..!{2=[{1}]}!..braceright..!
305
306
307 # Special word substitution.
308 [emphasizedwords]
309 !..backslash..!emph!..braceleft..!{words}!..braceright..!
310 [monospacedwords]
311 !..backslash..!texttt!..braceleft..!{words}!..braceright..!
312 [strongwords]
313 !..backslash..!textbf!..braceleft..!{words}!..braceright..!
314
315
316
317 # Paragraph substitution.
318 [paragraph]
319 {title%} \par{latex-indent-paragraphs!\noindent\{\}}
320 {title#} \paragraph\{{title}\}
321 \label\{{id}\}\\hypertarget\{{id}\}\{\}
322
323 |
324
325 [literalparagraph]
326 # The literal block employs the same markup.
327 template::[literalblock]
328
329 [verseparagraph]
330 # The verse block employs the same markup.
331 template::[verseblock]
332
333 [admonitionparagraph]
334 # The admonition block employs the same markup.
335 template::[admonitionblock]
336
337 # Delimited blocks.
338 [passthroughblock]
339 |
340
341 # FIXME: without the FANCYVRBSTOP we would get an unwanted
342 # blank line before \end{Verbatim}. 
343 # I.E.
344 #
345 # |{newline}
346 # \end{Verbatim}
347
348 # yields
349 #
350 # <verbatimtext>
351
352 # \end{Verbatim}
353 #
354 # in the output .tex. This might be a bug/feature in AsciiDoc 
355 # when {newline} is thrown at it.
356
357 [listingblock]
358 \minisec\{{caption=}{title}\}
359 \label\{{id}\}\\hypertarget\{{id}\}\{\}
360 \begin\{Verbatim\}[frame=single]{newline}
361 |
362 {newline}FANCYVRBSTOP
363 \end\{Verbatim\}
364 {newline}
365
366
367 [literalblock]
368 \minisec\{{title}\}
369 \label\{{id}\}\\hypertarget\{{id}\}\{\}
370 \begin\{alltt\}
371
372 |
373
374 \end\{alltt\}
375
376 [verseblock]
377 \minisec\{{title}\}
378 \label\{{id}\}\\hypertarget\{{id}\}\{\}
379 \begin\{alltt\}
380 \normalfont\{\}
381
382 |
383
384 \end\{alltt\}
385
386 [sidebarblock]
387 \label\{{id}\}\\hypertarget\{{id}\}\{\}
388 \par\noindent{}
389 ifndef::latex-use-colored-sidebar-blocks[]
390 \setlength\{\tabcolsep\}\{0pt\}
391 \rowcolors\{1\}\{\}\{\}
392 \begin\{tabular\}\{l>\{\columncolor[gray]\{.75\}\}rcl\}
393 \hspace*\{0pt\} &
394 \hspace*\{8pt\} &
395 \hspace*\{16pt\} &
396 \begin\{minipage\}\{4in\}
397 endif::latex-use-colored-sidebar-blocks[]
398 ifdef::latex-use-colored-sidebar-blocks[]
399 \fcolorbox\{SidebarBorderColor\}\{SidebarBackgroundColor\}\{\parbox\{\textwidth\}\{
400 endif::latex-use-colored-sidebar-blocks[]
401 \minisec\{{title}\}
402
403 |
404
405 ifdef::latex-use-colored-sidebar-blocks[]
406 \}
407 \}
408 endif::latex-use-colored-sidebar-blocks[]
409 ifndef::latex-use-colored-sidebar-blocks[]
410 \end\{minipage\}
411 \end\{tabular\}
412 endif::latex-use-colored-sidebar-blocks[]
413 \bigskip
414
415 [quoteblock]
416 \minisec\{{title}\}
417 \label\{{id}\}\\hypertarget\{{id}\}\{\}
418 \begin\{quote\}
419
420 |
421
422 \end\{quote\}
423
424 \begin\{flushright\}
425 {citetitle} \\
426 -- {attribution}
427 \end\{flushright\}
428
429 [exampleblock]
430 \minisec\{{caption=}{title}\}
431 \label\{{id}\}\\hypertarget\{{id}\}\{\}
432 \begin\{quotation\}
433
434 |
435
436 \end\{quotation\}
437
438 [admonitionblock]
439 \begin\{addmargin*\}[0em]\{0em\}
440 \label\{{id}\}\\hypertarget\{{id}\}\{\}
441 \begin\{minipage\}\{\\linewidth\}
442 {icons#} \includegraphics\{{icon={iconsdir}/{name}.png}\}
443 {icons%} \minisec\{{caption}\}
444 \rule\{\\linewidth\}\{2pt\}
445 \par\{\}\\noindent\{\}|\par\{\}\\noindent\{\}%
446 \rule[.25\baselineskip]\{\\linewidth\}\{2pt\}
447 \end\{minipage\}
448 \end\{addmargin*\}
449
450 # Bibliography list.
451 # Same as numbered list.
452 [listdef-bibliography]
453 listtag=biblist
454 itemtag=biblistitem
455 texttag=biblisttext
456
457 # Glossary list.
458 # Same as labeled list.
459 [listdef-glossary]
460 listtag=vlist
461 itemtag=vlistitem
462 texttag=vlisttext
463 entrytag=vlistentry
464 labeltag=vlistterm
465
466 [listdef-labeled]
467 dotted-style=tags="dotted"
468
469 # Tables.
470 # FIXME: no lines!
471
472 [tabletags-monospaced]
473
474 [tabletags-strong]
475
476 [tabletags-verse]
477
478 [tabletags-literal]
479
480 [tabletags-emphasis]
481
482 [tabletags-asciidoc]
483
484 #[tabledef-default]
485
486 [tabletags-default]
487 #template=table
488 colspec=>\{{valign@left:\\raggedright}{valign@center:\\centering}{valign@right:\\raggedleft}\}p\{ {colabswidth}pt \}
489 bodyrow=| \tabularnewline
490 headdata=\{\\bfseries\{\}|\} {colnumber@{colcount}::&}
491 footdata=\{\\bfseries\{\}|\} {colnumber@{colcount}::&}
492 bodydata=| {colnumber@{colcount}:%:&}
493 paragraph=
494
495 [tabletags-header]
496
497 [table]
498 ifdef::latex-use-colored-tables[]
499 \rowcolors\{1\}\{TableEvenColor\}\{TableOddColor\}
500 \setlength\arrayrulewidth\{1.5pt\}
501 \arrayrulecolor\{TableBorderColor\}
502 endif::latex-use-colored-tables[]
503 {eval:{rowcount}{gt}{latex-table-rowlimit}} \begin\{longtable\}\{
504 {eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|sides:|}
505 {eval:{rowcount}{gt}{latex-table-rowlimit}} {colspecs}
506 {eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|sides:|}
507 {eval:{rowcount}{gt}{latex-table-rowlimit}} \}
508 {eval:{rowcount}{gt}{latex-table-rowlimit}} \hypertarget\{{id}\}\{\}
509 {eval:{rowcount}{gt}{latex-table-rowlimit}} \caption\{{title}\}
510 {eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|topbot:\hline}
511 {eval:{rowcount}{gt}{latex-table-rowlimit}} {headrows}
512 {eval:{rowcount}{gt}{latex-table-rowlimit}} {headrows#} \endhead
513 {eval:{rowcount}{gt}{latex-table-rowlimit}} {footrows}
514 {eval:{rowcount}{gt}{latex-table-rowlimit}} {footrows#} \endlastfoot
515 {eval:{rowcount}{gt}{latex-table-rowlimit}} 
516 {eval:{rowcount}{gt}{latex-table-rowlimit}} {bodyrows}
517 {eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|topbot:\hline}
518 {eval:{rowcount}{gt}{latex-table-rowlimit}} \label\{{id}\}
519 {eval:{rowcount}{gt}{latex-table-rowlimit}} \end\{longtable\}
520 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title%} \par{latex-indent-paragraphs!\noindent}
521 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \begin\{table\}
522 {eval:{rowcount}{lt}={latex-table-rowlimit}} \hypertarget\{{id}\}\{\}
523 {eval:{rowcount}{lt}={latex-table-rowlimit}} \caption\{{title}\}
524 {eval:{rowcount}{lt}={latex-table-rowlimit}} \begin\{minipage\}\{\\textwidth\}
525 {eval:{rowcount}{lt}={latex-table-rowlimit}} \renewcommand\{\\thefootnote\}\{\\thempfootnote\}
526 {eval:{rowcount}{lt}={latex-table-rowlimit}} \centering
527 {eval:{rowcount}{lt}={latex-table-rowlimit}} \begin\{tabular\}\{lllllllllllllll
528 {eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|sides:|}
529 {eval:{rowcount}{lt}={latex-table-rowlimit}} {colspecs}
530 {eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|sides:|}
531 {eval:{rowcount}{lt}={latex-table-rowlimit}} \}
532 {eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|topbot:\hline}
533 {eval:{rowcount}{lt}={latex-table-rowlimit}} {headrows}
534 {eval:{rowcount}{lt}={latex-table-rowlimit}} {bodyrows}
535 {eval:{rowcount}{lt}={latex-table-rowlimit}} {footrows}
536 {eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|topbot:\hline}
537 {eval:{rowcount}{lt}={latex-table-rowlimit}} \end\{tabular\}
538 {eval:{rowcount}{lt}={latex-table-rowlimit}} \renewcommand\{\\footnoterule\}\{\}
539 {eval:{rowcount}{lt}={latex-table-rowlimit}} \end\{minipage\}
540 {eval:{rowcount}{lt}={latex-table-rowlimit}} \label\{{id}\}
541 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \end\{table\}
542
543 [specialsections]
544 ifdef::doctype-article[]
545 ^Abstract$=abstract
546 endif::doctype-article[]
547
548 ifdef::doctype-book[]
549 ^Dedication$=dedication
550 endif::doctype-book[]
551
552 # we generate our own index, dont make Index special
553 ^Reference Index$=index
554
555 ifdef::latex-use-bibliography-environment[]
556 ^(Bibliography|References)$=bibliography
557 endif::latex-use-bibliography-environment[]
558
559 ^Appendix.*$=appendix
560 ^(TOC|Contents)$=toc
561
562 ^Figures$=list-of-figures
563
564 # Special sections.
565
566
567 [list-of-figures]
568 \listoffigures
569
570
571 [toc]
572 \label\{{id}\}\\hypertarget\{{id}\}\{\}
573 \tableofcontents
574
575 [index]
576 \chapter\{{title}\}
577 #\label\{{id}\}\\hypertarget\{{id}\}\{\}
578 \renewcommand\{\\showpagenumber\}[1]\{, \pageref\{#1\}\}
579 |
580
581 ifdef::latex-use-bibliography-environment[]
582 [bibliography]
583 \label\{{id}\}\\hypertarget\{{id}\}\{\}
584 \begin\{thebibliography\}\{99\}
585 |
586 \end\{thebibliography\}
587 endif::latex-use-bibliography-environment[]
588
589 [appendix]
590 \appendix
591 \label\{{id}\}\\hypertarget\{{id}\}\{\}
592 |
593
594 [abstract]
595 \label\{{id}\}\\hypertarget\{{id}\}\{\}
596 \begin\{abstract\}
597 |
598
599 \end\{abstract\}
600
601 [abstractblock]
602
603 [dedication]
604 \label\{{id}\}\\hypertarget\{{id}\}\{\}
605 \dedication\{
606 |
607 \}
608
609 [preamble]
610 # Untitled elements between header and first section title.
611 ifdef::doctype-book[]
612 \frontmatter
613 \chapter*\{Preface\}
614 \label\{preamble\}\\hypertarget\{{preamble}\}\{\}
615 endif::doctype-book[]
616
617
618 |
619
620 ifdef::doctype-book[]
621 \mainmatter
622 endif::doctype-book[]
623
624 # Document sections.
625 [sect1]
626 \hypertarget\{{id}\}\{\}
627 \chapter\{{title}\}
628 \label\{{id}\}
629 |
630
631 [sect2]
632 \hypertarget\{{id}\}\{\}
633 \section\{{title}\}
634 \label\{{id}\}
635
636 [sect3]
637 \hypertarget\{{id}\}\{\}
638 \subsection\{{title}\}
639 \label\{{id}\}
640 |
641
642 [sect4]
643 \hypertarget\{{id}\}\{\}
644 \subsubsection\{{title}\}
645 \label\{{id}\}
646 |
647
648 #[sect4]
649 #\hypertarget\{{id}\}\{\}
650 #\minisec\{{title}\}
651 #\label\{{id}\}
652 #|
653
654
655 # FIXME: if the "backgroundcolor" entry is present as below, the
656 # background comes out black and is unreadable in PDF, although it is
657 # OK in DVI.
658 # \lstset\{basicstyle=\footnotesize\ttfamily,showstringspaces=false,breaklines,frame=single, rulecolor=\color\{ListingBorderColor\}, backgroundcolor=\color\{ListingBackgroundColor\}, xleftmargin=0cm, linewidth=0.95\textwidth\}
659
660
661 [header]
662 {encoding$UTF-8:}% coding: utf-8
663 \documentclass [a4paper,abstracton,titlepage,halfparskip,openany,draft]\{{doctype@article:scrartcl:scrbook}\}
664 \pagestyle\{{latex-use-running-title-headings?headings}{latex-use-running-title-headings!plain}\}
665 \usepackage\{cmap\}
666 \usepackage\{makeidx\}
667 \usepackage[table]\{xcolor\}
668 \usepackage\{color\}
669 \definecolor\{LinkColor\}\{rgb\}\{0.95,0.80,0.80\}
670 \definecolor\{UrlColor\}\{rgb\}\{0.80,0.80,0.95\}
671 \definecolor\{TableEvenColor\}\{rgb\}\{0.93,1,0.8\}
672 \definecolor\{TableOddColor\}\{rgb\}\{0.93,1,1\}
673 \definecolor\{TableBorderColor\}\{rgb\}\{0.55,0.67,0.73\}
674 \definecolor\{ListingBorderColor\}\{rgb\}\{0.55,0.55,0.55\}
675 \definecolor\{ListingBackgroundColor\}\{rgb\}\{0.95,0.95,0.95\}
676 \definecolor\{SidebarBorderColor\}\{rgb\}\{0.95,0.95,0.95\}
677 \definecolor\{SidebarBackgroundColor\}\{rgb\}\{1,1,0.93\}
678 \usepackage\{type1ec\}
679 \usepackage[{language=english}]\{babel\}
680 \usepackage[
681     pdftex,
682     pdftitle=\{{doctitle}\},
683     pdfauthor=\{{author}\},
684     backref,
685     pagebackref,
686     breaklinks=true,
687     unicode,
688     urlbordercolor=UrlColor,
689     linkbordercolor=LinkColor
690     ]
691     \{hyperref\}
692 \usepackage\{enumerate\}
693 \usepackage\{graphicx\}
694 \usepackage\{longtable\}
695 \usepackage[T1]\{fontenc\}
696 \usepackage\{ucs\}
697 \usepackage[{encoding@ISO-8859-1:latin1}{encoding@UTF-8:utf8x}{encoding!utf8x}]\{inputenc\}
698 \usepackage\{textcomp\}
699 \usepackage\{alltt\}
700 %\usepackage\{listings\}
701 %\usepackage\{verbatim\}
702 %\usepackage\{moreverb\}
703 \usepackage\{fancyvrb\}
704 \usepackage\{upquote\}
705 \usepackage\{bookman\}
706 \usepackage\{microtype\}
707
708 \newcommand*\FancyVerbStopString\{FANCYVRBSTOP\}
709 \newcommand\{\\showpagenumber\}[1]\{ (p.\,\pageref\{#1\})\}
710
711 %\lstset\{basicstyle=\footnotesize\ttfamily,showstringspaces=false,breaklines,frame=single, rulecolor=\color\{ListingBorderColor\}, xleftmargin=0cm, linewidth=0.95\textwidth\}
712
713 {latex-indent-paragraphs%\setlength\{\\parskip\}\{1ex plus 0.5ex minus 0.2ex\}}
714
715 \makeatletter
716 \DeclareRobustCommand*\textsubscript[1]\{%
717   \@textsubscript\{\selectfont#1\}\}
718 \def\@textsubscript#1\{%
719   \{\m@th\ensuremath\{_\{\mbox\{\fontsize\sf@size\z@#1\}\}\}\}\}
720 \makeatother
721
722 \subject\{{subject}\}
723 \title\{{doctitle}\}
724 \author\{{author}{email?, \href\{mailto:{email}\}\{{email}\}}\}
725 \date\{{revdate}\}
726 %\publishers\{\begin\{tabular\}\{ll\} {revision?\textbf\{Revision:\} & {revision} \\ }  {keywords?\textbf\{Keywords:\} & {keywords} \\ } \end\{tabular\}\}
727
728 \makeindex
729
730 \begin\{document\}
731
732 %\newcommand{\texttesh}{\textteshlig\/}
733
734 \label\{header\}\\hypertarget\{header\}\{\}
735 {doctitle#\maketitle}
736
737 [footer]
738 \label\{footer\}\\hypertarget\{footer\}\{\}
739 \end\{document\}