Annotation of embedaddon/bird/doc/sbase/dist/birddoc/latex2e/mapping, revision 1.1.1.1
1.1 misho 1:
2: % birddoc to LaTeX replacement file
3:
4: % The \relax is there to avoid sgml2latex rewriting the class
5: <book> + "\\relax\\documentclass\[a4paper,10pt,openany,oneside\]{book}\n"
6: "\\usepackage\[colorlinks=true,linkcolor=blue,pdftitle={BIRD User's Guide}\]{hyperref}\n"
7: "\\usepackage{enumitem}\n"
8: "\\usepackage{birddoc}\n"
9: "\\usepackage{qwertz}\n"
10: "\\usepackage{url}\n"
11: "\\usepackage\[latin1\]{inputenc}\n"
12: "\\usepackage{epsfig}\n"
13: "\\usepackage{[OPTS]}\n"
14: "\\pagestyle{headings}%end-preamble\n" +
15:
16: </book> + "\\end{document}" +
17:
18: % Manual Pages are expected to be formatted using nroff (or groff), unless
19: % they are included as sections of other qwertz documents.
20:
21: <manpage>
22: </manpage>
23:
24: <progdoc> "\\progdoc"
25: </progdoc>
26:
27: <titlepag>
28: </titlepag> + "\n\n\\begin{document}\n"
29: "\\maketitle\n" +
30:
31: <title> + "\\title{"
32: </title> "}" +
33:
34: <subtitle> "\\\\\n"
35: "{\\large "
36: </subtitle> "}" +
37:
38: <author> + "\\author{"
39: </author> "}" +
40:
41: <name>
42: </name>
43:
44: <and> "\\and " +
45: </and>
46:
47: <thanks> "\\thanks{"
48: </thanks> "}"
49:
50: <inst> " \\\\\n\\\\" +
51: </inst>
52:
53: <date> + "\\date{"
54: </date> "}" +
55:
56: <newline> "\\\\ "
57: </newline>
58:
59: <label> "\\label{[ID]}"
60: </label>
61:
62: <header> + "\\markboth"
63: </header>
64:
65: <lhead> "{"
66: </lhead> "}"
67:
68: <rhead> "{"
69: </rhead> "}" +
70:
71: % <comment> + "\n\n\\begin{verbatim}" +
72: % </comment> + "\\end{verbatim}\n\n" +
73:
74: <comment> "{\\tt "
75: </comment> "}"
76:
77: % Hacked by mdw to use linuxdoc-sgml \abstract{...}
78: <abstract> + "\\abstract{"
79: </abstract> "}" +
80:
81: <appendix> + "\n \\appendix \n" +
82: </appendix>
83:
84: <toc> + "\\tableofcontents" +
85: </toc>
86:
87: <lof> + "\\listoffigures" +
88: </lof>
89:
90: <lot> + "\\listoftables" +
91: </lot>
92:
93: <chapt> + "\n\\chapter"
94: </chapt>
95:
96: <sect> + "\n\\section"
97: </sect>
98:
99: <sect1> + "\n\\subsection"
100: </sect1>
101:
102: <sect2> + "\n\\subsubsection"
103: </sect2>
104:
105: <sect3> + "\n\\paragraph"
106: </sect3>
107:
108: <sect4> + "\n\\subparagraph"
109: </sect4>
110:
111: <heading> "{"
112: </heading> "}\n\n"
113:
114: <p> "\\phantomsection{}"
115: </p> "\n\n"
116:
117: <itemize> + "\\begin{itemize}" +
118: </itemize> + "\\end{itemize}" +
119:
120: <enum> + "\\begin{enumerate}" +
121: </enum> + "\\end{enumerate}" +
122:
123: <list> + "\\begin{list}{}{}\n" +
124: </list> + "\\end{list}" +
125:
126: <descrip> + "\\begin{description}\[style=unboxed\]" +
127: </descrip> + "\\end{description}" +
128:
129: <item> + "\\item "
130: </item>
131:
132: <tag> + "\\phantomsection\\item\[{\\ttfamily "
133: </tag> "}\] \\hfil\\break\n" +
134:
135: <tagp> + "\\item\[ "
136: </tagp> "\] \\hfil\\break\n" +
137:
138: <cite> "\\cite{[ID]"
139: </cite> "}"
140:
141: <ncite> "\\cite\[[NOTE]\]{[ID]"
142: </ncite> "}"
143:
144: <idx> "\\idx{"
145: </idx> "}"
146:
147: <cdx> "\\cdx{"
148: </cdx> "}"
149:
150: <nidx> "\\nidx{"
151: </nidx> "}"
152:
153: <ncdx> "\\ncdx{"
154: </ncdx> "}"
155:
156: % The idea here is to automatically insert soft hyphens after every slash in
157: % the filename, so long filenames will break naturally. The url{} macro is
158: % a kluge but it works,
159: <file> "{\\tt "
160: </file> "}"
161:
162: <footnote> "\\footnote{"
163: </footnote> "}"
164:
165: <sq> "``"
166: </sq> "''"
167:
168: <lq> + "\\begin{quotation}\n" +
169: </lq> + "\n\\end{quotation}\n\n" +
170:
171: <em> "{\\it "
172: </em> "\\/}"
173:
174: <m> "{\\it "
175: </m> "\\/}"
176:
177: <bf> "{\\bf "
178: </bf> "}"
179:
180: <it> "{\\it "
181: </it> "\\/}"
182:
183: <sf> "{\\sf "
184: </sf> "}"
185:
186: <sl> "{\\sl "
187: </sl> "}"
188:
189: <rm> "{\\rm "
190: </rm> "}"
191:
192: <tt> "{\\tt "
193: </tt> "}"
194:
195: <cf> "{\\tt "
196: </cf> "}"
197:
198: <const> "{\\tt "
199: </const> "}"
200:
201: <func> "{\\it "
202: </func> "\\/}"
203:
204: <struct> "{\\tt "
205: </struct> "}"
206:
207: <param> "{\\it "
208: </param> "\\/}"
209:
210: <type> "{\\rm "
211: </type> "}"
212:
213: <funcdef> "{\\it "
214: </funcdef> "\\/}"
215:
216: <function> "{\\function "
217: </function> "}\n\n"
218:
219: <funcsect> "\n\\funcsect{"
220: </funcsect> "}"
221:
222: <hrule> "\\hrule"
223:
224: % Added by mdw
225: <cparam> "\\cparam{"
226: </cparam> "}"
227:
228: <ref> "\\hyperref\[[ID]\]{[NAME]} (p.\\,\\getpagerefnumber{[ID]})"
229: </ref>
230:
231: <pageref> "\\pageref{[ID]}"
232: </pageref>
233:
234: %url added by HG
235: <url> "\\href{[URL]}{[NAME]}"
236: </url>
237:
238: <htmlurl> "\\href{[URL]}{[NAME]}"
239: </htmlurl>
240:
241: <rfc> "\\href{http://www.rfc-editor.org/info/rfc[ID]}{RFC [ID]}"
242: </rfc>
243:
244: <x>
245: </x>
246:
247: <mc>
248: </mc>
249:
250: <biblio> + "\\bibliographystyle{[STYLE]}\n"
251: "\\bibliography{[FILES]}\n"
252: "\\addbibtoc{}" +
253: </biblio>
254:
255: % <macro> + "\\macro{[ID]}{\\qw[ID]}"
256: % </macro>
257:
258: % <main> + "\\macro{qwmain}{\\qwmain}"
259: % </main>
260:
261: %<code> + "\\par\n"
262: % "\\medbreak\\hrule\\nopagebreak\n"
263: % "\\begin{verbatim}" +
264: %
265: %</code> + "\\end{verbatim}\n"
266: % "\\nopagebreak\\hrule\\medbreak\n" +
267:
268: <code> + "\\par\n"
269: "\\goodbreak{\\birdnarrow\n"
270: "\\begin{verbatim}" +
271:
272: </code> + "\\end{verbatim}\n"
273: "}\\smallbreak\n" +
274:
275: <verb> + "\\begin{verbatim}" +
276: </verb> + "\\end{verbatim}" +
277:
278: % tscreen added by mdw
279: <tscreen> + "\\begin{tscreen}" +
280: </tscreen> + "\\end{tscreen}" +
281:
282: <quote> + "\\begin{quotation}" +
283: </quote> + "\\end{quotation}" +
284:
285: % theorems and such
286:
287: <def> + "\\begin{definition}"
288: </def> + "\\end{definition}\n\n" +
289:
290: <prop> + "\\begin{proposition}" +
291: </prop> + "\\end{proposition}" +
292:
293: <lemma> + "\\begin{lemma}"
294: </lemma> + "\\end{lemma}\n\n" +
295:
296: <coroll> + "\\begin{corollary}"
297: </coroll> + "\\end{corollary}\n\n" +
298:
299: <proof> + "\n{\\noindent{\\bf Proof.} " +
300: </proof> + "}"
301:
302: <theorem> + "\\begin{theorem}"
303: </theorem> + "\\end{theorem}\n\n" +
304:
305: <thtag> "\["
306: </thtag> "\]" +
307:
308: % mathematics
309:
310: <f> "$"
311: </f> "$"
312:
313: <dm> + "\\\["
314: </dm> "\\\]" +
315:
316: <eq> + "\\begin{equation}" +
317: </eq> + "\\end{equation}\n" +
318:
319: <fr> "\\frac"
320: </fr>
321:
322: <nu> "{"
323: </nu> "}"
324:
325: <de> "{"
326: </de> "}"
327:
328: <lim>
329: </lim>
330:
331: <op>
332: </op>
333:
334: <ll> "_{"
335: </ll> "}"
336:
337: <ul> "^{"
338: </ul> "}"
339:
340: <opd>
341: </opd>
342:
343: <pr> "\\prod"
344: </pr>
345:
346: <in> "\\int"
347: </in>
348:
349: <sum> "\\sum"
350: </sum>
351:
352: <root> "\\sqrt\[[n]\]{"
353: </root> "}"
354:
355: <ar> + "\\begin{array}{[ca]}" +
356: </ar> + "\\end{array}" +
357:
358: <arr> " \\\\ " +
359: </arr>
360:
361: <arc> " & "
362: </arc>
363:
364:
365: <sup> "^{"
366: </sup> "}"
367:
368: <inf> "_{"
369: </inf> "}"
370:
371: <unl> "\\underline{"
372: </unl> "}"
373:
374: <ovl> "\\overline{"
375: </ovl> "}"
376:
377: <rf> "\\mbox{\\tt "
378: </rf> "}"
379:
380: <v> "\\vec{"
381: </v> "}"
382:
383: <fi> "{\\cal "
384: </fi> "}"
385:
386: <phr> "{\\rm "
387: </phr> "}"
388:
389: <tu> "\\\\ \n"
390: </tu>
391:
392: % figures
393:
394: <figure> + "\\begin{figure}\[[LOC]\]" +
395: </figure> + "\\end{figure}\n" +
396:
397: <eps> + "\\centerline{\\epsfig{file=[FILE],height=[HEIGHT],angle=[ANGLE]}}" +
398: </eps>
399:
400:
401: <ph> + "\\vspace{[VSPACE]}\n\\par" +
402: </ph>
403:
404: <caption> + "\\caption{"
405: </caption> "}" +
406:
407: % tables
408:
409: <table> + "\\begin{table}\[[LOC]\]" +
410: </table> + "\\end{table}" +
411:
412: <tabular> + "\\begin{center}\n"
413: "\\begin{tabular}{[ca]}" +
414: </tabular> + "\\end{tabular}\n"
415: "\\end{center}" +
416:
417: <rowsep> "\\\\ " +
418: </rowsep>
419:
420: <colsep> "& "
421: </colsep>
422:
423: <hline> + "\\hline" +
424: </hline>
425:
426: % end of latex replacement file
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>