From bcdf6c829c6761de02484473ebe43fa3760adcaa Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 12 May 2021 03:01:15 +0000 Subject: CTAN sync 202105120301 --- support/TeX4ht/source/tex4ht-ooimpress.tex | 436 +++++++++++++++++++++++++++++ 1 file changed, 436 insertions(+) create mode 100644 support/TeX4ht/source/tex4ht-ooimpress.tex (limited to 'support/TeX4ht/source/tex4ht-ooimpress.tex') diff --git a/support/TeX4ht/source/tex4ht-ooimpress.tex b/support/TeX4ht/source/tex4ht-ooimpress.tex new file mode 100644 index 0000000000..ff2efa11cc --- /dev/null +++ b/support/TeX4ht/source/tex4ht-ooimpress.tex @@ -0,0 +1,436 @@ +% $Id: tex4ht-ooimpress.tex 65 2010-11-17 19:16:45Z karl $ +% compile 3 times: latex tex4ht-ooimpress +% htlatex tex4ht-ooimpress "xhtml,4,sections+" +% Copyright (C) 2009-2010 TeX Users Group +% Copyright (C) 2001-2009 Eitan M. Gurari +% Released under LPPL 1.3c+. +% See tex4ht-cpright.tex for license text. + +%%%%%%%%%%%%%%%%%% load style files %%%%%%%%%%%%%%%%%%%%%%%%%% + +\ifx \HTML\UnDef + \def\HTML{ooimpress}%,ooimpress-mml} + \def\PREAMBLE{% + \usepackage{url}% + \usepackage{hyperref}% + } + \def\OPTIONS{html,sections+,3}% + \def\CONFIG{\jobname} + \def\MAKETITLE{\author{Eitan M. Gurari, + James Naughton, and Maarten Wisse}} + \def\next{\input mktex4ht.4ht \endinput} + \expandafter\next +\fi + +\input{common} +\input{tex4ht-cpright} + +See ch 7 of \cite{odbook} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\chapter{The Code} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\section{The Root} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\subsection{Imported Configurations} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\<<< +\if:latex | +\else | \fi +>>> + + +\<<< +| +| +>>> + +\<<< +| +| +>>> + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\subsection{Common Code Fragments} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\<<< +!*?: >>> + +\<<< + cw:>>> + +\<<< +tail>>> + +\<<< +\xdef\:cursec{|
}% +>>> + +\<<< +\newif\ifHCond +\def\:gobbleM#1->{} +>>> + + +\<<< +\ShowPar +>>> + +\<<< +\ShowPar\par{\HCondtrue\noindent}% +>>> + + + +%%%%%%%%%%%%%%%%%%%%%% +\subsection{Copyright} +%%%%%%%%%%%%%%%%%%%%%% + +\<<< +% ooimpress.4ht (|version), generated from |jobname.tex +% Copyright (C) 2009-2010 TeX Users Group +% Copyright (C) |CopyYear.2001. Eitan M. Gurari +| +>>> + +\<<< +| +>>> + +%%%%%%%%%%%%%%%%%%%%%% +\section{The XML Files} +%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%% +\subsection{content.xml (= jobname.xml)} +%%%%%%%%%%%%%%%%%%%%%% + +\<<< +\Configure{BODY} + {\HCode{}% + \let\end:rootslide\empty + \start:slide + \gdef\end:rootslide{\end:slide \global\let\end:rootslide=\empty}% + \par\ShowPar} + {\IgnorePar\EndP + \end:rootslide + \HCode{\Hnewline}} +>>> + + +\<<< +\Configure{maketitle} + {\bgroup + \Configure{newpage}{}% + \IgnorePar\EndP\HCode{} + \Configure{tabular}{}{}{}{}{\ifnum \HRow>1 + \HCode{}\fi}{}% + \ConfigureEnv{tabular}{}{}{}{}% + } + {\ifvmode \IgnorePar\fi \EndP + \HCode{|}\egroup \par} + {\ifvmode \IgnorePar\fi \EndP + \HCode{|% + }} + {\HCode{||}} +>>> + +\<<< + + \Hnewline +>>> + + + +\<<< + + \Hnewline +>>> + + +\<<< + +\Hnewline +>>> + + + +\<<< + + \Hnewline +>>> + +\<<< + +\Hnewline +>>> + + + +\<<< +\HAssign\PageN=0 +\Configure{foilhead} + {\IgnorePar\EndP \start:slide } + {\IgnorePar\EndP + \HCode{|}\end:slide } + {\HCode{|% + }% + \IgnoreIndent} + {\HCode{\Hnewline + ||}\par\ShowPar} + +\def\start:slide{\end:rootslide + \HAdvance\PageN by 1 + \HCode{ + \Hnewline}} +\def\end:slide{\HCode{ + + }} +>>> + + +\<<< +\if@rl-rtl\fi +>>> + + + +\<<< + + \Hnewline +>>> + +\<<< + +\Hnewline +>>> + +\<<< +\NewConfigureOO{slide} +\ConfigureOO{slide}{% + + + + + + +} +>>> + + + + +\<<< +\ConfigureOO{foilhead}{\Hnewline +\Hnewline +<\style:par:properties fo:font-size="12pt" + fo:font-weight="bold" + style:font-size-asian="14pt" + style:font-weight-asian="bold" + style:font-size-complex="14pt" + style:font-weight-complex="bold" + fo:margin-top="0.42cm" + fo:margin-bottom="0.51cm" + fo:text-align="center" + style:justify-single-word="false" +/> + +} +>>> + + +\<<< +\ConfigureOO{title}{% +\Hnewline +<\style:par:properties fo:margin-top="0.42cm" + fo:margin-bottom="0.51cm" + fo:font-size="20pt" + fo:font-weight="normal" + style:font-size-asian="18pt" + style:font-weight-asian="bold" + style:font-size-complex="18pt" + style:font-weight-complex="bold" + fo:text-align="center" + style:justify-single-word="false"/> + \Hnewline + } +>>> + + + +\<<< +\Configure{thank} + {\setbox\tmp:bx=\hbox\bgroup} + {\egroup} + {\NoFonts \leavevmode \bgroup \protect\Configure{$}{}{}{}% + \hbox{\HCode{}} +>>> + + + + + +%%%%%%%%%%%%% +\subsection{Undo ooffice} +%%%%%%%%%%%%% + + +\<<< +\def\media:type{application/vnd.oasis.opendocument.presentation} +>>> + +%%%%%%%%%%%%%%%%%% +\subsection{Remove `reference-mark'} +%%%%%%%%%%%%%%%%%% + +Introduced in xtpipes for \verb=\Link= + + +\<<< +\Odef\Link[#1]#2#3{} +\let\EndLink\empty +>>> + + +%%%%%%%%%%%%%%%%%% +\subsection{Remove `style:columns'} +%%%%%%%%%%%%%%%%%% + + +OpenOffice impress chocks on `style:columns' (why?) + +\<<< +\ConfigureOO{Sect1}{\Hnewline + + <\style:sectionproperties> + + + +\Hnewline } +>>> + + +\<<< +\ConfigureOO{Sect2}{\Hnewline + + <\style:sectionproperties> + + + +\Hnewline } +>>> + +\<<< +\Configure{figure-style}{% + \Hnewline + \Hnewline + + + \Hnewline +} +>>> + + +\<<< +\ConfigureOO{g-brief-header}{\Hnewline +\Hnewline + <\style:properties text:dont-balance-text-columns="false" + fo:margin-bottom="2cm">\Hnewline + \Hnewline + \Hnewline +\Hnewline +} +>>> + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{thebibliography}{9} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\bibitem{odbook} +OASIS OpenDocument Essentials, +Using OASIS OpenDocument XML +\url{http://books.evc-cit.info/odbook/book.html} + + +\end{thebibliography} + + +\endinput -- cgit v1.2.3