freebsd-dev/share/sgml/transpec/linuxdoc-latex.ts
John Fieber 97f7bd91dd * Disguise dollar signs in HTML output
* fix botched URL rul for latex
* Alias font C to font R for nroff
1996-09-08 19:20:05 +00:00

988 lines
11 KiB
TypeScript

<!--
$Id: linuxdoc-latex.ts,v 1.1.1.1 1996/09/08 02:37:39 jfieber Exp $
Copyright (C) 1996
John R. Fieber. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY JOHN R. FIEBER AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL JOHN R. FIEBER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<!DOCTYPE transpec PUBLIC "-//FreeBSD//DTD transpec//EN" [
<!ENTITY lt CDATA "<">
<!ENTITY gt CDATA ">">
<!ENTITY amp CDATA "&">
<!--<!ENTITY % ISOlat1 PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN">
%ISOlat1;-->
<!ENTITY texstf
"\def\obeyspaces{\catcode`\ =\active}
{\obeyspaces\global\let =\space}
{\catcode`\^^M=\active %
\gdef\obeylines{\catcode`\^^M=\active \let^^M=\par}%
\global\let^^M=\par} %">
<!ENTITY cmap SYSTEM "/usr/share/sgml/transpec/latex.cmap">
<!ENTITY sdata SYSTEM "/usr/share/sgml/transpec/latex.sdata">
]>
<transpec>
<cmap>
&cmap;
</cmap>
<smap>
&sdata;
</smap>
<rule>
<match>
<gi>LINUXDOC
<action>
<start>
% Generated ${date} using ${transpec}
% by ${user}@${host}
</rule>
<rule>
<match>
<gi>ARTICLE
<attval>OPTS .
<action>
<start>^\documentclass{${_gi L}}
\usepackage{${OPTS}}
%\usepackage{linuxdoc}
&texstf;^</start>
<end>^\end{document}^</end>
</rule>
<rule>
<match>
<gi>ARTICLE
<action>
<start>^\documentclass{${_gi L}}
\usepackage{linuxdoc}
&texstf;^</start>
<end>^\end{document}^</end>
</rule>
<rule>
<match>
<gi>REPORT BOOK
<attval>OPTS .
<action>
<start>^\documentclass{${_gi L}}
\usepackage{${OPTS}}
\usepackage{linuxdoc}
\pagestyle{headings}
&texstf;^</start>
<end>^\end{document}^</end>
</rule>
<rule>
<match>
<gi>REPORT BOOK
<action>
<start>^\documentclass{${_gi L}}
\usepackage{linuxdoc}
\pagestyle{headings}
&texstf;^</start>
<end>^\end{document}^</end>
</rule>
<rule>
<match>
<gi>MANPAGE
<action>
<start>
<end>
</rule>
<rule>
<match>
<gi>TITLEPAG
<action>
<end>^\begin{document}
\maketitle^<end>
</rule>
<rule>
<match>
<gi>TITLE
<action>
<start>^\title{</start>
<end>}^</end>
</rule>
<rule>
<match>
<gi>SUBTITLE
<action>
<start>^{\large </start>
<end>}^</end>
</rule>
<rule>
<match>
<gi>AUTHOR
<action>
<start>^\author{</start>
<end>}^</end>
</rule>
<rule>
<match>
<gi>NAME
<action>
<start>
<end>
</rule>
<rule>
<match>
<gi>AND
<action>
<start>\and ^</start>
</rule>
<rule>
<match>
<gi>THANKS
<action>
<start>\thanks{
<end>}
</rule>
<rule>
<match>
<gi>INST
<action>
<start>\\
\\^</start>
</rule>
<rule>
<match>
<gi>DATE
<action>
<start>^\date{</start>
<end>}^</end>
</rule>
<rule>
<match>
<gi>NEWLINE
<action>
<start>\\
<end>
</rule>
<rule>
<match>
<gi>LABEL
<action>
<start>\label{${ID}}
</rule>
<rule>
<match>
<gi>HEADER
<action>
<start>^\markboth</start>
</rule>
<rule>
<match>
<gi>LHEAD
<action>
<start>{
<end>}
</rule>
<rule>
<match>
<gi>RHEAD
<action>
<start>{</start>
<end>}^</end>
</rule>
<rule>
<match>
<gi>COMMENT
<action>
<start>{\tt
<end>}
</rule>
<rule>
<match>
<gi>ABSTRACT
<action>
<start>^\abstract{</start>
<end>}^</end>
</rule>
<rule>
<match>
<gi>APPENDIX
<action>
<start>^\appendix^</start>
</rule>
<rule>
<match>
<gi>TOC
<action>
<start>^\tableofcontents^</start>
</rule>
<rule>
<match>
<gi>LOF
<action>
<start>^\listoffigures^</start>
</rule>
<rule>
<match>
<gi>LOT
<action>
<start>^\listoftables^</start>
</rule>
<rule>
<match>
<gi>PART
<action>
<start>^\part</start>
</rule>
<rule>
<match>
<gi>CHAPT
<action>
<start>^\chapter</start>
</rule>
<rule>
<match>
<gi>SECT
<action>
<start>^\section</start>
</rule>
<rule>
<match>
<gi>SECT1
<action>
<start>^\subsection</start>
</rule>
<rule>
<match>
<gi>SECT2
<action>
<start>^\subsubsection</start>
</rule>
<rule>
<match>
<gi>SECT3
<action>
<start>^\paragraph</start>
</rule>
<rule>
<match>
<gi>SECT4
<action>
<start>^\subparagraph</start>
<end>
</rule>
<rule>
<match>
<gi>HEADING
<action>
<start>{
<end>}
</end>
</rule>
<rule>
<match>
<gi>P
<action>
<end>^
^</end>
</rule>
<rule>
<match>
<gi>ITEMIZE
<action>
<start>^\begin{itemize}^</start>
<end>^\end{itemize}^</end>
</rule>
<rule>
<match>
<gi>ENUM
<action>
<start>^\begin{enumerate}^</start>
<end>^\end{enumerate}^</end>
</rule>
<rule>
<match>
<gi>LIST
<action>
<start>^\begin{list}{}{}^</start>
<end>^\end{list}^</end>
</rule>
<rule>
<match>
<gi>DESCRIP
<action>
<start>^\begin{description}^</start>
<end>^\end{description}^</end>
</rule>
<rule>
<match>
<gi>ITEM
<action>
<start>^\item </start>
</rule>
<rule>
<match>
<gi>TAG
<action>
<start>^\item\[</start>
<end>\] \mbox{}</end>
</rule>
<rule>
<match>
<gi>CITE
<action>
<start>\cite{${ID}
<end>}
</rule>
<rule>
<match>
<gi>NCITE
<action>
<start>\cite\[${NOTE}\]{${ID}
<end>}
</rule>
<rule>
<match>
<gi>IDX
<action>
<start>\idx{
<end>}
</rule>
<rule>
<match>
<gi>CDX
<action>
<start>\cdx{
<end>}
</rule>
<rule>
<match>
<gi>FOOTNOTE
<action>
<start>\footnote{
<end>}
</rule>
<rule>
<match>
<gi>SQ
<action>
<start>``
<end>''
</rule>
<rule>
<match>
<gi>LQ
<action>
<start>^\begin{quotation}^</start>
<end>^\end{quotation}^</end>
</rule>
<rule>
<match>
<gi>EM
<action>
<start>\emph{
<end>}
</rule>
<rule>
<match>
<gi>BF
<action>
<start>{\bf
<end>}
</rule>
<rule>
<match>
<gi>IT
<action>
<start>\textit{
<end>}
</rule>
<rule>
<match>
<gi>SF
<action>
<start>\textsf{
<end>}
</rule>
<rule>
<match>
<gi>SL
<action>
<start>\textsl{
<end>}
</rule>
<rule>
<match>
<gi>RM
<action>
<start>\textrm{
<end>}
</rule>
<rule>
<match>
<gi>TT
<action>
<start>\texttt{
<end>}
</rule>
<rule>
<match>
<gi>CPARAM
<action>
<start>{\rm $\langle${\sl </start>
<end>}$\rangle$}</end>
</rule>
<rule>
<match>
<gi>REF
<action>
<start>\ref{${ID}}
<end>
</rule>
<rule>
<match>
<gi>PAGEREF
<action>
<start>\pageref{${ID}}
<end>
</rule>
<!-- A URL with a NAME attribute -->
<rule>
<match>
<gi>URL
<attval>NAME .
<action>
<start>${NAME}\footnote{${URL}}</start>
</rule>
<!-- A URL without a NAME attribute -->
<rule>
<match>
<gi>URL
<action>
<start>\texttt{&lt;URL:${URL}>}</start>
</rule>
<rule>
<match>
<gi>HTMLURL
<action>
<start>${NAME}
<end>
</rule>
<rule>
<match>
<gi>X
<action>
<start>
<end>
</rule>
<rule>
<match>
<gi>MC
<action>
<start>
<end>
</rule>
<rule>
<match>
<gi>BIBLIO
<action>
<start>^\bibliographystyle{${STYLE}}
\bibliography{${FILES}}^</start>
</rule>
<rule>
<match>
<gi>CODE
<action>
<start>^\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}^</start>
<end>^\end{verbatim}
\nopagebreak\hrule
\addvspace{\medskipamount}^</end>
</rule>
<rule>
<match>
<gi>VERB
<action>
<start>^{\obeyspaces\obeylines^</start>
<end>}^</end>
</rule>
<rule>
<match>
<gi>TSCREEN
<action>
<start>^\begin{quote}{\small\tt^</start>
<end>^}\end{quote}^</end>
</rule>
<rule>
<match>
<gi>QUOTE
<action>
<start>^\begin{quotation}^</start>
<end>^\end{quotation}^</end>
</rule>
<rule>
<match>
<gi>DEF
<action>
<start>^\begin{definition}</start>
<end>^\end{definition}^</end>
</rule>
<rule>
<match>
<gi>PROP
<action>
<start>^\begin{proposition}^
<end>^\end{proposition}^
</rule>
<rule>
<match>
<gi>LEMMA
<action>
<start>^\begin{lemma}
<end>^\end{lemma}^
</rule>
<rule>
<match>
<gi>COROLL
<action>
<start>^\begin{corollary}
<end>^\end{corollary}^
</rule>
<rule>
<match>
<gi>PROOF
<action>
<start>^{\noindent{\bf Proof.} ^
<end>^}
</rule>
<rule>
<match>
<gi>THEOREM
<action>
<start>^\begin{theorem}
<end>^\end{theorem}^
</rule>
<rule>
<match>
<gi>THTAG
<action>
<start>\[
<end>\]^
</rule>
<rule>
<match>
<gi>F
<action>
<start>\$
<end>\$
</rule>
<rule>
<match>
<gi>DM
<action>
<start>^\\[
<end>\\]^
</rule>
<rule>
<match>
<gi>EQ
<action>
<start>^\begin{equation}^
<end>^\end{equation}^
</rule>
<rule>
<match>
<gi>FR
<action>
<start>\frac
<end>
</rule>
<rule>
<match>
<gi>NU
<action>
<start>{
<end>}
</rule>
<rule>
<match>
<gi>DE
<action>
<start>{
<end>}
</rule>
<rule>
<match>
<gi>LIM
<action>
<start>
<end>
</rule>
<rule>
<match>
<gi>OP
<action>
<start>
<end>
</rule>
<rule>
<match>
<gi>LL
<action>
<start>_{
<end>}
</rule>
<rule>
<match>
<gi>UL
<action>
<start>^{
<end>}
</rule>
<rule>
<match>
<gi>OPD
<action>
<start>
<end>
</rule>
<rule>
<match>
<gi>PR
<action>
<start>\prod
<end>
</rule>
<rule>
<match>
<gi>IN
<action>
<start>\int
<end>
</rule>
<rule>
<match>
<gi>SUM
<action>
<start>\sum
<end>
</rule>
<rule>
<match>
<gi>ROOT
<action>
<start>\sqrt\[[n]\]{
<end>}
</rule>
<rule>
<match>
<gi>AR
<action>
<start>^\begin{array}{[ca]}^
<end>^\end{array}^
</rule>
<rule>
<match>
<gi>ARR
<action>
<start>\\ ^
<end>
</rule>
<rule>
<match>
<gi>ARC
<action>
<start>&
<end>
</rule>
<rule>
<match>
<gi>SUP
<action>
<start>^{
<end>}
</rule>
<rule>
<match>
<gi>INF
<action>
<start>_{
<end>}
</rule>
<rule>
<match>
<gi>UNL
<action>
<start>\underline{
<end>}
</rule>
<rule>
<match>
<gi>OVL
<action>
<start>\overline{
<end>}
</rule>
<rule>
<match>
<gi>RF
<action>
<start>\mbox{\tt
<end>}
</rule>
<rule>
<match>
<gi>V
<action>
<start>\vec{
<end>}
</rule>
<rule>
<match>
<gi>FI
<action>
<start>{\cal
<end>}
</rule>
<rule>
<match>
<gi>PHR
<action>
<start>{\rm
<end>}
</rule>
<rule>
<match>
<gi>TU
<action>
<start>\\
<end>
</rule>
<rule>
<match>
<gi>FIGURE
<action>
<start>^\begin{figure}\[${LOC}\]^
<end>^\end{figure}^
</rule>
<rule>
<match>
<gi>EPS
<action>
<start>^\centerline{\epsffile{${FILE}}}^
<end>
</rule>
<rule>
<match>
<gi>PH
<action>
<start>^\vspace{${VSPACE}}\par^
<end>
</rule>
<rule>
<match>
<gi>CAPTION
<action>
<start>^\caption{
<end>}^
</rule>
<rule>
<match>
<gi>TABLE
<action>
<start>^\begin{table}\[${LOC}\]^
<end>^\end{table}^
</rule>
<rule>
<match>
<gi>TABULAR
<action>
<start>^\begin{center}
\begin{tabular}{${CA}}^
<end>^\end{tabular}
\end{center}^
</rule>
<rule>
<match>
<gi>ROWSEP
<action>
<start>\\ ^
<end>
</rule>
<rule>
<match>
<gi>COLSEP
<action>
<start>&
<end>
</rule>
<rule>
<match>
<gi>HLINE
<action>
<start>^\hline^
<end>
</rule>
<rule>
<match>
<gi>SLIDES
<action>
<start>^\documentstyle\[qwertz,dina4,xlatin1,${OPTS}\]{article}
\input{epsf.tex}
\def\title#1{
\begin{center}
\bf\LARGE
\#1
\end{center}
\bigskip
}
\begin{document}^
<end>^\end{document}^
</rule>
<rule>
<match>
<gi>SLIDE
<action>
<start>
<end>^\newpage^
</rule>
</transpec>