summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xmltex/passivetex/teiprintslides.xmt
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xmltex/passivetex/teiprintslides.xmt')
-rw-r--r--Master/texmf-dist/tex/xmltex/passivetex/teiprintslides.xmt316
1 files changed, 316 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/xmltex/passivetex/teiprintslides.xmt b/Master/texmf-dist/tex/xmltex/passivetex/teiprintslides.xmt
new file mode 100644
index 00000000000..6462cffc44d
--- /dev/null
+++ b/Master/texmf-dist/tex/xmltex/passivetex/teiprintslides.xmt
@@ -0,0 +1,316 @@
+\XMLname{div}{\DIV}
+\XMLname{figure}{\FIGURE}
+\XMLname{label}{\LABEL}
+\XMLname{P}{\PARA}
+\XMLname{list}{\LIST}
+\XMLname{table}{\TABLE}
+\XMLstring\type@equation<>equation</>
+\XMLstring\type@display<>display</>
+\XMLstring\type@subeqn<>subeqn</>
+\XMLstring\rend@slide<>slide</>
+\XMLstring\rend@box<>box</>
+\XMLstring\rend@pausing<>pausing</>
+
+\XMLelement{TEI.2}{}
+ {
+\documentclass{article}
+\newenvironment{teislide}{}{}
+\usepackage[bookmarks=false,pdftex]{hyperref}
+\usepackage[gray,panelleft,screen]{pdfscreen}
+\usepackage{teixmlslides}
+\pagestyle{title}
+\definecolor{Gray}{gray}{1}
+\definecolor{bboxcolor}{gray}{1}
+\definecolor{boxcolor}{gray}{1}
+\definecolor{buttonbackground}{gray}{1}
+\definecolor{buttondisable}{gray}{1}
+\definecolor{buttonshadow}{gray}{1}
+\definecolor{coxcolor}{gray}{1}
+\definecolor{darkgreen}{gray}{0}
+\definecolor{egback}{gray}{1}
+\definecolor{egframe}{gray}{0}
+\definecolor{fcolor}{gray}{1}
+\definecolor{fgcolor}{gray}{1}
+\definecolor{lightblue}{gray}{1}
+\definecolor{lightcyan}{gray}{1}
+\definecolor{logobackground}{gray}{1}
+\definecolor{menucolor}{gray}{1}
+\definecolor{olivedrab}{gray}{1}
+\definecolor{orange1}{gray}{1}
+\definecolor{orange}{gray}{1}
+\definecolor{paleblue}{gray}{1}
+\definecolor{panelbackground}{gray}{1}
+\definecolor{pink}{gray}{1}
+\definecolor{rcolor}{gray}{1}
+\definecolor{section0}{gray}{0}
+\definecolor{section1}{gray}{0}
+\definecolor{section2}{gray}{0}
+\definecolor{section3}{gray}{0}
+\definecolor{section4}{gray}{0}
+\definecolor{section5}{gray}{0}
+
+\def\capfont{\@setfontsize\capfont{24}{26}\sffamily\color{white}}
+\def\titlefont{\@setfontsize\titlefont{30}{34}\color{dm}\sffamily\bfseries}
+ }
+{}
+
+\XMLelement{body}{}
+{
+ \begin{document}
+% \urlid{www.oucs.ox.ac.uk/}
+% \affname{Oxford University Computing Services}
+% \emblema{summer4.jpg}
+ \vbox to .8\paperheight{\vfill
+ \begin{center}
+ \Huge
+ \@title\\[30pt]
+ \@author\\
+ \@date
+ \end{center}
+\vfill}
+ \raggedright
+}
+ {\end{document}}
+
+\newcount\SCOUNT
+\global\SCOUNT-1\relax
+\XMLelement{div}{
+ \XMLattribute{id}{\idval}{\@nil}
+ \XMLattribute{rend}{\divrend}{plain}
+ }
+ {
+ \advance\SCOUNT\@ne
+ \ifx\divrend\rend@slide
+ \begin{teislide}
+ \else
+ \ifnum\SCOUNT=0\clearpage\fi
+ \fi
+ }
+ {\ifx\divrend\rend@slide
+ \end{teislide}
+ \fi
+ }
+
+\XMLelement{head}{ }
+ {\xmlgrab}
+ {
+ \ifx\XML@parent\DIV
+ \protected@xdef\temp{
+ \expandafter\noexpand\ifcase\SCOUNT
+ \section\or\subsection\or\subsubsection\fi
+ {#1}\ifx\idval\@nnil\else\noexpand\label{\idval}
+ \fi}
+ \aftergroup\temp
+ \else
+ \ifx\XML@parent\TABLE\caption{#1}\fi
+ \ifx\XML@parent\FIGURE\caption{#1}\fi
+ \fi
+
+}
+
+
+\XMLelement{term}{}
+ {\itshape}
+ {}
+
+\XMLelement{emph}{}
+ {\itshape}
+ {}
+
+\XMLelement{formula}
+ {\XMLattribute{type}{\Formulatype}{}}
+ {
+ \ifx\Formulatype\type@display
+ \begin{displaymath}
+ \else
+ \ifx\Formulatype\type@equation
+ \begin{equation}
+ \else
+ \ifx\Formulatype\type@subeqn
+ \(
+ \else
+ \(
+ \fi
+ \fi
+ \fi
+ }
+ { \ifx\Formulatype\type@display
+ \end{displaymath}
+ \else
+ \ifx\Formulatype\type@equation
+ \end{equation}
+ \else
+ \ifx\Formulatype\type@subeqn
+ \)
+ \else
+ \)
+ \fi
+ \fi
+ \fi
+}
+
+\XMLelement{figure}
+ {\XMLattribute{id}{\figid}{}
+ \XMLattribute{file}{\figfile}{}
+ \XMLattribute{width}{\figwidth}{}
+ \XMLattribute{height}{\figheight}{}
+ }
+ {
+ \ifx\figwidth\@empty\else\setkeys{Gin}{width=\figwidth}\fi
+ \ifx\figheight\@empty\else\setkeys{Gin}{height=\figheight}\fi
+ \ifx\XML@parent\PARA
+ \centerline{\includegraphics{\figfile}}
+ \else
+ \includegraphics{\figfile}
+ \fi
+ }
+ {}
+
+\XMLelement{code}{}
+ {\color{black}\ttfamily}
+ {}
+
+\XMLelement{hi}{}
+ {\bfseries}
+ {}
+
+\XMLelement{gi}{}
+ {\ttfamily\textless}
+ {\textgreater}
+
+\XMLelement{eg}{}
+ {\xmlgrab}
+ {\@tempdima\linewidth
+ \advance\@tempdima by -1cm
+ \fboxrule1pt
+ \fboxsep4pt
+ \vskip6pt
+ \fcolorbox{egframe}{egback}{\begin{minipage}{\@tempdima}
+ \color{black}\small\ttfamily\obeylines\obeyspaces
+ #1\end{minipage}}\vskip6pt}
+
+\XMLelement{p}
+ {\XMLattribute{rend}{\Prend}{}}
+ {\xmlgrab}
+ {
+ \ifx\Prend\rend@box
+ \@tempdima\linewidth
+ \advance\@tempdima by -1cm
+ \fboxrule1pt
+ \fboxsep4pt
+ \vskip6pt
+ \fbox{\begin{minipage}{\@tempdima}
+ \color{black}\small\ttfamily\obeylines\obeyspaces
+ #1\end{minipage}}\vskip6pt
+ \else
+ \par#1
+ \fi
+}
+
+\XMLelement{revisionDesc}{}
+ {\xmlgrab}
+ {}
+
+\XMLelement{fileDesc}{}
+ {\xmlgrab}
+ {}
+
+\XMLelement{titleStmt}{}
+ {\xmlgrab}
+ {}
+
+\XMLelement{xptr}
+ {
+ \XMLattribute{doc}{\xptrdoc}{}
+ \XMLattribute{url}{\xptrurl}{}
+ }
+ {
+ \ifx\@empty\xptrurl
+ \NDATAEntity\xptrdoc\@gobble\url
+ \else
+ \url{\xptrurl}
+ \fi
+ }
+ {}
+
+\XMLelement{xref}
+ {
+ \XMLattribute{doc}{\xptrdoc}{}
+ \XMLattribute{url}{\xptrurl}{}
+ }
+ {\xmlgrab}
+ {
+ \ifx\@empty\xptrurl
+ \NDATAEntity\xptrdoc\@gobble\url
+ \else
+ \href{\xptrurl}{#1}
+ \fi
+ }
+
+
+\XMLelement{docDate}{}
+ {\xmlgrab}
+ {\date{#1}}
+
+\XMLelement{docAuthor}{}
+ {\xmlgrab}
+ {\author{#1}}
+
+\XMLelement{docTitle}{}
+ {\xmlgrab}
+ {\title{#1}}
+
+\XMLelement{item}
+ {}
+ {\csname Item\listtype\endcsname}
+ {\endItem}
+
+\XMLelement{label}
+ {}
+ {\xmlgrab}
+ {\gdef\foo{\item[#1]}\aftergroup\foo}
+
+\XMLelement{list}{
+ \XMLattribute{type}{\listtype}{unordered}
+ \XMLattribute{rend}{\listrend}{plain}
+}
+ {\csname List\listtype\endcsname}
+ {\csname endList\listtype\endcsname}
+
+
+\XMLelement{q}{
+ \XMLattribute{rend}{\qrend}{}}
+ {\begin{quote}
+ \ifthenelse{\equal{\qrend}{eg}}{\color{black}\ttfamily\obeylines}{}}
+ {\end{quote}}
+
+\XMLelement{ptr}
+ {\XMLattribute{target}{\ptrtarget}{}}
+ {\href{\ptrtarget}{\ref{\ptrtarget}}}
+ {}
+
+\XMLelement{ref}
+ {\XMLattribute{target}{\reftarget}{}}
+ {\xmlgrab}
+ {\href{\reftarget}{#1}}
+
+
+\XMLelement{table}
+ {\XMLattribute{rend}{\tablerend}{}}
+ {\begin{tabular}{*{99}{l}}}
+ {\end{tabular}}
+
+\XMLelement{row}{}
+ {\xmlgrab}
+ {\gdef\temp{#1\\}\aftergroup\temp}
+
+\XMLelement{cell}{}
+ {\xmlgrab}
+ {\gdef\temp{#1\tabcellsep}\aftergroup\temp}
+
+\XMLelement{lb}{}{\gdef\temp{\\}\aftergroup\temp}{}
+
+
+% cheating, a bit
+\XMLentity{TeX}{\TeX}
+\XMLentity{LaTeX}{\LaTeX}