Merge branch 'pseudoruprecht/latexbackend' of git://git.pipapo.org/mob/nobug into...
[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={title?\minisec\{{title}\}} \par{id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} |
197 item=\begin\{quote\}|\end\{quote\}
198 text=|
199 term=\noindent\textbf\{%|\}
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-callout]
212 list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
213 item=\item%|
214 text=|
215
216 [listtags-qanda]
217 list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
218 item=\begin\{quotation\}|\end\{quotation\}
219 text=|
220 term=|
221 entry=\item%|
222 label=
223
224 [listtags-glossary]
225 list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
226 item=\item%|
227 text=|
228 term=\item%|
229 entry=
230 label=
231
232 [listtags-bibliography]
233 list=biblist={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{description\} | \end\{description\}
234 item=|
235 text=|
236
237
238
239 [tags]
240 superscript=!..backslash..!textsuperscript!..braceleft..!|!..braceright..!
241 subscript=!..backslash..!textsubscript!..braceleft..!|!..braceright..!
242 singlequoted=``|''
243 doublequoted=`|'
244 #'
245
246
247 # Quoted text.
248 emphasis=!..backslash..!emph!..braceleft..!|!..braceright..!
249 strong=!..backslash..!textbf!..braceleft..!|!..braceright..!
250 monospaced=!..backslash..!texttt!..braceleft..!|!..braceright..!
251 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..!
252 unquoted=|
253
254 # $$ inline passthrough.
255 $$passthrough=|
256
257 # Inline macros
258 [http-inlinemacro]
259 !..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{1={name}:{target}}!..braceright..!
260 [https-inlinemacro]
261 !..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{1={name}:{target}}!..braceright..!
262 [ftp-inlinemacro]
263 !..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{1={name}:{target}}!..braceright..!
264 [file-inlinemacro]
265 !..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{1={name}:{target}}!..braceright..!
266 [mailto-inlinemacro]
267 !..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{1={target}}!..braceright..!
268 [callto-inlinemacro]
269 !..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{1={target}}!..braceright..!
270 [link-inlinemacro]
271 !..backslash..!href!..braceleft..!{target}!..braceright..!!..braceleft..!{1={target}}!..braceright..!
272 # anchor:id[text]
273 [anchor-inlinemacro]
274 !..backslash..!label!..braceleft..!{target}!..braceright..!!..backslash..!hypertarget!..braceleft..!{target}!..braceright..!!..braceleft..!{0={target}}!..braceright..!
275 # [[id,text]]
276 [anchor2-inlinemacro]
277 !..backslash..!label!..braceleft..!{1}!..braceright..!!..backslash..!hypertarget!..braceleft..!{1}!..braceright..!!..braceleft..!{2={1}}!..braceright..!
278 # [[[id]]]
279 [anchor3-inlinemacro]
280 {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..!
281 # xref:id[text]
282 [xref-inlinemacro]
283 {style#}{style$page:!..backslash..!pageref!..braceleft..!{target}!..braceright..!}
284 {style#}{style$autoref:!..backslash..!autoref!..braceleft..!{target}!..braceright..!}
285 {style#}{style$ref:!..backslash..!ref!..braceleft..!{target}!..braceright..!}
286 {style#}{latex-use-bibliography-environment#}{style$cite:!..backslash..!cite!..braceleft..!{target}!..braceright..!}
287 {style#}{latex-use-bibliography-environment%}{style$cite:!..backslash..!hyperlink!..braceleft..!{target}!..braceright..!!..braceleft..!{0=[{target}]}!..braceright..!}
288 {style%}!..backslash..!hyperlink!..braceleft..!{target}!..braceright..!!..braceleft..!{0=[{target}]}!..braceright..!
289
290 # <<id,text>>
291 [xref2-inlinemacro]
292 {3#}{3$page:!..backslash..!pageref!..braceleft..!{1}!..braceright..!}
293 {3#}{3$autoref:!..backslash..!autoref!..braceleft..!{1}!..braceright..!}
294 {3#}{3$ref:!..backslash..!ref!..braceleft..!{1}!..braceright..!}
295 {3#}{latex-use-bibliography-environment#}{3$cite:!..backslash..!cite!..braceleft..!{1}!..braceright..!}
296 {3#}{latex-use-bibliography-environment%}{3$cite:!..backslash..!hyperlink!..braceleft..!{1}!..braceright..!!..braceleft..!{2=[{1}]}!..braceright..!}
297 {3%}!..backslash..!hyperlink!..braceleft..!{1}!..braceright..!!..braceleft..!{2=[{1}]}!..braceright..!
298
299
300 # Special word substitution.
301 [emphasizedwords]
302 !..backslash..!emph!..braceleft..!{words}!..braceright..!
303 [monospacedwords]
304 !..backslash..!texttt!..braceleft..!{words}!..braceright..!
305 [strongwords]
306 !..backslash..!textbf!..braceleft..!{words}!..braceright..!
307
308
309
310 # Paragraph substitution.
311 [paragraph]
312 {title%} \par{latex-indent-paragraphs!\noindent\{\}}
313 {title#} \paragraph\{{title}:\}
314 \label\{{id}\}\\hypertarget\{{id}\}\{\}
315
316 |
317
318 [literalparagraph]
319 # The literal block employs the same markup.
320 template::[literalblock]
321
322 [verseparagraph]
323 # The verse block employs the same markup.
324 template::[verseblock]
325
326 [admonitionparagraph]
327 # The admonition block employs the same markup.
328 template::[admonitionblock]
329
330 # Delimited blocks.
331 [passthroughblock]
332 |
333
334 # FIXME: without the FANCYVRBSTOP we would get an unwanted
335 # blank line before \end{Verbatim}. 
336 # I.E.
337 #
338 # |{newline}
339 # \end{Verbatim}
340
341 # yields
342 #
343 # <verbatimtext>
344
345 # \end{Verbatim}
346 #
347 # in the output .tex. This might be a bug/feature in AsciiDoc 
348 # when {newline} is thrown at it.
349
350 [listingblock]
351 \minisec\{{caption=}{title}\}
352 \label\{{id}\}\\hypertarget\{{id}\}\{\}
353 \begin\{Verbatim\}[frame=single]{newline}
354 |
355 {newline}FANCYVRBSTOP
356 \end\{Verbatim\}
357 {newline}
358
359
360 [literalblock]
361 \minisec\{{title}\}
362 \label\{{id}\}\\hypertarget\{{id}\}\{\}
363 \begin\{alltt\}
364
365 |
366
367 \end\{alltt\}
368
369 [verseblock]
370 \minisec\{{title}\}
371 \label\{{id}\}\\hypertarget\{{id}\}\{\}
372 \begin\{alltt\}
373 \normalfont\{\}
374
375 |
376
377 \end\{alltt\}
378
379 [sidebarblock]
380 \label\{{id}\}\\hypertarget\{{id}\}\{\}
381 \par\noindent{}
382 ifndef::latex-use-colored-sidebar-blocks[]
383 \setlength\{\tabcolsep\}\{0pt\}
384 \rowcolors\{1\}\{\}\{\}
385 \begin\{tabular\}\{l>\{\columncolor[gray]\{.75\}\}rcl\}
386 \hspace*\{0pt\} &
387 \hspace*\{8pt\} &
388 \hspace*\{16pt\} &
389 \begin\{minipage\}\{4in\}
390 endif::latex-use-colored-sidebar-blocks[]
391 ifdef::latex-use-colored-sidebar-blocks[]
392 \fcolorbox\{SidebarBorderColor\}\{SidebarBackgroundColor\}\{\parbox\{\textwidth\}\{
393 endif::latex-use-colored-sidebar-blocks[]
394 \minisec\{{title}\}
395
396 |
397
398 ifdef::latex-use-colored-sidebar-blocks[]
399 \}
400 \}
401 endif::latex-use-colored-sidebar-blocks[]
402 ifndef::latex-use-colored-sidebar-blocks[]
403 \end\{minipage\}
404 \end\{tabular\}
405 endif::latex-use-colored-sidebar-blocks[]
406 \bigskip
407
408 [quoteblock]
409 \minisec\{{title}\}
410 \label\{{id}\}\\hypertarget\{{id}\}\{\}
411 \begin\{quote\}
412
413 |
414
415 \end\{quote\}
416
417 \begin\{flushright\}
418 {citetitle} \\
419 -- {attribution}
420 \end\{flushright\}
421
422 [exampleblock]
423 \minisec\{{caption=}{title}\}
424 \label\{{id}\}\\hypertarget\{{id}\}\{\}
425 \begin\{quotation\}
426
427 |
428
429 \end\{quotation\}
430
431 [admonitionblock]
432 \begin\{addmargin*\}[0em]\{0em\}
433 \label\{{id}\}\\hypertarget\{{id}\}\{\}
434 \begin\{minipage\}\{\\linewidth\}
435 {icons#} \includegraphics\{{icon={iconsdir}/{name}.png}\}
436 {icons%} \minisec\{{caption}\}
437 \rule\{\\linewidth\}\{2pt\}
438 \par\{\}\\noindent\{\}|\par\{\}\\noindent\{\}%
439 \rule[.25\baselineskip]\{\\linewidth\}\{2pt\}
440 \end\{minipage\}
441 \end\{addmargin*\}
442
443 # Bibliography list.
444 # Same as numbered list.
445 [listdef-bibliography]
446 listtag=biblist
447 itemtag=biblistitem
448 texttag=biblisttext
449
450 # Glossary list.
451 # Same as labeled list.
452 [listdef-glossary]
453 listtag=vlist
454 itemtag=vlistitem
455 texttag=vlisttext
456 entrytag=vlistentry
457 labeltag=vlistterm
458
459 # Tables.
460 # FIXME: no lines!
461
462 [tabletags-monospaced]
463
464 [tabletags-strong]
465
466 [tabletags-verse]
467
468 [tabletags-literal]
469
470 [tabletags-emphasis]
471
472 [tabletags-asciidoc]
473
474 #[tabledef-default]
475
476 [tabletags-default]
477 #template=table
478 colspec=>\{{colalign@left:\\raggedright}{colalign@center:\\centering}{colalign@right:\\raggedleft}\}p\{ {colwidth}pt \}
479 bodyrow=| \tabularnewline
480 headdata=\{\\bfseries\{\}|\} {colnumber@{colcount}::&}
481 footdata=\{\\bfseries\{\}|\} {colnumber@{colcount}::&}
482 bodydata=| {colnumber@{colcount}:%:&}
483 paragraph=
484
485 [tabletags-header]
486
487 [table]
488 ifdef::latex-use-colored-tables[]
489 \rowcolors\{1\}\{TableEvenColor\}\{TableOddColor\}
490 \setlength\arrayrulewidth\{1.5pt\}
491 \arrayrulecolor\{TableBorderColor\}
492 endif::latex-use-colored-tables[]
493 {eval:{rowcount}{gt}{latex-table-rowlimit}} \begin\{longtable\}\{
494 {eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|sides:|}
495 {eval:{rowcount}{gt}{latex-table-rowlimit}} {colspecs}
496 {eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|sides:|}
497 {eval:{rowcount}{gt}{latex-table-rowlimit}} \}
498 {eval:{rowcount}{gt}{latex-table-rowlimit}} \\hypertarget\{{id}\}\{\}
499 {eval:{rowcount}{gt}{latex-table-rowlimit}} \caption\{{title}\}
500 {eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|topbot:\hline}
501 {eval:{rowcount}{gt}{latex-table-rowlimit}} {headrows}
502 {eval:{rowcount}{gt}{latex-table-rowlimit}} {headrows#} \endhead
503 {eval:{rowcount}{gt}{latex-table-rowlimit}} {footrows}
504 {eval:{rowcount}{gt}{latex-table-rowlimit}} {footrows#} \endlastfoot
505 {eval:{rowcount}{gt}{latex-table-rowlimit}} 
506 {eval:{rowcount}{gt}{latex-table-rowlimit}} {bodyrows}
507 {eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|topbot:\hline}
508 {eval:{rowcount}{gt}{latex-table-rowlimit}} \label\{{id}\}
509 {eval:{rowcount}{gt}{latex-table-rowlimit}} \end\{longtable\}
510 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title%} \par{latex-indent-paragraphs!\noindent}
511 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \begin\{table\}
512 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \begin\{center\}
513 {eval:{rowcount}{lt}={latex-table-rowlimit}} \\hypertarget\{{id}\}\{\}
514 {eval:{rowcount}{lt}={latex-table-rowlimit}} \caption\{{title}\}
515 {eval:{rowcount}{lt}={latex-table-rowlimit}} \begin\{tabular\}\{lllllllllllllll
516 {eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|sides:|}
517 {eval:{rowcount}{lt}={latex-table-rowlimit}} {colspecs}
518 {eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|sides:|}
519 {eval:{rowcount}{lt}={latex-table-rowlimit}} \}
520 {eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|topbot:\hline}
521 {eval:{rowcount}{lt}={latex-table-rowlimit}} {headrows}
522 {eval:{rowcount}{lt}={latex-table-rowlimit}} {bodyrows}
523 {eval:{rowcount}{lt}={latex-table-rowlimit}} {footrows}
524 {eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|topbot:\hline}
525 {eval:{rowcount}{lt}={latex-table-rowlimit}} \end\{tabular\}
526 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \end\{center\}
527 {eval:{rowcount}{lt}={latex-table-rowlimit}} \label\{{id}\}
528 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \end\{table\}
529
530 [specialsections]
531 ifdef::doctype-article[]
532 ^Abstract$=abstract
533 endif::doctype-article[]
534
535 ifdef::doctype-book[]
536 ^Dedication$=dedication
537 endif::doctype-book[]
538
539 ^Index$=index
540
541 ifdef::latex-use-bibliography-environment[]
542 ^(Bibliography|References)$=bibliography
543 endif::latex-use-bibliography-environment[]
544
545 ^Appendix.*$=appendix
546 ^(TOC|Contents)$=toc
547
548 ^Figures$=list-of-figures
549
550 # Special sections.
551
552
553 [list-of-figures]
554 \listoffigures
555
556
557 [toc]
558 \label\{{id}\}\\hypertarget\{{id}\}\{\}
559 \tableofcontents
560
561 [index]
562 \setindexpreamble\{
563 |
564 \}
565 \label\{{id}\}\\hypertarget\{{id}\}\{\}
566 \printindex
567
568 ifdef::latex-use-bibliography-environment[]
569 [bibliography]
570 \label\{{id}\}\\hypertarget\{{id}\}\{\}
571 \begin\{thebibliography\}\{99\}
572 |
573 \end\{thebibliography\}
574 endif::latex-use-bibliography-environment[]
575
576 [appendix]
577 \appendix
578 \label\{{id}\}\\hypertarget\{{id}\}\{\}
579 |
580
581 [abstract]
582 \label\{{id}\}\\hypertarget\{{id}\}\{\}
583 \begin\{abstract\}
584 |
585
586 \end\{abstract\}
587
588 [abstractblock]
589
590 [dedication]
591 \label\{{id}\}\\hypertarget\{{id}\}\{\}
592 \dedication\{
593 |
594 \}
595
596 [preamble]
597 # Untitled elements between header and first section title.
598 ifdef::doctype-book[]
599 \frontmatter
600 \chapter*\{Preface\}
601 \label\{preamble\}\\hypertarget\{{preamble}\}\{\}
602 endif::doctype-book[]
603
604
605 |
606
607 ifdef::doctype-book[]
608 \mainmatter
609 endif::doctype-book[]
610
611 # Document sections.
612 [sect1]
613 \hypertarget\{{id}\}\{\}
614 \chapter\{{title}\}
615 \label\{{id}\}
616 |
617
618 [sect2]
619 \hypertarget\{{id}\}\{\}
620 \section\{{title}\}
621 \label\{{id}\}
622
623 [sect3]
624 \hypertarget\{{id}\}\{\}
625 \subsection\{{title}\}
626 \label\{{id}\}
627 |
628
629 [sect4]
630 \hypertarget\{{id}\}\{\}
631 \subsubsection\{{title}\}
632 \label\{{id}\}
633 |
634
635 #[sect4]
636 #\hypertarget\{{id}\}\{\}
637 #\minisec\{{title}\}
638 #\label\{{id}\}
639 #|
640
641
642 # FIXME: if the "backgroundcolor" entry is present as below, the
643 # background comes out black and is unreadable in PDF, although it is
644 # OK in DVI.
645 # \lstset\{basicstyle=\footnotesize\ttfamily,showstringspaces=false,breaklines,frame=single, rulecolor=\color\{ListingBorderColor\}, backgroundcolor=\color\{ListingBackgroundColor\}, xleftmargin=0cm, linewidth=0.95\textwidth\}
646
647
648 [header]
649 {encoding$UTF-8:}% coding: utf-8
650 \documentclass [a4paper,abstracton,titlepage,halfparskip,openany,draft]\{{doctype@article:scrartcl:scrbook}\}
651 \pagestyle\{{latex-use-running-title-headings?headings}{latex-use-running-title-headings!plain}\}
652 \usepackage\{makeidx\}
653 \usepackage[table]\{xcolor\}
654 \usepackage\{color\}
655 \definecolor\{LinkColor\}\{rgb\}\{0.33,0.42,0.18\}
656 \definecolor\{TableEvenColor\}\{rgb\}\{0.93,1,0.8\}
657 \definecolor\{TableOddColor\}\{rgb\}\{0.93,1,1\}
658 \definecolor\{TableBorderColor\}\{rgb\}\{0.55,0.67,0.73\}
659 \definecolor\{ListingBorderColor\}\{rgb\}\{0.55,0.55,0.55\}
660 \definecolor\{ListingBackgroundColor\}\{rgb\}\{0.95,0.95,0.95\}
661 \definecolor\{SidebarBorderColor\}\{rgb\}\{0.95,0.95,0.95\}
662 \definecolor\{SidebarBackgroundColor\}\{rgb\}\{1,1,0.93\}
663 \usepackage\{type1ec\}
664 \usepackage[{language=english}]\{babel\}
665 \usepackage[
666     pdftex,
667     pdftitle=\{{doctitle}\},
668     pdfauthor=\{{author}\},
669     backref,
670     pagebackref,
671     breaklinks=true,
672     unicode
673     ]
674     \{hyperref\}
675 \usepackage\{enumerate\}
676 \usepackage\{graphicx\}
677 \usepackage\{longtable\}
678 \usepackage[T1]\{fontenc\}
679 \usepackage\{ucs\}
680 \usepackage[{encoding@ISO-8859-1:latin1}{encoding@UTF-8:utf8x}{encoding!utf8x}]\{inputenc\}
681 \usepackage\{textcomp\}
682 \usepackage\{alltt\}
683 %\usepackage\{listings\}
684 %\usepackage\{verbatim\}
685 %\usepackage\{moreverb\}
686 \usepackage\{fancyvrb\}
687 \usepackage\{upquote\}
688 \usepackage\{bookman\}
689
690 \newcommand*\FancyVerbStopString\{FANCYVRBSTOP\}
691
692 %\lstset\{basicstyle=\footnotesize\ttfamily,showstringspaces=false,breaklines,frame=single, rulecolor=\color\{ListingBorderColor\}, xleftmargin=0cm, linewidth=0.95\textwidth\}
693
694 {latex-indent-paragraphs%\setlength\{\\parskip\}\{1ex plus 0.5ex minus 0.2ex\}}
695
696 \makeatletter
697 \DeclareRobustCommand*\textsubscript[1]\{%
698   \@textsubscript\{\selectfont#1\}\}
699 \def\@textsubscript#1\{%
700   \{\m@th\ensuremath\{_\{\mbox\{\fontsize\sf@size\z@#1\}\}\}\}\}
701 \makeatother
702
703 \subject\{{subject}\}
704 \title\{{doctitle}\}
705 \author\{{author}{email?, \href\{mailto:{email}\}\{{email}\}}\}
706 \date\{{revdate}\}
707 %\publishers\{\begin\{tabular\}\{ll\} {revision?\textbf\{Revision:\} & {revision} \\ }  {keywords?\textbf\{Keywords:\} & {keywords} \\ } \end\{tabular\}\}
708
709 \makeindex
710
711 \begin\{document\}
712
713 %\newcommand{\texttesh}{\textteshlig\/}
714
715 \label\{header\}\\hypertarget\{header\}\{\}
716 {doctitle#\maketitle}
717
718 [footer]
719 \label\{footer\}\\hypertarget\{footer\}\{\}
720 \end\{document\}