% linuxdoc to texinfo replacement file
% Heavily based on qwertz one

<qwertz>					+
</qwertz>					+

<article>	+ "\\input texinfo\n"		+
</article>	+ "@bye"			+

<dina4>		+ "@afourpaper"			+
</dina4>

% Manual Pages are expected to be formatted using nroff (or groff), unless
% they are included  as sections of other qwertz documents.

<manpage>
</manpage>

%<titlepag>	+	"@node Top\n@top"	+
<titlepag>	+	"@TOP"			+
</titlepag>	+

<title>		+	"@title "
</title>

<subtitle>	+	"@subtitle "
</subtitle>

<author>	+	"@author "
</author>

<name>
</name>

<and>			" and "
</and>

<thanks>		" thanks to "
</thanks>

% ???
<inst>			" \\\\\n\\\\" 		+
</inst>

<date>		+	"@subtitle "
</date>

<abstract>	+	"\n\n"
</abstract>	 	""			+

<newline>		"@*"
</newline>

% ----------

<toc>
</toc>

<lof>
</lof>

<lot>
</lot>

% ----------

<header>	+	"@c %% "
</header>

<lhead>			"{"
</lhead>		"}"

<rhead>			"{"
</rhead>		"}"			+

<heading>		""
</heading>		"\n\n"

<sect>		+	"\n@SUB "
</sect>		+       "@ENDSUB"		+

<sect1>		+	"\n@SUB "
</sect1>	+       "@ENDSUB"		+

<sect2>		+	"\n@SUB "
</sect2>	+       "@ENDSUB"		+

<sect3>		+	"\n@SUB "
</sect3>	+       "@ENDSUB"		+

<sect4>		+	"\n@SUB "
</sect4>	+       "@ENDSUB"		+

<appendix>	+	"\n@appendix "
</appendix>

<biblio>
</biblio>

<p>
</p>			"\n\n"

% ------------ List environments -----------------

<itemize>	+	"@itemize @bullet"	+
</itemize>	+	"@end itemize"		+

<enum>		+	"@enumerate"		+
</enum>		+	"@end enumerate"	+

<list>		+	"@itemize"     		+
</list>		+	"@end itemize"		+

<descrip>	+	"@table @code"		+
</descrip>	+	"@end table"		+

<item>		+	"@item\n"
</item>

<tag>		+	"@item "
</tag>			"\n"

% -- index commands are ignored for non LaTeX backends --

<idx>
</idx>

<cdx>
</cdx>

<nidx>
</nidx>

<ncdx>
</ncdx>

% ------------- referencing things ------------------

<label>		+	"@LABEL [ID]"
</label>	+

<ref>		+	"@REF [ID]"		+
</ref>

<pageref>		"@REF [ID]"
</pageref>

<cite>			"\\cite{[ID]"
</cite>			"}"

<ncite>			"\\cite\[[NOTE]\]{[ID]"
</ncite>		"}"

<url>                  "@uref{[URL],[NAME]}"
</url>

<htmlurl>              "@uref{[NAME]}"
</htmlurl>

% 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,
<file>			"\\url{"
</file>			"}"

<footnote>		"@footnote{"
</footnote>		"}"

<sq>			"``"
</sq>			"''"

% ------------- Different emphasis ------------------------

<em>		 	"@emph{"
</em>			"}"

<it>			"`"
</it>			"'"

<bf>			"@strong{"
</bf>			"}"

<sf>			""
</sf>			""

<sl>			"`"
</sl>			"'"

<tt>			"`"
</tt>			"'"

% Added by mdw
<cparam>		"\\cparam{"
</cparam>		"}"

<sc>			"@sc{"
</sc>			"}"

<rm>			"`"
</rm>			"'"

% ------------

<x>
</x>

<mc>
</mc>

<code>		+	"@example"		+
</code>		+	"@end example"		+

<verb>
</verb>

<tscreen>	+	"@example"		+
</tscreen>	+	"@end example"		+

<quote>		+       "@quotation"    	+
</quote>        +       "@end quotation" 	+

<lq>		+       "@quotation"    	+
</lq>	        +       "@end quotation" 	+

<comment>	+	"@example"		+
</comment>	+	"@end example"		+

% ------------ theorems and such ---------------------

<def>		+	"@deffn"
</def>		+	"@end deffn"	 	+

<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>		"\]"			+

% ------------ mathematics. Unused by linuxdoc ?? --

<f>			"$"
</f>			"$"

<dm>		+	"\\\["
</dm>			"\\\]"  		+

<eq>		+	"\\begin{equation}"	+
</eq>		+	"\\end{equation}\n"	+

<fr>			"\\frac"
</fr>

<nu>			"{"
</nu>			"}"

<de>			"{"
</de>			"}"

<lim>
</lim>

<op>
</op>

<ll>			"_{"
</ll>			"}"

<ul>			"^{"
</ul>			"}"

<opd>
</opd>

<pr>			"\\prod"
</pr>

<in>			"\\int"
</in>

<sum>			"\\sum"
</sum>

<root>			"\\sqrt\[[n]\]{"
</root>			"}"

<ar>		+	"\\begin{array}{[ca]}"	+
</ar>		+	"\\end{array}"		+

<arr>                   " \\\\ " +
</arr>

<arc>                   " & "
</arc>


<sup>			"^("
</sup>			")"

<inf>			"_("
</inf>			")"

<unl>			"*"
</unl>			"*"

<ovl>			"ol("
</ovl>			")"

<rf>			"\\mbox{\\tt "
</rf>			"}"

<v>			"\\vec{"
</v>			"}"

<fi>			""
</fi>			""

<phr>			"{@r{}"
</phr>			"}"

<tu>			"\\\\ \n"
</tu>

% --------------- figures and tables ---------------------------

% <figure>	+	"\\begin{figure}\[[LOC]\]"	+
% </figure>	+	"\\end{figure}\n"		+

% <eps>		+   	"\\centerline{\\epsffile{[FILE].ps}}"  +
% </eps>


% <ph>		+	"\\vspace{[VSPACE]}\n\\par"	+
% </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}"		+

<tabular>	+	"@table @asis \n"
			"@item "		+
</tabular>	+	"@end table"		+

% <rowsep>		"\\\\ "			+
% </rowsep>

<rowsep>		" @*\n"			+
</rowsep>

% <colsep>		"& "
% </colsep>

<colsep>		"  |  \n"
</colsep>

<caption>	+	"@*\n@center "
</caption>		"\n" 			+

% <hline>		+	"\\hline"	+
% </hline>


% =============== end of texinfo replacement file ==============

