0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-28 20:51:53 +00:00
bird/doc/sbase/dist/birddoc/latex2e/mapping

427 lines
6.5 KiB
Plaintext
Raw Normal View History

% birddoc to LaTeX replacement file
% The \relax is there to avoid sgml2latex rewriting the class
<book> + "\\relax\\documentclass\[a4paper,10pt,openany,oneside\]{book}\n"
2016-09-29 12:05:25 +00:00
"\\usepackage\[colorlinks=true,linkcolor=blue,pdftitle={BIRD User's Guide}\]{hyperref}\n"
2016-10-03 08:59:43 +00:00
"\\usepackage{enumitem}\n"
"\\usepackage{birddoc}\n"
"\\usepackage{qwertz}\n"
"\\usepackage{url}\n"
"\\usepackage\[latin1\]{inputenc}\n"
"\\usepackage{epsfig}\n"
"\\usepackage{[OPTS]}\n"
"\\pagestyle{headings}%end-preamble\n" +
</book> + "\\end{document}" +
% Manual Pages are expected to be formatted using nroff (or groff), unless
2016-09-29 09:20:04 +00:00
% they are included as sections of other qwertz documents.
<manpage>
</manpage>
<progdoc> "\\progdoc"
</progdoc>
<titlepag>
</titlepag> + "\n\n\\begin{document}\n"
"\\maketitle\n" +
2016-09-29 09:20:04 +00:00
<title> + "\\title{"
</title> "}" +
<subtitle> "\\\\\n"
"{\\large "
</subtitle> "}" +
2016-09-29 09:20:04 +00:00
<author> + "\\author{"
</author> "}" +
2016-09-29 09:20:04 +00:00
<name>
</name>
<and> "\\and " +
</and>
<thanks> "\\thanks{"
</thanks> "}"
<inst> " \\\\\n\\\\" +
</inst>
<date> + "\\date{"
</date> "}" +
2016-09-29 09:20:04 +00:00
<newline> "\\\\ "
</newline>
<label> "\\label{[ID]}"
</label>
<header> + "\\markboth"
2016-09-29 09:20:04 +00:00
</header>
<lhead> "{"
</lhead> "}"
<rhead> "{"
</rhead> "}" +
% <comment> + "\n\n\\begin{verbatim}" +
% </comment> + "\\end{verbatim}\n\n" +
<comment> "{\\tt "
</comment> "}"
% Hacked by mdw to use linuxdoc-sgml \abstract{...}
2016-09-29 09:20:04 +00:00
<abstract> + "\\abstract{"
</abstract> "}" +
<appendix> + "\n \\appendix \n" +
</appendix>
<toc> + "\\tableofcontents" +
</toc>
<lof> + "\\listoffigures" +
</lof>
<lot> + "\\listoftables" +
</lot>
<chapt> + "\n\\chapter"
</chapt>
<sect> + "\n\\section"
</sect>
<sect1> + "\n\\subsection"
</sect1>
<sect2> + "\n\\subsubsection"
</sect2>
<sect3> + "\n\\paragraph"
2016-09-29 09:20:04 +00:00
</sect3>
<sect4> + "\n\\subparagraph"
</sect4>
<heading> "{"
2016-09-29 09:20:04 +00:00
</heading> "}\n\n"
<p> "\\phantomsection{}"
</p> "\n\n"
<itemize> + "\\begin{itemize}" +
</itemize> + "\\end{itemize}" +
<enum> + "\\begin{enumerate}" +
</enum> + "\\end{enumerate}" +
<list> + "\\begin{list}{}{}\n" +
</list> + "\\end{list}" +
2016-10-03 08:59:43 +00:00
<descrip> + "\\begin{description}\[style=unboxed\]" +
</descrip> + "\\end{description}" +
<item> + "\\item "
</item>
<tag> + "\\phantomsection\\item\[{\\ttfamily "
</tag> "}\] \\hfil\\break\n" +
<tagp> + "\\item\[ "
</tagp> "\] \\hfil\\break\n" +
<cite> "\\cite{[ID]"
</cite> "}"
<ncite> "\\cite\[[NOTE]\]{[ID]"
</ncite> "}"
<idx> "\\idx{"
</idx> "}"
<cdx> "\\cdx{"
</cdx> "}"
<nidx> "\\nidx{"
</nidx> "}"
<ncdx> "\\ncdx{"
</ncdx> "}"
% The idea here is to automatically insert soft hyphens after every slash in
% the filename, so long filenames will break naturally. The url{} macro is
% a kluge but it works,
2016-10-03 10:04:44 +00:00
<file> "{\\tt "
</file> "}"
<footnote> "\\footnote{"
</footnote> "}"
<sq> "``"
</sq> "''"
<lq> + "\\begin{quotation}\n" +
</lq> + "\n\\end{quotation}\n\n" +
<em> "{\\it "
</em> "\\/}"
<m> "{\\it "
</m> "\\/}"
<bf> "{\\bf "
</bf> "}"
<it> "{\\it "
</it> "\\/}"
<sf> "{\\sf "
</sf> "}"
<sl> "{\\sl "
</sl> "}"
<rm> "{\\rm "
</rm> "}"
<tt> "{\\tt "
</tt> "}"
<cf> "{\\tt "
</cf> "}"
<const> "{\\tt "
</const> "}"
<func> "{\\it "
</func> "\\/}"
<struct> "{\\tt "
</struct> "}"
<param> "{\\it "
</param> "\\/}"
<type> "{\\rm "
</type> "}"
<funcdef> "{\\it "
</funcdef> "\\/}"
<function> "{\\function "
</function> "}\n\n"
<funcsect> "\n\\funcsect{"
</funcsect> "}"
<hrule> "\\hrule"
% Added by mdw
<cparam> "\\cparam{"
</cparam> "}"
<ref> "\\hyperref\[[ID]\]{[NAME]} (p.\\,\\getpagerefnumber{[ID]})"
</ref>
<pageref> "\\pageref{[ID]}"
</pageref>
%url added by HG
<url> "\\href{[URL]}{[NAME]}"
</url>
<htmlurl> "\\href{[URL]}{[NAME]}"
</htmlurl>
2016-09-29 16:08:40 +00:00
<rfc> "\\href{http://www.rfc-editor.org/info/rfc[ID]}{RFC [ID]}"
</rfc>
2016-09-29 09:20:04 +00:00
<x>
</x>
2016-09-29 09:20:04 +00:00
<mc>
</mc>
<biblio> + "\\bibliographystyle{[STYLE]}\n"
"\\bibliography{[FILES]}\n"
"\\addbibtoc{}" +
2016-09-29 09:20:04 +00:00
</biblio>
% <macro> + "\\macro{[ID]}{\\qw[ID]}"
% </macro>
% <main> + "\\macro{qwmain}{\\qwmain}"
% </main>
%<code> + "\\par\n"
% "\\medbreak\\hrule\\nopagebreak\n"
% "\\begin{verbatim}" +
%
%</code> + "\\end{verbatim}\n"
% "\\nopagebreak\\hrule\\medbreak\n" +
<code> + "\\par\n"
"\\goodbreak{\\birdnarrow\n"
"\\begin{verbatim}" +
</code> + "\\end{verbatim}\n"
"}\\smallbreak\n" +
<verb> + "\\begin{verbatim}" +
</verb> + "\\end{verbatim}" +
% tscreen added by mdw
<tscreen> + "\\begin{tscreen}" +
</tscreen> + "\\end{tscreen}" +
<quote> + "\\begin{quotation}" +
</quote> + "\\end{quotation}" +
% theorems and such
<def> + "\\begin{definition}"
</def> + "\\end{definition}\n\n" +
<prop> + "\\begin{proposition}" +
</prop> + "\\end{proposition}" +
<lemma> + "\\begin{lemma}"
</lemma> + "\\end{lemma}\n\n" +
<coroll> + "\\begin{corollary}"
</coroll> + "\\end{corollary}\n\n" +
<proof> + "\n{\\noindent{\\bf Proof.} " +
</proof> + "}"
<theorem> + "\\begin{theorem}"
</theorem> + "\\end{theorem}\n\n" +
<thtag> "\["
</thtag> "\]" +
2016-09-29 09:20:04 +00:00
% mathematics
<f> "$"
</f> "$"
2016-09-29 09:20:04 +00:00
<dm> + "\\\["
</dm> "\\\]" +
<eq> + "\\begin{equation}" +
</eq> + "\\end{equation}\n" +
<fr> "\\frac"
2016-09-29 09:20:04 +00:00
</fr>
<nu> "{"
</nu> "}"
<de> "{"
</de> "}"
2016-09-29 09:20:04 +00:00
<lim>
</lim>
<op>
</op>
<ll> "_{"
</ll> "}"
<ul> "^{"
</ul> "}"
<opd>
</opd>
<pr> "\\prod"
</pr>
<in> "\\int"
</in>
<sum> "\\sum"
2016-09-29 09:20:04 +00:00
</sum>
<root> "\\sqrt\[[n]\]{"
</root> "}"
<ar> + "\\begin{array}{[ca]}" +
</ar> + "\\end{array}" +
<arr> " \\\\ " +
</arr>
<arc> " & "
</arc>
<sup> "^{"
</sup> "}"
<inf> "_{"
</inf> "}"
<unl> "\\underline{"
</unl> "}"
<ovl> "\\overline{"
</ovl> "}"
<rf> "\\mbox{\\tt "
</rf> "}"
<v> "\\vec{"
</v> "}"
<fi> "{\\cal "
</fi> "}"
<phr> "{\\rm "
</phr> "}"
<tu> "\\\\ \n"
</tu>
% figures
<figure> + "\\begin{figure}\[[LOC]\]" +
</figure> + "\\end{figure}\n" +
<eps> + "\\centerline{\\epsfig{file=[FILE],height=[HEIGHT],angle=[ANGLE]}}" +
2016-09-29 09:20:04 +00:00
</eps>
<ph> + "\\vspace{[VSPACE]}\n\\par" +
2016-09-29 09:20:04 +00:00
</ph>
<caption> + "\\caption{"
</caption> "}" +
% tables
<table> + "\\begin{table}\[[LOC]\]" +
</table> + "\\end{table}" +
<tabular> + "\\begin{center}\n"
"\\begin{tabular}{[ca]}" +
</tabular> + "\\end{tabular}\n"
"\\end{center}" +
<rowsep> "\\\\ " +
</rowsep>
<colsep> "& "
</colsep>
<hline> + "\\hline" +
</hline>
% end of latex replacement file