ede/docs/asciidoc/latex.conf
2007-07-18 13:21:52 +00:00

663 lines
20 KiB
Plaintext

#
# latex.conf
#
# Asciidoc configuration file.
# latex backend, generates LaTeX conformant markup.
#
[titles]
subs=quotes,replacements,attributes,macros,specialcharacters,replacements2
# The listing block uses a LaTeX verbatim environment where special characters don't need to be escaped.
# Hence only "callouts" substitution should be applied.
[blockdef-listing]
subs=callouts
[attributes]
basebackend=latex
basebackend-latex=
latex-table-rowlimit=20
latex-use-bibliography-environment!
latex-indent-paragraphs!
latex-recognize-escaped-unicode!
latex-use-custom-list-items!
latex-use-colored-tables!
latex-use-running-title-headings!
latex-use-colored-sidebar-blocks!
[miscellaneous]
subsnormal=quotes,specialwords,replacements,attributes,macros,passthroughs,specialcharacters,replacements2
subsverbatim=callouts,specialcharacters
outfilesuffix=.tex
# Screen width in pixels.
pagewidth=418
pageunits=pt
[specialcharacters]
{=\{{}
}=\}{}
\\=\textbackslash{}
$=\${}
<=\textless{}
>=\textgreater{}
&=\&{}
_=\_{}
%=\%{}
\#=\#{}
^=\textasciicircum{}
~=\textasciitilde{}
|=\textbar{}
"=\textquotedbl{}
[macros]
# I needed to rewrite some regular expressions because '<' and '>' have not been escaped to '&lt;' and '&gt;'
# Callout
[\\]?<(?P<index>\d+)>=callout
# Link: <<id,text>>
(?su)[\\]?<<(?P<attrlist>[\w"].*?)>>=xref2
[replacements]
# Line break.
(?m)^(.*)\s\+$=\1 !..backslash..!newline!..braceleft..!!..braceright..!
# -- Spaced em dashes (entity reference &mdash;)
(^|[^-\\])--($|[^-])=\1--\2
# (C) Copyright (entity reference &copy;)
(?<!\\)\(C\)=!..backslash..!textcopyright!..braceleft..!!..braceright..!
\\\(C\)=(C)
# (R) registered trade mark (entity reference &reg;
(?<!\\)\(R\)=!..backslash..!textregistered!..braceleft..!!..braceright..!
\\\(R\)=(R)
# (TM) Trademark (entity reference &trade;)
(?<!\\)\(TM\)=!..backslash..!texttrademark!..braceleft..!!..braceright..!
\\\(TM\)=(TM)
# ... Ellipsis (entity reference &hellip;)
(?<!\\)\.\.\.=!..backslash..!dots!..braceleft..!!..braceright..!
\\\.\.\.=...
# Recognize escaped unicode characters
ifdef::latex-recognize-escaped-unicode[]
\{amp\}#([0-9]*);=!..backslash..!unichar!..braceleft..!\1!..braceright..!
\{amp\}#x([0123456789abcdefABCDEF]*);=!..backslash..!unichar!..braceleft..!{eval:0x\1}!..braceright..!
endif::latex-recognize-escaped-unicode[]
# -> right arrow
->=!..backslash..!textrightarrow!..braceleft..!!..braceright..!
# => right double arrow (have to enter math mode)
=>=!..dollar..!!..backslash..!Rightarrow!..braceleft..!!..braceright..!!..dollar..!
# <- left arrow
<-=!..backslash..!textleftarrow!..braceleft..!!..braceright..!
# <= left double arrow (have to enter math mode)
<\==!..dollar..!!..backslash..!Leftarrow!..braceleft..!!..braceright..!!..dollar..!
# --> long right arrow (have to enter math mode)
-->=!..backslash..!textrightarrow!..braceleft..!!..braceright..!
# ==> long right double arrow (have to enter math mode)
=\=>=!..dollar..!!..backslash..!Rightarrow!..braceleft..!!..braceright..!!..dollar..!
# <-- long left arrow (have to enter math mode)
<--=!..backslash..!textleftarrow!..braceleft..!!..braceright..!
# <== long left double arrow (have to enter math mode)
<\=\==!..dollar..!!..backslash..!Leftarrow!..braceleft..!!..braceright..!!..dollar..!
[replacements2]
!..braceleft..!={
!..braceright..!=}
!..backslash..!=\\
!..dollar..!=$
!..lessthan..!=<
!..greaterthan..!=>
!..amp..!=&
!..underline..!=_
!..percent..!=%
!..sharp..!=#
!..circum..!=^
!..tilde..!=~
!..bar..!=|
!..doublequote..!="
# Ruler is interpreted as a page break.
[ruler-blockmacro]
\clearpage
[image-inlinemacro]
!..backslash..!href!..braceleft..!{link}!..braceright..!!..braceleft..!!..percent..!
!..backslash..!includegraphics[{scale?scale={scale},}{width?width={width}pt,}{height? height={height}pt}]!..braceleft..!{target}!..braceright..!
{link#}!..braceright..!
[image-blockmacro]
\begin\{figure\}
\hypertarget\{{id}\}\{\}
\caption\{{title}\}
\href\{{link}\}\{%
\includegraphics[{scale?scale={scale},}{width?width={width}pt,}{height? height={height}pt}]\{{target}\}%
\label\{{id}\}
{link#}\}
\end\{figure\}
[indexterm-inlinemacro]
# Inline index term.
!..backslash..!index!..braceleft..!{1}{2?!{2}}{3?!{3}}!..braceright..!
[indexterm2-inlinemacro]
# Inline index term.
# Single entry index term that is visible in the primary text flow.
!..backslash..!index!..braceleft..!{1}!..braceright..!{1}
[footnote-inlinemacro]
# Inline footnote.
!..backslash..!footnote!..braceleft..!{0}!..braceright..!
[callout-inlinemacro]
# Inline callout.
<{index}>
[listdef-numbered2]
listtag=olist2
itemtag=olist2item
texttag=olist2text
[listdef-bulleted2]
listtag=ilist2
itemtag=ilist2item
texttag=ilist2text
[tags]
# Bulleted, numbered and labeled list tags.
ifdef::latex-use-custom-list-items[]
ilistitem=\item[\textendash] |
ilist2item=\item[\textbullet] |
olist={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{enumerate\}[1)]|\end\{enumerate\}
olist2={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{enumerate\}[a)]|\end\{enumerate\}
endif::latex-use-custom-list-items[]
ifndef::latex-use-custom-list-items[]
ilistitem=\item%|
ilist2item=\item%|
olist={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
olist2={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
endif::latex-use-custom-list-items[]
ilist={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{itemize\}|\end\{itemize\}
ilisttext=|
ilist2={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{itemize\}|\end\{itemize\}
ilist2text=|
olistitem=\item%|
olisttext=|
olist2item=\item%|
olist2text=|
vlist={title?\minisec\{{title}\}} \par{id?\label\{{id}\}\hypertarget\{{id}\}\{\}} |
vlistentry=|
vlistterm=\noindent\textbf\{%|\}
vlistitem=\begin\{quote\}|\end\{quote\}
vlisttext=|
# Horizontal labeled list.
hlist={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{description\}|\end\{description\}
hlistentry=|
hlistterm=\item[%|]
hlistitem=|
hlisttext=|
# Question and Answer list.
qlist={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
qlistentry=\item%|
qlistterm=|
qlistitem=\begin\{quotation\}|\end\{quotation\}
qlisttext=|
# Callout list.
colist={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
colistitem=\item%|
colisttext=|
# Bibliography list.
ifdef::latex-use-bibliography-environment[]
biblist=|
endif::latex-use-bibliography-environment[]
ifndef::latex-use-bibliography-environment[]
biblist={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{description\} | \end\{description\}
endif::latex-use-bibliography-environment[]
biblistitem=|
biblisttext=|
superscript=!..backslash..!textsuperscript!..braceleft..!|!..braceright..!
subscript=!..backslash..!textsubscript!..braceleft..!|!..braceright..!
# Quoted text.
emphasis=!..backslash..!emph!..braceleft..!|!..braceright..!
strong=!..backslash..!textbf!..braceleft..!|!..braceright..!
monospaced=!..backslash..!texttt!..braceleft..!|!..braceright..!
quoted=!..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..!
unquoted=|
# $$ inline passthrough.
$$passthrough=|
# Inline macros
[http-inlinemacro]
!..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{0={name}:{target}}!..braceright..!
[https-inlinemacro]
!..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{0={name}:{target}}!..braceright..!
[ftp-inlinemacro]
!..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{0={name}:{target}}!..braceright..!
[file-inlinemacro]
!..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{0={name}:{target}}!..braceright..!
[mailto-inlinemacro]
!..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{0={target}}!..braceright..!
[callto-inlinemacro]
!..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{0={target}}!..braceright..!
[link-inlinemacro]
!..backslash..!href!..braceleft..!{target}!..braceright..!!..braceleft..!{0={target}}!..braceright..!
# anchor:id[text]
[anchor-inlinemacro]
!..backslash..!label!..braceleft..!{target}!..braceright..!!..backslash..!hypertarget!..braceleft..!{target}!..braceright..!!..braceleft..!{0={target}}!..braceright..!
# [[id,text]]
[anchor2-inlinemacro]
!..backslash..!label!..braceleft..!{1}!..braceright..!!..backslash..!hypertarget!..braceleft..!{1}!..braceright..!!..braceleft..!{2={1}}!..braceright..!
# [[[id]]]
[anchor3-inlinemacro]
{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..!
# xref:id[text]
[xref-inlinemacro]
{style#}{style$page:!..backslash..!pageref!..braceleft..!{target}!..braceright..!}
{style#}{style$autoref:!..backslash..!autoref!..braceleft..!{target}!..braceright..!}
{style#}{style$ref:!..backslash..!ref!..braceleft..!{target}!..braceright..!}
{style#}{latex-use-bibliography-environment#}{style$cite:!..backslash..!cite!..braceleft..!{target}!..braceright..!}
{style#}{latex-use-bibliography-environment%}{style$cite:!..backslash..!hyperlink!..braceleft..!{target}!..braceright..!!..braceleft..!{0=[{target}]}!..braceright..!}
{style%}!..backslash..!hyperlink!..braceleft..!{target}!..braceright..!!..braceleft..!{0=[{target}]}!..braceright..!
# <<id,text>>
[xref2-inlinemacro]
{3#}{3$page:!..backslash..!pageref!..braceleft..!{1}!..braceright..!}
{3#}{3$autoref:!..backslash..!autoref!..braceleft..!{1}!..braceright..!}
{3#}{3$ref:!..backslash..!ref!..braceleft..!{1}!..braceright..!}
{3#}{latex-use-bibliography-environment#}{3$cite:!..backslash..!cite!..braceleft..!{1}!..braceright..!}
{3#}{latex-use-bibliography-environment%}{3$cite:!..backslash..!hyperlink!..braceleft..!{1}!..braceright..!!..braceleft..!{2=[{1}]}!..braceright..!}
{3%}!..backslash..!hyperlink!..braceleft..!{1}!..braceright..!!..braceleft..!{2=[{1}]}!..braceright..!
# Special word substitution.
[emphasizedwords]
!..backslash..!emph!..braceleft..!{words}!..braceright..!
[monospacedwords]
!..backslash..!texttt!..braceleft..!{words}!..braceright..!
[strongwords]
!..backslash..!textbf!..braceleft..!{words}!..braceright..!
# Paragraph substitution.
[paragraph]
{title%} \par{latex-indent-paragraphs!\noindent}
{title#} \paragraph\{{title}\}
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
[literalparagraph]
# The literal block employs the same markup.
template::[literalblock]
[verseparagraph]
# The verse block employs the same markup.
template::[verseblock]
[admonitionparagraph]
# The admonition block employs the same markup.
template::[admonitionblock]
# Delimited blocks.
[passthroughblock]
|
[listingblock]
\minisec\{{caption=Listing: }{title}\}
\label\{{id}\}\hypertarget\{{id}\}\{\}
\begin\{lstlisting\}[{title?name={title}}]
|
\end\{lstlisting\}
[literalblock]
\minisec\{{title}\}
\label\{{id}\}\hypertarget\{{id}\}\{\}
\begin\{alltt\}
|
\end\{alltt\}
[verseblock]
\minisec\{{title}\}
\label\{{id}\}\hypertarget\{{id}\}\{\}
\begin\{alltt\}
\normalfont\{\}
|
\end\{alltt\}
[sidebarblock]
\label\{{id}\}\hypertarget\{{id}\}\{\}
\par\noindent
ifndef::latex-use-colored-sidebar-blocks[]
\setlength\{\tabcolsep\}\{0pt\}
\rowcolors\{1\}\{\}\{\}
\begin\{tabular\}\{l>\{\columncolor[gray]\{.75\}\}rcl\}
\hspace*\{0pt\} &
\hspace*\{8pt\} &
\hspace*\{16pt\} &
\begin\{minipage\}\{4in\}
endif::latex-use-colored-sidebar-blocks[]
ifdef::latex-use-colored-sidebar-blocks[]
\fcolorbox\{SidebarBorderColor\}\{SidebarBackgroundColor\}\{\parbox\{\textwidth\}\{
endif::latex-use-colored-sidebar-blocks[]
\minisec\{{title}\}
|
ifdef::latex-use-colored-sidebar-blocks[]
\}
\}
endif::latex-use-colored-sidebar-blocks[]
ifndef::latex-use-colored-sidebar-blocks[]
\end\{minipage\}
\end\{tabular\}
endif::latex-use-colored-sidebar-blocks[]
\bigskip
[quoteblock]
\minisec\{{title}\}
\label\{{id}\}\hypertarget\{{id}\}\{\}
\begin\{quote\}
|
\end\{quote\}
\begin\{flushright\}
{citetitle} \\
-- {attribution}
\end\{flushright\}
[exampleblock]
\minisec\{{caption=Example: }{title}\}
\label\{{id}\}\hypertarget\{{id}\}\{\}
\begin\{quotation\}
|
\end\{quotation\}
[admonitionblock]
\begin\{addmargin*\}[0em]\{0em\}
\label\{{id}\}\hypertarget\{{id}\}\{\}
\begin\{minipage\}\{\linewidth\}
{icons#} \includegraphics\{{icon={iconsdir}/{name}.png}\}
{icons%} \minisec\{{caption}\}
\\
\rule\{\linewidth\}\{2pt\}
\par\{\}\noindent\{\}|\par\{\}\noindent\{\}%
\rule[.25\baselineskip]\{\linewidth\}\{2pt\}
\end\{minipage\}
\end\{addmargin*\}
# Bibliography list.
# Same as numbered list.
[listdef-bibliography]
listtag=biblist
itemtag=biblistitem
texttag=biblisttext
# Glossary list.
# Same as labeled list.
[listdef-glossary]
listtag=vlist
itemtag=vlistitem
texttag=vlisttext
entrytag=vlistentry
labeltag=vlistterm
# Tables.
[tabledef-default]
template=table
colspec=>\{{colalign@left:\\raggedright}{colalign@center:\\centering}{colalign@right:\\raggedleft}\}p\{ {colwidth}pt \}
bodyrow=%| \tabularnewline
headdata=\{\bfseries\{\}%|\} {colnumber@{cols}::&}
footdata=\{\bfseries\{\}%|\} {colnumber@{cols}::&}
bodydata=%| {colnumber@{cols}:%:&}
[table]
ifdef::latex-use-colored-tables[]
\rowcolors\{1\}\{TableEvenColor\}\{TableOddColor\}
\setlength\arrayrulewidth\{1.5pt\}
\arrayrulecolor\{TableBorderColor\}
endif::latex-use-colored-tables[]
{eval:{rows}{gt}{latex-table-rowlimit}} \begin\{longtable\}\{
{eval:{rows}{gt}{latex-table-rowlimit}} {frame$all|sides:|}
{eval:{rows}{gt}{latex-table-rowlimit}} {colspecs}
{eval:{rows}{gt}{latex-table-rowlimit}} {frame$all|sides:|}
{eval:{rows}{gt}{latex-table-rowlimit}} \}
{eval:{rows}{gt}{latex-table-rowlimit}} \hypertarget\{{id}\}\{\}
{eval:{rows}{gt}{latex-table-rowlimit}} \caption\{{title}\}
{eval:{rows}{gt}{latex-table-rowlimit}} {frame$all|topbot:\hline}
{eval:{rows}{gt}{latex-table-rowlimit}} {headrows}
{eval:{rows}{gt}{latex-table-rowlimit}} {headrows#} \endhead
{eval:{rows}{gt}{latex-table-rowlimit}} {footrows}
{eval:{rows}{gt}{latex-table-rowlimit}} {footrows#} \endlastfoot
{eval:{rows}{gt}{latex-table-rowlimit}}
{eval:{rows}{gt}{latex-table-rowlimit}} {bodyrows}
{eval:{rows}{gt}{latex-table-rowlimit}} {frame$all|topbot:\hline}
{eval:{rows}{gt}{latex-table-rowlimit}} \label\{{id}\}
{eval:{rows}{gt}{latex-table-rowlimit}} \end\{longtable\}
{eval:{rows}{lt}={latex-table-rowlimit}} {title%} \par{latex-indent-paragraphs!\noindent}
{eval:{rows}{lt}={latex-table-rowlimit}} {title#} \begin\{table\}
{eval:{rows}{lt}={latex-table-rowlimit}} {title#} \begin\{center\}
{eval:{rows}{lt}={latex-table-rowlimit}} \hypertarget\{{id}\}\{\}
{eval:{rows}{lt}={latex-table-rowlimit}} \caption\{{title}\}
{eval:{rows}{lt}={latex-table-rowlimit}} \begin\{tabular\}\{
{eval:{rows}{lt}={latex-table-rowlimit}} {frame$all|sides:|}
{eval:{rows}{lt}={latex-table-rowlimit}} {colspecs}
{eval:{rows}{lt}={latex-table-rowlimit}} {frame$all|sides:|}
{eval:{rows}{lt}={latex-table-rowlimit}} \}
{eval:{rows}{lt}={latex-table-rowlimit}} {frame$all|topbot:\hline}
{eval:{rows}{lt}={latex-table-rowlimit}} {headrows}
{eval:{rows}{lt}={latex-table-rowlimit}} {bodyrows}
{eval:{rows}{lt}={latex-table-rowlimit}} {footrows}
{eval:{rows}{lt}={latex-table-rowlimit}} {frame$all|topbot:\hline}
{eval:{rows}{lt}={latex-table-rowlimit}} \end\{tabular\}
{eval:{rows}{lt}={latex-table-rowlimit}} {title#} \end\{center\}
{eval:{rows}{lt}={latex-table-rowlimit}} \label\{{id}\}
{eval:{rows}{lt}={latex-table-rowlimit}} {title#} \end\{table\}
[specialsections]
ifdef::doctype-article[]
^Abstract$=sect-abstract
endif::doctype-article[]
ifdef::doctype-book[]
^Dedication$=sect-dedication
endif::doctype-book[]
^Index$=sect-index
ifdef::latex-use-bibliography-environment[]
^(Bibliography|References)$=sect-bibliography
endif::latex-use-bibliography-environment[]
^Appendix.*$=sect-appendix
^(TOC|Contents)$=sect-toc
^Figures$=sect-list-of-figures
# Special sections.
[sect-list-of-figures]
\listoffigures
[sect-toc]
\label\{{id}\}\hypertarget\{{id}\}\{\}
\tableofcontents
[sect-index]
\setindexpreamble\{
|
\}
\label\{{id}\}\hypertarget\{{id}\}\{\}
\printindex
ifdef::latex-use-bibliography-environment[]
[sect-bibliography]
\label\{{id}\}\hypertarget\{{id}\}\{\}
\begin\{thebibliography\}\{99\}
|
\end\{thebibliography\}
endif::latex-use-bibliography-environment[]
[sect-appendix]
\appendix
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
[sect-abstract]
\label\{{id}\}\hypertarget\{{id}\}\{\}
\begin\{abstract\}
|
\end\{abstract\}
[sect-dedication]
\label\{{id}\}\hypertarget\{{id}\}\{\}
\dedication\{
|
\}
[preamble]
# Untitled elements between header and first section title.
ifdef::doctype-book[]
\frontmatter
\chapter*\{Preface\}
\label\{preamble\}\hypertarget\{preamble\}\{\}
endif::doctype-book[]
|
ifdef::doctype-book[]
\mainmatter
endif::doctype-book[]
# Document sections.
[sect0]
\hypertarget\{{id}\}\{\}
\chapter\{{title}\}
\label\{{id}\}
|
[sect1]
\hypertarget\{{id}\}\{\}
\section\{{title}\}
\label\{{id}\}
[sect2]
\hypertarget\{{id}\}\{\}
\subsection\{{title}\}
\label\{{id}\}
|
[sect3]
\hypertarget\{{id}\}\{\}
\subsubsection\{{title}\}
\label\{{id}\}
|
[sect4]
\hypertarget\{{id}\}\{\}
\minisec\{{title}\}
\label\{{id}\}
|
[header]
{encoding$UTF-8:}% coding: utf-8
\documentclass [a4paper,abstracton,titlepage]\{{doctype@article:scrartcl:scrbook}\}
\pagestyle\{{latex-use-running-title-headings?headings}{latex-use-running-title-headings!plain}\}
\usepackage\{makeidx\}
\usepackage[table]\{xcolor\}
\definecolor\{LinkColor\}\{RGB\}\{85,107,47\}
\definecolor\{TableEvenColor\}\{RGB\}\{238,255,204\}
\definecolor\{TableOddColor\}\{RGB\}\{238,255,255\}
\definecolor\{TableBorderColor\}\{RGB\}\{140,172,187\}
\definecolor\{ListingBorderColor\}\{gray\}\{0.55\}
\definecolor\{ListingBackgroundColor\}\{gray\}\{0.95\}
\definecolor\{SidebarBorderColor\}\{gray\}\{0.95\}
\definecolor\{SidebarBackgroundColor\}\{RGB\}\{255,255,238\}
\usepackage\{type1ec\}
\usepackage[{language=english}]\{babel\}
\usepackage[
pdftex,
pdftitle=\{{doctitle}\},
pdfauthor=\{{author}\},
backref,
pagebackref,
breaklinks=true,
unicode
]
\{hyperref\}
\usepackage\{enumerate\}
\usepackage\{graphicx\}
\usepackage\{longtable\}
\usepackage[T1]\{fontenc\}
\usepackage\{ucs\}
\usepackage[{encoding@ISO-8859-1:latin1}{encoding@UTF-8:utf8x}{encoding!utf8x}]\{inputenc\}
\usepackage\{textcomp\}
\usepackage\{alltt\}
\usepackage\{listings\}
\lstset\{basicstyle=\footnotesize\ttfamily,showstringspaces=false,breaklines,frame=single, rulecolor=\color\{ListingBorderColor\}, backgroundcolor=\color\{ListingBackgroundColor\}, xleftmargin=0cm, linewidth=0.95\textwidth\}
{latex-indent-paragraphs%} \setlength\{\parskip\}\{1ex plus 0.5ex minus 0.2ex\}
\makeatletter
\DeclareRobustCommand*\textsubscript[1]\{%
\@textsubscript\{\selectfont#1\}\}
\def\@textsubscript#1\{%
\{\m@th\ensuremath\{_\{\mbox\{\fontsize\sf@size\z@#1\}\}\}\}\}
\makeatother
\subject\{{subject}\}
\title\{{doctitle}\}
\author\{{author}{email?, \href\{mailto:{email}\}\{{email}\}}\}
\date\{{date}\}
\publishers\{\begin\{tabular\}\{ll\} {revision?\textbf\{Revision:\} & {revision} \\ } {keywords?\textbf\{Keywords:\} & {keywords} \\ } \end\{tabular\}\}
\makeindex
\begin\{document\}
\label\{header\}\hypertarget\{header\}\{\}
{doctitle#\maketitle}
[footer]
\label\{footer\}\hypertarget\{footer\}\{\}
\end\{document\}