1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
%% -*-latex-*-
%%
%% Version Information:
\typeout{Generating XML from Latex (experimental)}
%%
%%
%%
%% ----------------------------------------------------------------------
%%
%% Default settings for internally used macros
%%
\setcounter{htmldepth}{0} % this isn't actually used
\setcounter{htmlautomenu}{0}
\renewcommand{\HlxTopPanel}{}
\renewcommand{\HlxBottomMatter}{}
\renewcommand{\HlxBottomPanel}{}
\newcommand{\HlxXmlIntro}{\xml{hyperlatex}}
\newcommand{\HlxXmlExtro}{\xml{/hyperlatex}}
%%
%% ----------------------------------------------------------------------
%%
%% Environments
%%
\newcommand{\Hlxnewtheorem}[3]{%
\newenvironment{#1}{\HlxBlk\xml{theorem}\xml{p}\textbf{#2.}}
{\xml{/p}\xml{/theorem}}}
\newenvironment{blockquote}{\HlxBlk\xml{blockquote}}{\HlxBlk\xml{/blockquote}}
\newenvironment{verse}{\HlxBlk\xml{verse}\xml{p}}{\xml{/p}\xml{/verse}}
\newenvironment{quote}{\HlxBlk\xml{quote}\xml{p}}{\xml{/p}\xml{/quote}}
\newenvironment{quotation}
{\HlxBlk\xml{quotation}\xml{p}}{\xml{/p}\xml{/quotation}}
\newenvironment{center}
{\HlxBlk\xml{center}\xml{p}\HlxBlk}
{\xml{/p}\HlxBlk\xml{/center}\HlxBlk}
\newenvironment{itemize}{\HlxBlk\xml{ul}\begingroup
\newcommand{\item}{\HlxBlk\xml{li}}\ignorespaces}{\endgroup
\HlxBlk\xml{/ul}}
\newenvironment{menu}{\HlxBlk\xml{ul}\begingroup
\newcommand{\item}{\HlxBlk\xml{li}}\ignorespaces}{\endgroup
\HlxBlk\xml{/ul}}
\newenvironment{enumerate}{\HlxBlk\xml{ol}\begingroup
\newcommand{\item}{\HlxBlk\xml{li}}\ignorespaces}{\endgroup
\HlxBlk\xml{/ol}}
\newenvironment{description}{\HlxBlk\xml{dl}\begingroup
\newcommand{\item}[1][]{\HlxBlk\xml{dt}\textbf{##1}\xml{dd}}%
\ignorespaces}{\endgroup\HlxBlk\xml{/dl}}
%%
%% ----------------------------------------------------------------------
%%
%% Title
%%
\newcommand{\maketitle}{\EmptyP{\HlxTitleP}{
\HlxBlk\xml{frontmatter}
\xml{title}\HlxTitle\xml{/title}
\EmptyP{\HlxAuthorP}{\xml{author}\HlxAuthor\xml{/author}}{}
\EmptyP{\HlxDate}{\xml{date}\HlxDate\xml{/date}}{}
\xml{/frontmatter}
}{}}
\newenvironment{abstract}{\HlxBlk
\xml{abstract}\xml{p}}
{\xml{/p}\xml{/abstract}}
%%
%% ----------------------------------------------------------------------
%%
%% Figures
%%
\newcommand{\caption}[1]{\xml{caption}#1\xml{/caption}}
%% ----------------------------------------------------------------------
|