fixing backslash escaping in tables, refine the compatibility table
[nobug.git] / doc / latex.conf
blob857439367534a0c1cbd03b24658467183e8d989b
2 # latex.conf
4 # Asciidoc configuration file.
5 # latex backend, generates LaTeX conformant markup.
7 # Originally created by Benjamin Klum, later modified by Geoff Eddy.
9 [titles]
10 subs=quotes,replacements,attributes,macros,specialcharacters,replacements2
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",)
19 [attributes]
20 basebackend=latex
21 basebackend-latex=
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
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
43 [specialcharacters]
44 {=\{{}
45 }=\}{}
46 \=\textbackslash{}
47 $=\${}
48 <=\textless{}
49 >=\textgreater{}
50 &=\&{}
51 _=\_{}
52 %=\%{}
53 \#=\#{}
54 ^=\textasciicircum{}
55 ~=\textasciitilde{}
56 |=\textbar{}
57 "=\textquotedbl{}
60 [macros]
61 # I needed to rewrite some regular expressions because '<' and '>' have not been escaped to '&lt;' and '&gt;'
63 # Callout
64 [\\]?<(?P<index>\d+)>=callout
66 # Link: <<id,text>>
67 (?su)[\\]?<<(?P<attrlist>[\w"].*?)>>=xref2
69 [replacements]
71 # Line break.
72 (?m)^(.*)\s\+$=\1 !..backslash..!newline!..braceleft..!!..braceright..!
74 # -- Spaced em dashes (entity reference &mdash;)
75 (^|[^-\\])--($|[^-])=\1--\2
78 # (C) Copyright (entity reference &copy;)
79 (?<!\\)\(C\)=!..backslash..!textcopyright!..braceleft..!!..braceright..!
80 \\\(C\)=(C)
82 # (R) registered trade mark (entity reference &reg;
83 (?<!\\)\(R\)=!..backslash..!textregistered!..braceleft..!!..braceright..!
84 \\\(R\)=(R)
86 # (TM) Trademark (entity reference &trade;)
87 (?<!\\)\(TM\)=!..backslash..!texttrademark!..braceleft..!!..braceright..!
88 \\\(TM\)=(TM)
90 # ... Ellipsis (entity reference &hellip;)
91 (?<!\\)\.\.\.=!..backslash..!dots!..braceleft..!!..braceright..!
92 \\\.\.\.=...
94 # Recognize escaped unicode characters
95 # FIXME: these should be uncommented, but then there are encoding
96 # problems.
98 #&#([0-9]*);=!..backslash..!unichar!..braceleft..!\1!..braceright..!
99 #&#x([0123456789abcdefABCDEF]*);=!..backslash..!unichar!..braceleft..!{eval:0x\1}!..braceright..!
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 
120 [quotes]
121 #``|''=
122 #`|'=
123 `=monospaced
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..!="
143 # Ruler is interpreted as a page break.
144 [ruler-blockmacro]
145 \clearpage
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..!
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\}
163 [indexterm-inlinemacro]
164 # Inline index term.
165 !..backslash..!index!..braceleft..!{1}{2?!{2}}{3?!{3}}!..braceright..!
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}
172 [footnote-inlinemacro]
173 # Inline footnote.
174 !..backslash..!footnote!..braceleft..!{0}!..braceright..!
176 [footnoteref-inlinemacro]
179 [callout-inlinemacro]
180 # Inline callout.
181 <{index}>
183 [literal-inlinemacro]
185 [listtags-bulleted]
186 list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{itemize\}|\end\{itemize\}
187 item=\item%|
188 text=|
190 [listtags-numbered]
191 list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
192 item=\item%|
193 text=|
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=
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=
211 [listtags-callout]
212 list={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
213 item=\item%|
214 text=|
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=
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=
232 [listtags-bibliography]
233 list=biblist={title?\minisec\{{title}\}} {id?\label\{{id}\}\\hypertarget\{{id}\}\{\}} \begin\{description\} | \end\{description\}
234 item=|
235 text=|
239 [tags]
240 superscript=!..backslash..!textsuperscript!..braceleft..!|!..braceright..!
241 subscript=!..backslash..!textsubscript!..braceleft..!|!..braceright..!
242 singlequoted=``|''
243 doublequoted=`|'
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=|
254 # $$ inline passthrough.
255 $$passthrough=|
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..!
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..!
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..!
310 # Paragraph substitution.
311 [paragraph]
312 {title%} \par{latex-indent-paragraphs!\noindent\{\}}
313 {title#} \paragraph\{{title}:\}
314 \label\{{id}\}\\hypertarget\{{id}\}\{\}
318 [literalparagraph]
319 # The literal block employs the same markup.
320 template::[literalblock]
322 [verseparagraph]
323 # The verse block employs the same markup.
324 template::[verseblock]
326 [admonitionparagraph]
327 # The admonition block employs the same markup.
328 template::[admonitionblock]
330 # Delimited blocks.
331 [passthroughblock]
334 # FIXME: we get SPURIOUS TEXT at the beginning, but can't delete it.
335 # Putting "[]" after the \begin{lstlisting} in the LaTeX output works,
336 # but inserting the same "[]" below doesn't.
338 [listingblock]
339 \minisec\{{caption=}{title}\}
340 \label\{{id}\}\\hypertarget\{{id}\}\{\}
341 \begin\{verbatim\}
343 \end\{verbatim\}
344 {newline}
347 [literalblock]
348 \minisec\{{title}\}
349 \label\{{id}\}\\hypertarget\{{id}\}\{\}
350 \begin\{alltt\}
354 \end\{alltt\}
356 [verseblock]
357 \minisec\{{title}\}
358 \label\{{id}\}\\hypertarget\{{id}\}\{\}
359 \begin\{alltt\}
360 \normalfont\{\}
364 \end\{alltt\}
366 [sidebarblock]
367 \label\{{id}\}\\hypertarget\{{id}\}\{\}
368 \par\noindent{}
369 ifndef::latex-use-colored-sidebar-blocks[]
370 \setlength\{\tabcolsep\}\{0pt\}
371 \rowcolors\{1\}\{\}\{\}
372 \begin\{tabular\}\{l>\{\columncolor[gray]\{.75\}\}rcl\}
373 \hspace*\{0pt\} &
374 \hspace*\{8pt\} &
375 \hspace*\{16pt\} &
376 \begin\{minipage\}\{4in\}
377 endif::latex-use-colored-sidebar-blocks[]
378 ifdef::latex-use-colored-sidebar-blocks[]
379 \fcolorbox\{SidebarBorderColor\}\{SidebarBackgroundColor\}\{\parbox\{\textwidth\}\{
380 endif::latex-use-colored-sidebar-blocks[]
381 \minisec\{{title}\}
385 ifdef::latex-use-colored-sidebar-blocks[]
388 endif::latex-use-colored-sidebar-blocks[]
389 ifndef::latex-use-colored-sidebar-blocks[]
390 \end\{minipage\}
391 \end\{tabular\}
392 endif::latex-use-colored-sidebar-blocks[]
393 \bigskip
395 [quoteblock]
396 \minisec\{{title}\}
397 \label\{{id}\}\\hypertarget\{{id}\}\{\}
398 \begin\{quote\}
402 \end\{quote\}
404 \begin\{flushright\}
405 {citetitle} \\
406 -- {attribution}
407 \end\{flushright\}
409 [exampleblock]
410 \minisec\{{caption=}{title}\}
411 \label\{{id}\}\\hypertarget\{{id}\}\{\}
412 \begin\{quotation\}
416 \end\{quotation\}
418 [admonitionblock]
419 \begin\{addmargin*\}[0em]\{0em\}
420 \label\{{id}\}\\hypertarget\{{id}\}\{\}
421 \begin\{minipage\}\{\\linewidth\}
422 {icons#} \includegraphics\{{icon={iconsdir}/{name}.png}\}
423 {icons%} \minisec\{{caption}\}
424 \rule\{\\linewidth\}\{2pt\}
425 \par\{\}\\noindent\{\}|\par\{\}\\noindent\{\}%
426 \rule[.25\baselineskip]\{\\linewidth\}\{2pt\}
427 \end\{minipage\}
428 \end\{addmargin*\}
430 # Bibliography list.
431 # Same as numbered list.
432 [listdef-bibliography]
433 listtag=biblist
434 itemtag=biblistitem
435 texttag=biblisttext
437 # Glossary list.
438 # Same as labeled list.
439 [listdef-glossary]
440 listtag=vlist
441 itemtag=vlistitem
442 texttag=vlisttext
443 entrytag=vlistentry
444 labeltag=vlistterm
446 # Tables.
447 # FIXME: no lines!
449 [tabletags-monospaced]
451 [tabletags-strong]
453 [tabletags-verse]
455 [tabletags-literal]
457 [tabletags-emphasis]
459 [tabletags-asciidoc]
461 #[tabledef-default]
463 [tabletags-default]
464 #template=table
465 colspec=>\{{colalign@left:\\raggedright}{colalign@center:\\centering}{colalign@right:\\raggedleft}\}p\{ {colwidth}pt \}
466 bodyrow=| \tabularnewline
467 headdata=\{\\bfseries\{\}|\} {colnumber@{colcount}::&}
468 footdata=\{\\bfseries\{\}|\} {colnumber@{colcount}::&}
469 bodydata=| {colnumber@{colcount}:%:&}
470 paragraph=
472 [tabletags-header]
474 [table]
475 ifdef::latex-use-colored-tables[]
476 \rowcolors\{1\}\{TableEvenColor\}\{TableOddColor\}
477 \setlength\arrayrulewidth\{1.5pt\}
478 \arrayrulecolor\{TableBorderColor\}
479 endif::latex-use-colored-tables[]
480 {eval:{rowcount}{gt}{latex-table-rowlimit}} \begin\{longtable\}\{
481 {eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|sides:|}
482 {eval:{rowcount}{gt}{latex-table-rowlimit}} {colspecs}
483 {eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|sides:|}
484 {eval:{rowcount}{gt}{latex-table-rowlimit}} \}
485 {eval:{rowcount}{gt}{latex-table-rowlimit}} \\hypertarget\{{id}\}\{\}
486 {eval:{rowcount}{gt}{latex-table-rowlimit}} \caption\{{title}\}
487 {eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|topbot:\hline}
488 {eval:{rowcount}{gt}{latex-table-rowlimit}} {headrows}
489 {eval:{rowcount}{gt}{latex-table-rowlimit}} {headrows#} \endhead
490 {eval:{rowcount}{gt}{latex-table-rowlimit}} {footrows}
491 {eval:{rowcount}{gt}{latex-table-rowlimit}} {footrows#} \endlastfoot
492 {eval:{rowcount}{gt}{latex-table-rowlimit}} 
493 {eval:{rowcount}{gt}{latex-table-rowlimit}} {bodyrows}
494 {eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|topbot:\hline}
495 {eval:{rowcount}{gt}{latex-table-rowlimit}} \label\{{id}\}
496 {eval:{rowcount}{gt}{latex-table-rowlimit}} \end\{longtable\}
497 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title%} \par{latex-indent-paragraphs!\noindent}
498 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \begin\{table\}
499 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \begin\{center\}
500 {eval:{rowcount}{lt}={latex-table-rowlimit}} \\hypertarget\{{id}\}\{\}
501 {eval:{rowcount}{lt}={latex-table-rowlimit}} \caption\{{title}\}
502 {eval:{rowcount}{lt}={latex-table-rowlimit}} \begin\{tabular\}\{lllllllllllllll
503 {eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|sides:|}
504 {eval:{rowcount}{lt}={latex-table-rowlimit}} {colspecs}
505 {eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|sides:|}
506 {eval:{rowcount}{lt}={latex-table-rowlimit}} \}
507 {eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|topbot:\hline}
508 {eval:{rowcount}{lt}={latex-table-rowlimit}} {headrows}
509 {eval:{rowcount}{lt}={latex-table-rowlimit}} {bodyrows}
510 {eval:{rowcount}{lt}={latex-table-rowlimit}} {footrows}
511 {eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|topbot:\hline}
512 {eval:{rowcount}{lt}={latex-table-rowlimit}} \end\{tabular\}
513 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \end\{center\}
514 {eval:{rowcount}{lt}={latex-table-rowlimit}} \label\{{id}\}
515 {eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \end\{table\}
517 [specialsections]
518 ifdef::doctype-article[]
519 ^Abstract$=abstract
520 endif::doctype-article[]
522 ifdef::doctype-book[]
523 ^Dedication$=dedication
524 endif::doctype-book[]
526 ^Index$=index
528 ifdef::latex-use-bibliography-environment[]
529 ^(Bibliography|References)$=bibliography
530 endif::latex-use-bibliography-environment[]
532 ^Appendix.*$=appendix
533 ^(TOC|Contents)$=toc
535 ^Figures$=list-of-figures
537 # Special sections.
540 [list-of-figures]
541 \listoffigures
544 [toc]
545 \label\{{id}\}\\hypertarget\{{id}\}\{\}
546 \tableofcontents
548 [index]
549 \setindexpreamble\{
552 \label\{{id}\}\\hypertarget\{{id}\}\{\}
553 \printindex
555 ifdef::latex-use-bibliography-environment[]
556 [bibliography]
557 \label\{{id}\}\\hypertarget\{{id}\}\{\}
558 \begin\{thebibliography\}\{99\}
560 \end\{thebibliography\}
561 endif::latex-use-bibliography-environment[]
563 [appendix]
564 \appendix
565 \label\{{id}\}\\hypertarget\{{id}\}\{\}
568 [abstract]
569 \label\{{id}\}\\hypertarget\{{id}\}\{\}
570 \begin\{abstract\}
573 \end\{abstract\}
575 [abstractblock]
577 [dedication]
578 \label\{{id}\}\\hypertarget\{{id}\}\{\}
579 \dedication\{
583 [preamble]
584 # Untitled elements between header and first section title.
585 ifdef::doctype-book[]
586 \frontmatter
587 \chapter*\{Preface\}
588 \label\{preamble\}\\hypertarget\{{preamble}\}\{\}
589 endif::doctype-book[]
594 ifdef::doctype-book[]
595 \mainmatter
596 endif::doctype-book[]
598 # Document sections.
599 [sect1]
600 \hypertarget\{{id}\}\{\}
601 \chapter\{{title}\}
602 \label\{{id}\}
605 [sect2]
606 \hypertarget\{{id}\}\{\}
607 \section\{{title}\}
608 \label\{{id}\}
610 [sect3]
611 \hypertarget\{{id}\}\{\}
612 \subsection\{{title}\}
613 \label\{{id}\}
616 [sect4]
617 \hypertarget\{{id}\}\{\}
618 \subsubsection\{{title}\}
619 \label\{{id}\}
622 #[sect4]
623 #\hypertarget\{{id}\}\{\}
624 #\minisec\{{title}\}
625 #\label\{{id}\}
629 # FIXME: if the "backgroundcolor" entry is present as below, the
630 # background comes out black and is unreadable in PDF, although it is
631 # OK in DVI.
632 # \lstset\{basicstyle=\footnotesize\ttfamily,showstringspaces=false,breaklines,frame=single, rulecolor=\color\{ListingBorderColor\}, backgroundcolor=\color\{ListingBackgroundColor\}, xleftmargin=0cm, linewidth=0.95\textwidth\}
635 [header]
636 {encoding$UTF-8:}% coding: utf-8
637 \documentclass [a4paper,abstracton,titlepage,halfparskip,openany,draft]\{{doctype@article:scrartcl:scrbook}\}
638 \pagestyle\{{latex-use-running-title-headings?headings}{latex-use-running-title-headings!plain}\}
639 \usepackage\{makeidx\}
640 \usepackage[table]\{xcolor\}
641 \usepackage\{color\}
642 \definecolor\{LinkColor\}\{rgb\}\{0.33,0.42,0.18\}
643 \definecolor\{TableEvenColor\}\{rgb\}\{0.93,1,0.8\}
644 \definecolor\{TableOddColor\}\{rgb\}\{0.93,1,1\}
645 \definecolor\{TableBorderColor\}\{rgb\}\{0.55,0.67,0.73\}
646 \definecolor\{ListingBorderColor\}\{rgb\}\{0.55,0.55,0.55\}
647 \definecolor\{ListingBackgroundColor\}\{rgb\}\{0.95,0.95,0.95\}
648 \definecolor\{SidebarBorderColor\}\{rgb\}\{0.95,0.95,0.95\}
649 \definecolor\{SidebarBackgroundColor\}\{rgb\}\{1,1,0.93\}
650 \usepackage\{type1ec\}
651 \usepackage[{language=english}]\{babel\}
652 \usepackage[
653     pdftex,
654     pdftitle=\{{doctitle}\},
655     pdfauthor=\{{author}\},
656     backref,
657     pagebackref,
658     breaklinks=true,
659     unicode
660     ]
661     \{hyperref\}
662 \usepackage\{enumerate\}
663 \usepackage\{graphicx\}
664 \usepackage\{longtable\}
665 \usepackage[T1]\{fontenc\}
666 \usepackage\{ucs\}
667 \usepackage[{encoding@ISO-8859-1:latin1}{encoding@UTF-8:utf8x}{encoding!utf8x}]\{inputenc\}
668 \usepackage\{textcomp\}
669 \usepackage\{alltt\}
670 %\usepackage\{listings\}
671 \usepackage\{verbatim\}
672 \usepackage\{moreverb\}
673 \usepackage\{upquote\}
674 \usepackage\{bookman\}
676 %\lstset\{basicstyle=\footnotesize\ttfamily,showstringspaces=false,breaklines,frame=single, rulecolor=\color\{ListingBorderColor\}, xleftmargin=0cm, linewidth=0.95\textwidth\}
678 {latex-indent-paragraphs%\setlength\{\\parskip\}\{1ex plus 0.5ex minus 0.2ex\}}
680 \makeatletter
681 \DeclareRobustCommand*\textsubscript[1]\{%
682   \@textsubscript\{\selectfont#1\}\}
683 \def\@textsubscript#1\{%
684   \{\m@th\ensuremath\{_\{\mbox\{\fontsize\sf@size\z@#1\}\}\}\}\}
685 \makeatother
687 \subject\{{subject}\}
688 \title\{{doctitle}\}
689 \author\{{author}{email?, \href\{mailto:{email}\}\{{email}\}}\}
690 \date\{{revdate}\}
691 %\publishers\{\begin\{tabular\}\{ll\} {revision?\textbf\{Revision:\} & {revision} \\ }  {keywords?\textbf\{Keywords:\} & {keywords} \\ } \end\{tabular\}\}
693 \makeindex
695 \begin\{document\}
697 %\newcommand{\texttesh}{\textteshlig\/}
699 \label\{header\}\\hypertarget\{header\}\{\}
700 {doctitle#\maketitle}
702 [footer]
703 \label\{footer\}\\hypertarget\{footer\}\{\}
704 \end\{document\}