% compile 3 timws: latex tex4ht-ooffice
%                xhlatex tex4ht-ooffice "html,3,sections+"
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% tex4ht-ooffice.tex                                     %
% Copyright (C) 2001--            Eitan M. Gurari        %
%                                                        %
% This work may be distributed and/or modified under the %
% conditions of the LaTeX Project Public License, either %
% version 1.3 of this license or (at your option) any    %
% later version. The latest version of this license is   %
% in                                                     %
%   http://www.latex-project.org/lppl.txt                %
% and version 1.3 or later is part of all distributions  %
% of LaTeX version 2003/12/01 or later.                  %
%                                                        %
% This work has the LPPL maintenance status "maintained".%
%                                                        %
% This Current Maintainer of this work                   %
% is Eitan M. Gurari.                                    %
%                                                        %
% If you modify this file your changing the signature    %
% in \message{(signature)} below will be appreciated.    %
%                                                        %
%                             gurari@cse.ohio-state.edu  %
%                 http://www.cse.ohio-state.edu/~gurari  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
\message{(<signature>)}


%%%%%%%%%%%%%%%%%% load style files %%%%%%%%%%%%%%%%%%%%%%%%%%

\ifx \HTML\UnDef
   \def\HTML{ooffice,ooffice-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



%%%%%%%%%%%%%%%%%%%%% definitions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcount\tmpcnt  \tmpcnt\time  \divide\tmpcnt  60
\edef\temp{\the\tmpcnt}
\multiply\tmpcnt  -60 \advance\tmpcnt  \time

\edef\version{\the\year-\ifnum \month<10 0\fi
  \the\month-\ifnum \day<10 0\fi\the\day
   -\ifnum \temp<10 0\fi \temp
   :\ifnum \tmpcnt<10 0\fi\the\tmpcnt}

\def\CopyYear.#1.{%
   \ifnum #1=\year #1\space\space\space\space\space\space
    \else          #1--\the\year\fi
}








%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{The Code}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{The Root}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Imported Configurations}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<configure ooffice tex4ht\><<<
\if:latex  |<Hinclude latex|>
\else      |<Hinclude plain|>  \fi
>>>


\<configure ooffice plain\><<<
|<Hinclude plain lib|>
|<Hinclude plain + latex lib|>
>>>

\<configure ooffice latex\><<<
|<Hinclude latex lib|>
|<Hinclude plain + latex lib|>
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Common Code Fragments}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<par del\><<<
!*?: >>>

\<tag of Tag\><<<
 cw:>>>

\<tail\><<<
tail>>>

\<addr for Tag and Ref of Sec\><<<
\xdef\:cursec{|<section html addr|>}%
>>>

\<utilities\><<<
\newif\ifHCond
\def\:gobbleM#1->{}
>>>


\<try env inline par\><<<
\ShowPar
>>>

\<try inline par\><<<
\ShowPar\par{\HCondtrue\noindent}%
>>>



%%%%%%%%%%%%%%%%%%%%%%
\subsection{Copyright}
%%%%%%%%%%%%%%%%%%%%%%

\<ooffice\><<<
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
% ooffice.4ht                          |version %
|<copy right notice|>  >>>

\<ooffice-math\><<<
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
% ooffice-math.4ht                     |version %
|<copy right notice|>  >>>


\<ooffice-mml\><<<
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
% ooffice-mml.4ht                      |version %
|<copy right notice|>  >>>



\<copy right notice\><<<
% Copyright (C) |CopyYear.2001.      Maarten Wisse           %
%               |CopyYear.2002.      James Naughton          %
%                                                       %
% This program can redistributed and/or modified under  %
% the terms of the LaTeX Project Public License         %
% Distributed from CTAN archives in directory           %
% macros/latex/base/lppl.txt; either version 1 of the   %
% License, or (at your option) any later version.       %
%                                                       %
% If you modify this program your changing its signature %
% with a directive of the following form will be         %
% appreciated.                                           %
%            \message{signature}                         %
%                                                       %
%                   Maarten.Wisse@urz.uni-heidelberg.de %
%                        http://home.wanadoo.nl/pmwisse %
%                                                       %
%            james.naughton@st-edmund-hall.oxford.ac.uk %
%                                                       %
% Modified by   Eitan M. Gurari |CopyYear.2001.              %
%                             gurari@cse.ohio-state.edu %
%                 http://www.cse.ohio-state.edu/~gurari %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\immediate\write-1{version |version}
>>>



\<configure ooffice tex4ht\><<<
|<utilities|>
>>>








%%%%%%%%%%%%%%%%%%%%%%
\section{The XML Files}
%%%%%%%%%%%%%%%%%%%%%%






%%%%%%%%%%%%%%%%%%%%%%
\subsection{content.xml (= jobname.xml)}
%%%%%%%%%%%%%%%%%%%%%%



\<configure ooffice-mml tex4ht\><<<
\Configure{math-xmlns}
  { 
     xmlns:math="http://www.w3.org/1998/Math/MathML"
 }
>>>

\<configure ooffice-mml Preamble\><<<
\Configure{mathml}{math:}
>>>


\<configure ooffice Preamble\><<<
\Configure{html}{xml}
\Configure{PROLOG}{VERSION,DOCTYPE}
\:CheckOption{oo2}\if:Option
   \def\oo:dtd:ver{2.0}
\else
   \def\oo:dtd:ver{1.0}
\fi
>>>


\<configure ooffice tex4ht\><<<
\Configure{VERSION}{\HCode{|<VERSION|>}}
\Configure{DOCTYPE}{\HCode{|<DOCTYPE|>}}
>>>

\<configure ooffice tex4ht\><<<
\:CheckOption{oo2}\if:Option
   \Configure{HTML}
      {\HCode{<office:document-content \Hnewline
          |<xml name spaces 2.0|>%
          office:version="1.0"
       >\Hnewline
       <office:automatic-styles>
         |<automatic styles|>\Hnewline
       </office:automatic-styles>
      }}
      {\EndP\HCode{</office:document-content>}}
\else
   \Configure{HTML}
      {\HCode{<office:document-content \Hnewline
          |<xml name spaces 1.0|>%
          office:class="text"
          office:version="1.0"
       >\Hnewline
       <office:automatic-styles>
         |<automatic styles|>\Hnewline
       </office:automatic-styles>
      }}
      {\EndP\HCode{</office:document-content>}}
\fi
>>>

\<configure ooffice tex4ht\><<<
\Configure{HEAD}{}{}
>>>


\<configure ooffice tex4ht\><<<
\Configure{BODY}
  {\HCode{<office:body>}\par\ShowPar}
  {\IgnorePar\EndP
   \HCode{</office:body>\Hnewline}}
>>>



\<xml name spaces 1.0\><<<
xmlns:chart="http://openoffice.org/2000/chart"      \Hnewline
xmlns:dr3d="http://openoffice.org/2000/dr3d"        \Hnewline
xmlns:draw="http://openoffice.org/2000/drawing"     \Hnewline
xmlns:form="http://openoffice.org/2000/form"        \Hnewline
xmlns:number="http://openoffice.org/2000/datastyle" \Hnewline
xmlns:office="http://openoffice.org/2000/office"    \Hnewline
xmlns:script="http://openoffice.org/2000/script"    \Hnewline
xmlns:style="http://openoffice.org/2000/style"      \Hnewline
xmlns:table="http://openoffice.org/2000/table"      \Hnewline
xmlns:text="http://openoffice.org/2000/text"        \Hnewline
xmlns:fo="http://www.w3.org/1999/XSL/Format"        \Hnewline
xmlns:math="http://www.w3.org/1998/Math/MathML"     \Hnewline
xmlns:svg="http://www.w3.org/2000/svg"              \Hnewline
xmlns:xlink="http://www.w3.org/1999/xlink"          \Hnewline
>>>


\<xml name spaces 2.0\><<<
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"   \Hnewline
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"     \Hnewline
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"       \Hnewline
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"     \Hnewline
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"    \Hnewline
xmlns:fo="http://www.w3.org/1999/XSL/Format"                      \Hnewline
xmlns:xlink="http://www.w3.org/1999/xlink"                        \Hnewline
xmlns:dc="http://purl.org/dc/elements/1.1/"                       \Hnewline
xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"       \Hnewline
xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"\Hnewline
xmlns:svg="http://www.w3.org/2000/svg"                            \Hnewline
xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"     \Hnewline
xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"       \Hnewline
xmlns:math="http://www.w3.org/1998/Math/MathML"                   \Hnewline
xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"       \Hnewline
xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"   \Hnewline
xmlns:ooo="http://openoffice.org/2004/office"                     \Hnewline
xmlns:ooow="http://openoffice.org/2004/writer"                    \Hnewline
xmlns:oooc="http://openoffice.org/2004/calc"                      \Hnewline
xmlns:dom="http://www.w3.org/2001/xml-events"                     \Hnewline
xmlns:xforms="http://www.w3.org/2002/xforms"                      \Hnewline
xmlns:xsd="http://www.w3.org/2001/XMLSchema"                      \Hnewline
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"             \Hnewline
>>>


\<VERSION\><<<
<?xml version="1.0" encoding="UTF-8"?>\Hnewline
>>>

\<DOCTYPE\><<<
<!DOCTYPE office:document-content PUBLIC
   "-//OpenOffice.org//DTD OfficeDocument \oo:dtd:ver//|<dtd lang|>" 
   "office.dtd">\Hnewline
>>>


\<dtd lang\><<<
\expandafter
\ifx \csname a:dtd-lang\endcsname\relax EN\else
  \csname a:dtd-lang\endcsname
\fi
>>>


\<configure ooffice Preamble\><<<
\let\Css=\:gobble
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{styles.xml (jobname-styles.xml)}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



The contents.xml file can contain only styles that are known ahead of
time, before starting the processing of the content.

The styles.xml file allows us

\begin{enumerate}
\item To collect styles as we go along the body of the document, and
\item Introduce default built in styles that user may override
\end{enumerate}



The content.xml must get the style information at the start of the
compilation, before the body is processed.



\verb+\OOstyles+ immediatey sends it content to the styles.xml
file. In the case of \verb+\ConfigureOO+, the last assignment to the
hook is sent to the file upon reaching the end of the source.


\<utilities\><<<
\let\:OOstyles=\empty
\def\OOstyles#1{\edef\:OOstyles{\:OOstyles #1}}
\OOstyles{|<start styles.xml|>}
>>>

\<switch to main body OOstlyles\><<<
\def\OOstyles##1{%  
\ht:special{t4ht>|<styles file name|>}%
  \ht:special{t4ht=##1}%
  \ht:special{t4ht*>}%
}
\OOstyles{\:OOstyles}
\ht:special{t4ht*>|<styles file name|>}%
\let\:OOstyles=\:UnDef
>>>

\<styles file name\><<<
\jobname-styles.4oy>>>



\<styles at /@BODY\><<<
\OOstyles{%
  \oo:style
  </office:styles>\Hnewline
  </office:document-styles>\Hnewline}%
>>>

Writer2LaTeX (w2l) doesn't currently allow line breaks with DOCTYPE

\<start styles.xml\><<<
|<VERSION|>%
<!DOCTYPE office:document-styles PUBLIC
    "-//OpenOffice.org//DTD OfficeDocument \oo:dtd:ver//|<dtd lang|>"
    "office.dtd">\Hnewline
<office:document-styles \Hnewline
    |<xml name spaces 1.0|>\Hnewline
    office:version="1.0">\Hnewline
<office:styles>\Hnewline
>>>


\<utilities\><<<
\let\oo:style=\empty
\def\NewConfigureOO#1{%
  \expandafter\ifx \csname c:#1:oo:style:\endcsname\relax
     \append:def\oo:style{\csname a:#1:oo:style\endcsname}%
     \:CheckOption{info}\if:Option
         \Log:Note{\string\NewConfigureOO{#1}}%
     \fi
  \fi
  \NewConfigure{#1:oo:style}{1}}
\def\ConfigureOO#1#2{%
  \edef\:temp{\noexpand\Configure{#1:oo:style}{#2}}\:temp
  \:CheckOption{info-oo}\if:Option
    \Log:Note{\string\ConfigureOO{#1}{%
       \expandafter\expandafter\expandafter\:gobbleM
       \expandafter\meaning\csname a:#1:oo:style\endcsname
     }}
  \fi
}
>>>

\<utilities\><<<
\:CheckOption{info}\if:Option
    \Log:Note{For tracing of oo configurations, 
       use the `info-oo' option}%
\fi
>>>



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{settings.xml for Math Formulas}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




\<insert settings.xml\><<<
\ht:special{t4ht>|<settings file name|>}%
  \ht:special{t4ht=|<VERSION|>}%
  \ht:special{t4ht=|<settings DOCTYPE|>}%
  \ht:special{t4ht=|<start mathml settings|>}%
  \ht:special{t4ht=|<close mathml settings|>}%
\ht:special{t4ht*>}%
\ht:special{t4ht<|<settings file name|>}%
>>>

\<settings file name\><<<
\jobname-settings.4os>>>

\<settings DOCTYPE\><<<
<!DOCTYPE office:document-settings PUBLIC
            "-//OpenOffice.org//DTD OfficeDocument \oo:dtd:ver//|<dtd lang|>" 
            "office.dtd">\Hnewline
>>>

\<start mathml settings\><<<
<office:document-settings \Hnewline
   xmlns:office="http://openoffice.org/2000/office" \Hnewline
   xmlns:xlink="http://www.w3.org/1999/xlink"       \Hnewline
   xmlns:config="http://openoffice.org/2001/config" \Hnewline
   office:version="1.0">                            \Hnewline
<office:settings>                                   \Hnewline
>>>

\<close mathml settings\><<<
</office:settings>
</office:document-settings>\Hnewline
>>>





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{manifest.xml}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<utilities\><<<
\let\:OOmanifest=\empty
\def\OOmanifest#1{\edef\:OOmanifest{\:OOmanifest #1}}
\OOmanifest{|<start manifest.xml|>}
>>>

\<switch to main body OOmanifest\><<<
\def\OOmanifest##1{%
  \ht:special{t4ht>|<manifest file name|>}%
  \ht:special{t4ht=##1}%
  \ht:special{t4ht*>}%
}
\OOmanifest{\:OOmanifest}
\ht:special{t4ht*>|<manifest file name|>}%
\let\:OOmanifest=\:UnDef
>>>


\<manifest file name\><<<
\jobname-manifest.4of>>>

\<start manifest.xml\><<<
|<VERSION|>%
<!DOCTYPE manifest:manifest PUBLIC 
          "-//OpenOffice.org//DTD 
          Manifest \oo:dtd:ver//|<dtd lang|>" "Manifest.dtd">\Hnewline
<manifest:manifest       
      xmlns:manifest="http://openoffice.org/2001/manifest">\Hnewline
|<shared manifest|>%
>>>

\<manifest at /@BODY\><<<
\OOmanifest{</manifest:manifest>\Hnewline}%
>>>


\<math obj manifest\><<<
<manifest:file-entry 
   manifest:media-type="text/xml" 
   manifest:full-path="|<math obj name|>/content.xml"/>\Hnewline
<manifest:file-entry 
   manifest:media-type="text/xml" 
   manifest:full-path="|<math obj name|>/settings.xml"/>\Hnewline
<manifest:file-entry
    manifest:media-type="application/vnd.sun.xml.math"
    manifest:full-path="|<math obj name|>/"/>
>>>

\<graphics obj manifest\><<<
<manifest:file-entry
    manifest:full-path="Pictures/|<graphics file name|>"/>\Hnewline
>>>

\<shared manifest\><<<
<manifest:file-entry 
   manifest:media-type="application/vnd.sun.xml.writer" 
   manifest:full-path="/"/>\Hnewline
<manifest:file-entry 
   manifest:media-type=""
   manifest:full-path="Pictures/"/>\Hnewline
<manifest:file-entry 
   manifest:media-type="text/xml" 
   manifest:full-path="content.xml"/>\Hnewline
<manifest:file-entry 
   manifest:media-type="text/xml" 
   manifest:full-path="styles.xml"/>\Hnewline
<manifest:file-entry 
   manifest:media-type="text/xml" 
   manifest:full-path="meta.xml"/>\Hnewline
<manifest:file-entry 
   manifest:media-type="text/xml" 
   manifest:full-path="settings.xml"/>\Hnewline
>>>





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{meta.xml}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<insert meta.xml\><<<
\ht:special{t4ht>|<meta file name|>}%
  \ht:special{t4ht=|<VERSION|>}%
  \ht:special{t4ht=|<meta DOCTYPE|>}%
  \ht:special{t4ht=|<start meta|>}%
  \ht:special{t4ht=\a:META}%
  \ht:special{t4ht=|<close meta|>}%
\ht:special{t4ht*>}%
\ht:special{t4ht<|<meta file name|>}%
>>>

\<meta file name\><<<
\jobname-meta.4ot>>>


\<meta DOCTYPE\><<<
<!DOCTYPE office:document-meta PUBLIC
    "-//OpenOffice.org//DTD OfficeDocument \oo:dtd:ver//|<dtd lang|>"
    "office.dtd">\Hnewline
>>>

\<start meta\><<<
<office:document-meta \Hnewline
  xmlns:office="http://openoffice.org/2000/office" \Hnewline
  xmlns:xlink="http://www.w3.org/1999/xlink" \Hnewline
  xmlns:dc="http://purl.org/dc/elements/1.1/" \Hnewline
  xmlns:meta="http://openoffice.org/2000/meta"\Hnewline
  office:version="1.0">\Hnewline
<office:meta>\Hnewline
>>>

\<close meta\><<<
</office:meta></office:document-meta>\Hnewline
>>>


\<configure ooffice tex4ht\><<<
\Configure{META}
   {<meta:initial-creator>|<creator/generator|>\Hnewline
    </meta:initial-creator>\Hnewline}
\Configure{META}
   {<dc:creator>|<creator/generator|>\Hnewline
    </dc:creator>\Hnewline}
\Configure{META}
   {<meta:creation-date>\:today</meta:creation-date>\Hnewline}
\Configure{META}
   {<dc:date>\:today</dc:date>\Hnewline}
>>>
   

\<creator/generator\><<<
TeX4ht from \jobname.tex, 
       options:  \expandafter\:gobbleM\meaning\Preamble\Hnewline
      (http://www.cse.ohio-state.edu/\string
       ~gurari/TeX4ht/mn.html)
>>>


\<utilities\><<<
\tmp:cnt=\time  \divide\tmp:cnt by 60
\edef\:temp{\the\tmp:cnt}
\multiply\tmp:cnt by -60 \advance\tmp:cnt by \time
\edef\:today{\the\year -\ifnum \month<10 0\fi
  \the\month -\ifnum \day<10 0\fi\the\day
   T\ifnum \:temp<10 0\fi \:temp
   :\ifnum \tmp:cnt<10 0\fi\the\tmp:cnt :00}
>>>

\<utilities\><<<
\NewConfigure{META}[1]{\concat:config\a:META{#1}}
\let\a:META\relax
>>>






%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{MathML}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%






\<mathml object\><<<
<draw:object\Hnewline
   draw:style-name="f1" 
   draw:name="mobj-\math:obj" 
   draw:z-index="0"
   text:anchor-type="as-char" 
   xlink:href="\#./|<math obj name|>" \Hnewline
   xlink:type="simple" 
   xlink:show="embed" 
   xlink:actuate="onLoad" />%
>>>



\<configure ooffice-mml latex\><<<
\OOstyles{\Hnewline
  <style:style style:name="f1"
               style:family="graphics"
               style:parent-style-name="Formula"
  >\Hnewline
     <style:properties style:vertical-pos="middle"
                       style:vertical-rel="text"/>\Hnewline
  </style:style>\Hnewline}
>>>

\<start math obj\><<<
\gHAdvance\math:obj by 1
\NextFile{|<math obj name|>.4om}%
\bgroup
    \HCode{|<mathml object|>}%
    \OOmanifest{|<math obj manifest|>}%
    |<config mathml object file|>%
    |<sv dvimath par|>\IgnorePar
    \HPage{}%
>>>

\<end math obj\><<<
\EndHPage{}|<recall dvimath par|>\egroup 
>>>



\<configure ooffice-mml tex4ht\><<<
\HAssign\math:obj=0
\Configure{DviMath}
    {\a:DviMathML \mathmltrue
       \ifOption{mml-fonts}{}{|%\mml:htfsym|%\NoFonts}%
       \HCode{|<input line num|>}\IgnoreRule 
       |<start math obj|>\Tg<\a:mathml math\Hnewline
           \csname a:math-xmlns\endcsname \Hnewline \a:@math>\a:math
    }
    {\Tg</\a:mathml math>%
     |<end math obj|>\EndIgnoreRule
     \ifOption{mml-fonts}{}{|%\ext:htfsym|%\EndNoFonts}%
     \mathmlfalse \b:DviMathML }
>>>

\<config mathml object file\><<<
\Configure{DOCTYPE}
   {\HCode{<!DOCTYPE \a:mathml math PUBLIC
             "-//OpenOffice.org//DTD Modified W3C MathML 1.01//|<dtd lang|>" 
             "math.dtd">\Hnewline}}%
\Configure{HTML}{}{\noindent}%
\Configure{BODY}{}{}%
>>>


\<recall dvimath par\><<<
\sv:ignore
>>>

\<sv dvimath par\><<<
\edef\sv:ignore{\if:nopar
    \noexpand\IgnorePar\else \noexpand\ShowPar\fi}%
>>>


\<math obj name\><<<
\jobname-m\math:obj
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Graphics}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%





\<configure ooffice graphics\><<<
\Configure{graphics}
   {\bgroup
      \let\E:IMG=\e:IMG \let\e:IMG=\empty
    \Picture+{}}
   {\EndPicture 
      \E:IMG\HCode{<!--tex4ht:graphics 
      \Hnewline  name="\PictureFile"  src="\Gin@base\Gin@ext"
      \Hnewline -->}%
    \egroup}
>>>

\<configure ooffice graphics\><<<
\Configure{graphics*}
   {gif}
   {\Picture{\Gin@base.gif |<graphics dimensions|> }}
\Configure{graphics*}
   {png}
   {\Picture{\Gin@base.png |<graphics dimensions|> }}
\Configure{graphics*}
   {jpg}
   {\Picture{\Gin@base.jpg  |<graphics dimensions|> }}
\Configure{graphics*}
   {jpeg}
   {\Picture{\Gin@base.jpeg |<graphics dimensions|> }}
\Configure{graphics*}
   {eps}
   {\Picture{\Gin@base.eps  |<graphics dimensions|> }}
>>>


\<graphics dimensions\><<<
\ifx\noBoundingBox\UnDefined
   svg:width="\the\Gin@req@width"
   svg:height="\the\Gin@req@height"
\fi
>>>  


\<configure ooffice tex4ht\><<<
\Configure{IMG}
  {|<insert shadowing fig file|>%
   \ht:special{t4ht=<draw:image\Hnewline
     xlink:href="\#Pictures/}}            
  {\ht:special{t4ht=" \Hnewline
   draw:name="IMG"  
   text:anchor-type="as-char"  % "paragraph"  
%   svg:width="...inch"  
%   svg:height="...inch"  
   draw:z-index="0"  
   xlink:type="simple"  
   xlink:show="embed"  
   xlink:actuate="onLoad" 
  }}
  {}
  {}
  {\ht:special{t4ht=/>}}
>>>



\<insert shadowing fig file\><<<
\ht:special{t4ht>|<graphics file name|>.4og}%
\ht:special{t4ht*>}%
\ht:special{t4ht<|<graphics file name|>.4og}%
\OOmanifest{|<graphics obj manifest|>}%
>>>


\<graphics file name\><<<
\PictureFile>>>


\<configure ooffice tex4ht\><<<
\Configure{PictureAlt*+[]}
   {\ht:special{t4ht>\jobname .tmp}}
   {\ht:special{t4ht<\jobname .tmp}}
\Configure{PictureAlt*+}
   {\let\sv:HtmlPar=\HtmlPar   \let\HtmlPar=\empty
     |<postscript for /Picture|>%
     |<tex halign and cr/crcr|>%
     \NoFonts\csname PauseMathClass\endcsname \SUBOff \SUPOff
     \let\HCode=\:gobble     |%\offinterlineskip|%
     \let\EndPicture=\empty
     \ht:special{t4ht>\jobname 1.tmp}%
   }
   {\ht:special{t4ht<\jobname 1.tmp}%
     \let\HCode=\:HCode
     \let\EndPicture=\:UnDef \let\HtmlPar=\sv:HtmlPar \SUBOn \SUPOn
     \csname EndPauseMathClass\endcsname \EndNoFonts
     |<tex4ht halign and cr/crcr|>%
     |<delay postscript|>}
>>>



Was \verb+\SUBOff \SUPOff+. Any problems?

\<postscript for /Picture\><<<
\def\PsCode##1{{\ht:special{\PsCodeSpecial##1}}}%
>>>

\<tex halign and cr/crcr\><<<
\iffalse{\fi   
\let\sv:halign=\halign
\let\sv:cr=\cr
\let\sv:crcr=\crcr
\iffalse}\fi 
\RecallTeXcr \let\halign =\TeXhalign
>>>

\<tex4ht halign and cr/crcr\><<<
\iffalse{\fi   
\let\halign=\sv:halign
\let\cr=\sv:cr
\let\crcr=\sv:crcr
\iffalse}\fi 
>>>

\<delay postscript\><<<
\let\PsCode=\relax
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Last File}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

A utility file for letting the openoffice script at tex4ht.env know
when the files are ready for zipping.

\<insert last file\><<<
\:CheckOption{oo2}\if:Option
   \ht:special{t4ht>\jobname .4od}%
   \ht:special{t4ht*>}%
   \ht:special{t4ht<\jobname .4od}%
\else
   \ht:special{t4ht>\jobname .4ox}%
   \ht:special{t4ht*>}%
   \ht:special{t4ht<\jobname .4ox}%

\fi
>>>


\<configure ooffice tex4ht\><<<
\:CheckOption{.gif} \if:Option
    \Configure{Picture}{.gif}
\fi
\:CheckOption{.wmf} \if:Option
    \Configure{Picture}{.wmf}
\fi 
\:CheckOption{.svg} \if:Option
    \Configure{Picture}{.svg}
\fi 
\:CheckOption{info}\if:Option 
    \Log:Note{to request a format for dvi pictures,
         use the desired command line option from:
        `.gif', `.svg', `.wmf'}}
\fi
>>>





%%%%%%%%%%%%%%%%%%%%%%
\subsection{Shared}
%%%%%%%%%%%%%%%%%%%%%%


\<configure ooffice tex4ht\><<<
\Configure{Preamble}      
  {}
  {|<insert settings.xml|>%             |%before mathml|%
   |<switch to main body OOstlyles|>%
   |<switch to main body OOmanifest|>%
   |<insert meta.xml|>%
  } 
>>>


\<configure ooffice tex4ht\><<<
\Configure{@/BODY}
  {\relax
   \ifnum \FileNumber=1
     |<styles at /@BODY|>%
     |<manifest at /@BODY|>%
     |<insert last file|>%
   \fi
  }
>>>


\<configure ooffice tex4ht\><<<
\Configure{CutAtTITLE+}{}
\Configure{HPageTITLE+}{}
\Configure{TITLE}{}{}
\Configure{TITLE+}{}{}
>>>



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Title Page}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{LaTeX}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<ooffice title page\><<<
\Configure{maketitle}
   {\HCode{<!--begin maketitle-->}}
   {\HCode{<!--end maketitle-->}\par}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<text:p text:style-name="Title|<cond rtl class|>" >}}
   {\HCode{</text:p>}}
>>>


\<ooffice title page\><<<
\Configure{thanks author date and} 
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<text:p text:style-name="Text body|<cond rtl class|>">}}
   {\HCode{</text:p>}}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<text:p text:style-name="author|<cond rtl class|>">}}
   {\HCode{</text:p>}}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<text:p text:style-name="date|<cond rtl class|>">}}
   {\HCode{</text:p>}}
   {}
   {}%   {\HCode{<text:line-break/>}}
>>>


\<footnote thank\><<<
\Configure{thank}
   {\setbox\tmp:bx=\hbox\bgroup}
   {\egroup}
   {\NoFonts   \leavevmode   \bgroup \protect\Configure{$}{}{}{}%
    \hbox{\HCode{<text:footnote\Hnewline text:id="}|<thank id|>%
               \HCode{"><text:footnote-citation>}}%
   }
   {\egroup \EndNoFonts
    \HCode{</text:footnote-citation><text:footnote-body>
    <text:p\Hnewline text:style-name="Footnote"><text:s/>}}
   {\HCode{</text:p></text:footnote-body></text:footnote>}}
>>>




\<ooffice title page\><<<
\NewConfigureOO{title}
\ConfigureOO{title}{%
<style:style style:name="Title"
             style:family="paragraph"
             style:parent-style-name="Heading"
             style:next-style-name="author"
             style:class="chapter">\Hnewline
<style: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"/>
</style:style> \Hnewline |<Title rtl|> }
>>>


\<ooffice title page\><<<
\NewConfigureOO{author}
\ConfigureOO{author}{%
<style:style      style:name="author"
                  style:family="paragraph"
                  style:parent-style-name="Text body"
                  style:next-style-name="date">\Hnewline
<style:properties fo:margin-top="0cm"
                  fo:margin-bottom="0.199cm"
                  fo:font-size="14pt"
                  fo:text-align="center"
                  style:justify-single-word="false"/>
</style:style>\Hnewline |<author rtl|>}
>>>

\<ooffice title page\><<<
\NewConfigureOO{date}
\ConfigureOO{date}{%
<style:style style:name="date"
                  style:family="paragraph"
                  style:parent-style-name="Text body"
                  style:next-style-name="Text body">\Hnewline
<style:properties fo:margin-top="0cm"
                  fo:margin-bottom="0.199cm"
                  fo:font-size="14pt"
                  fo:text-align="center"
                  style:justify-single-word="false"/>
</style:style>\Hnewline |<date rtl|>}
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Scr}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\<configure ooffice scrbook\><<<
|<scr title page|>
>>>


\<configure ooffice scrreprt\><<<
|<scr title page|>
>>>


\<scr title page\><<<
\ConfigureEnv{titlepage}
   {\bgroup 
      \ifvmode \IgnorePar\fi \EndP
%     \HCode{<div class="titlepage">}%
      \Configure{tabular}{}{}{}{}{}{}% 
      \ConfigureEnv{tabular}{}{}{}{}{}{}% 
      \ConfigureEnv{center}{}{}{}{}}
   {\ifvmode \IgnorePar\fi \EndP
%     \HCode{</div>}%
    \egroup}
   {} {}
\Configure{dedication}
   {\ifvmode \IgnorePar\fi\EndP
    \HCode{<text:p text:style-name="Text body" >}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</text:p>}}
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Abstract}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{LaTeX}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<ooffice title page\><<<
\ConfigureEnv{abstract}
   {\IgnorePar\EndP \bgroup
      \Configure{HtmlPar}
         {\EndP \HCode{<text:p text:style-name="abstract|<cond rtl class|>">}}
         {\EndP \HCode{<text:p text:style-name="abstract|<cond rtl class|>">}}
         {\HCode{</text:p>}}
         {\HCode{</text:p>}}
   }
   {\ifvmode \IgnorePar\fi \EndP \egroup \ShowPar\par \IgnoreIndent }
   {\ifvmode \IgnorePar\fi\EndP
    \HCode{<text:p text:style-name="abstract title">}%
   }
   {\HCode{</text:p>}}
>>>


\<ooffice title page\><<<
\NewConfigureOO{abstract}
\ConfigureOO{abstract}{\Hnewline
<style:style style:name="abstract"
                  style:family="paragraph"
                  style:parent-style-name="Text body"
                  style:next-style-name="Text body">\Hnewline
<style:properties fo:margin-left="3cm"
                  fo:margin-right="3cm"
                  fo:margin-top="0cm"
                  fo:margin-bottom="0.199cm"
                  fo:font-size="10pt"
                  fo:text-indent="0cm"
                  style:auto-text-indent="false"/>\Hnewline
</style:style>\Hnewline |<abstract rtl|> }
>>>

\<ooffice title page\><<<
\NewConfigureOO{abstract-title}
\ConfigureOO{abstract-title}{\Hnewline
<style:style style:name="abstract title"
                  style:family="paragraph"
                  style:parent-style-name="abstract"
                  style:next-style-name="abstract">\Hnewline
<style:properties fo:margin-top="0.499cm"
                  fo:margin-bottom="0cm"
                  fo:font-weight="bold"
                  fo:text-align="center"
                  style:justify-single-word="false"/>\Hnewline
</style:style>\Hnewline
}
>>>




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{List Environments}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<configure ooffice latex\><<<     
\ConfigureList{itemize}%
   {\EndP\HCode{<text:unordered-list
      text:style-name="Itemize|<cond rtl class|>">\Hnewline}\def\end@Item{}\bgroup
     \Configure{HtmlPar}
      {\EndP\HCode{<text:p text:style-name="Inside itemize|<cond rtl class|>">}}
      {\EndP\HCode{<text:p text:style-name="Inside itemize|<cond rtl class|>">}}
      {\HCode{</text:p>\Hnewline}}     {\HCode{</text:p>\Hnewline}}}
   {\EndP\IgnorePar \egroup \HCode{</text:list-item>\Hnewline
      </text:unordered-list>\Hnewline}\ShowPar}
   {\EndP\end@Item\DeleteMark}
   {\HCode{<text:list-item>}\par\ShowPar
      \def\end@Item{\HCode{</text:list-item>\Hnewline}}}
>>>




\<configure ooffice latex\><<<
\NewConfigureOO{itemize}
\ifOption{oo+}
  {\ConfigureOO{itemize}
    {|<oo+ itemize style|>|<oo+ itemize style rtl|>}}
  {\ConfigureOO{itemize}{|<oo+ itemize style rtl|>}}
>>>

\<oo+ itemize style\><<<
<text:list-style style:name="Itemize">\Hnewline
  <text:list-level-style-bullet
             text:level="1"
             text:style-name="Bullet Symbols"
             style:num-suffix="."
             text:bullet-char="-">\Hnewline
     <style:properties text:min-label-width="0.499cm"/>\Hnewline
   </text:list-level-style-bullet>\Hnewline
  </text:list-style>\Hnewline
<style:style style:name="Inside itemize"
             style:family="paragraph"
             style:parent-style-name="Text body"
             style:list-style-name="Itemize"/>\Hnewline
>>>

\<configure ooffice latex\><<<     
\ConfigureList{enumerate}%
   {\EndP\HCode{<text:ordered-list
      text:style-name="Enumerate|<cond rtl class|>">\Hnewline}\def\end@Item{}\bgroup
     \Configure{HtmlPar}
      {\EndP\HCode{<text:p text:style-name="Inside enumerate|<cond rtl class|>">}}
      {\EndP\HCode{<text:p text:style-name="Inside enumerate|<cond rtl class|>">}}
      {\HCode{</text:p>\Hnewline}}     {\HCode{</text:p>\Hnewline}}}
   {\EndP\IgnorePar \egroup \HCode{</text:list-item>\Hnewline
     </text:ordered-list>\Hnewline}\ShowPar}
   {\EndP\end@Item\DeleteMark}
   {\HCode{<text:list-item>}\par\ShowPar
     \def\end@Item{\HCode{</text:list-item>\Hnewline}}}
>>>




\<configure ooffice latex\><<<
\NewConfigureOO{enumerate}
\ifOption{oo+}
  {\ConfigureOO{enumerate}%
    {|<oo+ enumerate style|>%
     |<oo+ enumerate style rtl|>}}
  {\ConfigureOO{enumerate}{|<oo+ enumerate style rtl|>}}
>>>


\<oo+ enumerate style\><<<
<text:list-style style:name="Enumerate">\Hnewline
  <text:list-level-style-number
             text:level="1"
             text:style-name="Numbering Symbols"
             style:num-suffix="."
             style:num-format="1">\Hnewline
    <style:properties text:min-label-width="0.499cm"/>\Hnewline
  </text:list-level-style-number>\Hnewline
</text:list-style>\Hnewline
<style:style style:name="Inside enumerate" 
             style:family="paragraph"
             style:parent-style-name="Text body"
             style:list-style-name="Enumerate"/>\Hnewline 
>>>






\<configure ooffice latex\><<<     
\let\end:itm=\empty
\HAssign\desc:level=0
\ConfigureList{description}%
   {\EndP \end:itm  \gHAdvance\desc:level by 1
    \SaveHtmlPar \HCode{<!--text:section 
      text:style-name="description|<cond rtl class|>"
         text:name="description"\Hnewline -->}%
      \global\let\end:itm=\empty 
     \Configure{HtmlPar}
        {\end:itm\gdef\end:itm{\HCode{</text:p>\Hnewline}}%
          \HCode{<text:p
          text:style-name="dd|<cond rtl class|>%
             \ifnum \desc:level>1 -\desc:level \fi">}}
        {\end:itm\gdef\end:itm{\HCode{</text:p>\Hnewline}}%
          \HCode{<text:p
          text:style-name="dd|<cond rtl class|>%
             \ifnum \desc:level>1 -\desc:level \fi">}}
        {}{}%
   }
   {\end:itm \global\let\end:itm=\empty 
    \HCode{<!-- /text:section -->}\RecallHtmlPar 
    \gHAdvance\desc:level by -1 \ShowPar}
   {\end:itm \gdef\end:itm{\Tg</text:p>}\HCode{<text:p       
      text:style-name="dt|<cond rtl class|>%
         \ifnum \desc:level>1 -\desc:level \fi
     "\Hnewline>}\bgroup \bf}
   {\egroup \end:itm \gdef\end:itm{\HCode{</text:p>}}%
      \HCode{<text:p\Hnewline 
      text:style-name="dd|<cond rtl class|>%
        \ifnum \desc:level>1 -\desc:level \fi"\Hnewline>}}
>>>

\<configure ooffice latex\><<<
\NewConfigureOO{description}
\ConfigureOO{description}{|<oo+ description style|>}
>>>

\<oo+ description style\><<<
<style:style 
    style:name="dd" 
    style:family="paragraph" 
    style:parent-style-name="Text body"> 
 <style:properties 
    fo:margin-left="0.35inch" 
    fo:margin-right="0inch"  
    fo:margin-top="0.2cm" 
    fo:margin-bottom="0.2cm" 
    fo:text-indent="0inch"  
    style:auto-text-indent="false"/> 
</style:style> 
<style:style  
    style:name="dt"  
    style:family="paragraph"> 
 <style:properties 
    fo:margin-left="0.1inch" 
    fo:font-weight="bold"  
 /> 
</style:style> 
>>>



\<oo+ description style\><<<
<style:style 
    style:name="dd-2" 
    style:family="paragraph" 
    style:parent-style-name="Text body"> 
 <style:properties 
    fo:margin-left="0.75inch" 
    fo:margin-right="0inch"  
    fo:margin-top="0.2cm" 
    fo:margin-bottom="0.2cm" 
    fo:text-indent="0inch"  
    style:auto-text-indent="false"/> 
</style:style> 
<style:style  
    style:name="dt-2"  
    style:family="paragraph"> 
 <style:properties 
    fo:margin-left="0.5inch" 
    fo:font-weight="bold"  
 /> 
</style:style> 
>>>








%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Bibliography}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%
\subsection{cite}
%%%%%%%%%%%%%%%%%%%

\<configure ooffice latex\><<<
\Configure{cite}
   {\HCode{<text:bibliography-mark text:identifier="}}  
   {\HCode{"\Hnewline text:bibliography-type="custom1" />}}
   {}{}
\def\@cite#1#2{{#1\if@tempswa , #2\fi}} 
>>>

%   {\HCode{<!--cite-->}}  {\HCode{<!--/cite-->}}
%   {\Link}         {\EndLink}

%%%%%%%%%%%%%%%%%%%
\subsection{Items}
%%%%%%%%%%%%%%%%%%%
  

\<ooffice bib\><<<
\HAssign\bib:N=0
\ConfigureList{thebibliography}%
   {\IgnorePar\EndP \gHAdvance\bib:N by 1
    \HCode{<text:bibliography text:name="bib-\bib:N">
       <text:bibliography-source>\Hnewline
          |<bibliography source|>\Hnewline
       </text:bibliography-source>\Hnewline
       <text:index-body>\Hnewline
    }\let\en:bib=\empty
   }
   {\en:bib\HCode{</text:index-body></text:bibliography>}}
   {\en:bib\def\en:bib{\HCode{</text:p>}}\HCode
                  {<text:p text:style-name="p-bibitem">}}
   {}
\Configure{bibitem}  {\HCode{<!--bibitem }}  {\HCode{-->} } 
% \Configure{bibitem}{\Link}{\EndLink}
>>>


\<ooffice bib\><<<
\NewConfigureOO{p-bibitem}
\ConfigureOO{p-bibitem}{%
   <style:style style:name="p-bibitem"\Hnewline
             style:family="paragraph" \Hnewline
             style:parent-style-name="Standard">\Hnewline
      <style:properties fo:margin-left="1cm"\Hnewline
                     fo:text-indent="-1cm"\Hnewline
                     fo:margin-right="0cm" \Hnewline
                     style:auto-text-indent="false">\Hnewline
              <style:tab-stops/>\Hnewline
      </style:properties>\Hnewline
    </style:style>\Hnewline
}
>>>


\<bibliography source\><<<
<text:index-title-template>}\NoFonts\refname\EndNoFonts\HCode{
</text:index-title-template>\Hnewline
%
  <text:bibliography-entry-template\Hnewline
      text:bibliography-type="custom1"
      text:style-name="Bibliography 1">\Hnewline
%  
    <text:index-entry-bibliography
      text:bibliography-data-field="identifier"/>\Hnewline
%
    <text:index-entry-span>: </text:index-entry-span>\Hnewline
    <text:index-entry-bibliography
                  text:bibliography-data-field="author"/>\Hnewline
    <text:index-entry-span>, </text:index-entry-span>\Hnewline
%    
    <text:index-entry-bibliography
       text:bibliography-data-field="title"/>\Hnewline
    <text:index-entry-span>, </text:index-entry-span>\Hnewline
%    
    <text:index-entry-bibliography
       text:bibliography-data-field="year"/>\Hnewline
    </text:bibliography-entry-template>\Hnewline
>>>



%%%%%%%%%%%%%%%%%%%
\subsection{jurabib}
%%%%%%%%%%%%%%%%%%%




\<configure ooffice jurabib\><<<
\Configure{jblink}{\Link}{\EndLink}
\Configure{jbanchor}{\Link}{\EndLink}
>>>





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{List-Based Environments}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Quotes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<ooffice begin-end env\><<<
\ConfigureEnv{quote}
   {|<begin env section|>}
   {|<end env section|>\par\ShowPar}
   {\EndP \ifvmode \IgnorePar\fi
    \bgroup |<HtmlPar at quote|>%
   }
   {\IgnorePar\EndP \egroup \ShowPar \ShowIndent}
>>>


\<HtmlPar at quote\><<<
\Configure{HtmlPar}
   {\EndP \HCode{|<input line num|>%
                 <text:p text:style-name="quote|<cond rtl class|>">}}
   {\EndP \HCode{|<input line num|>%
                 <text:p text:style-name="quote|<cond rtl class|>">}}
   {\HCode{</text:p>}}
   {\HCode{</text:p>}}%
>>>

\<configure ooffice latex\><<<
\NewConfigureOO{quote}
\ConfigureOO{quote}{\Hnewline
<style:style style:name="quote"
             style:family="paragraph"
             style:parent-style-name="Text body"
             style:next-style-name="Text body">\Hnewline
<style:properties fo:margin-left="1cm"
             fo:margin-right="1cm"
             fo:margin-top="0.199cm"
             fo:margin-bottom="0.199cm"
             fo:text-indent="0cm"
             style:auto-text-indent="false"/>\Hnewline
</style:style>
\Hnewline |<quote trl|>}
>>>



\<begin env section\><<<
\ifvmode \IgnorePar\fi \EndP
\gHAdvance\BegEnd:N by 1
\HCode{<text:section text:style-name="begin-end-env" 
                           text:name="begin-end-env-\BegEnd:N" >%
       <text:p text:style-name="begin-env-p"></text:p>}%
>>>

\<end env section\><<<
\ifvmode \IgnorePar\fi\EndP 
\HCode{<text:p text:style-name="end-env-p"></text:p></text:section>}%
>>>


\<configure ooffice latex\><<<
\HAssign\BegEnd:N=0
>>>


\<configure ooffice latex\><<<
\NewConfigureOO{begin-end-env}
\ConfigureOO{begin-end-env}{\Hnewline
<style:style style:name="begin-env-p" style:family="paragraph">\Hnewline
   <style:properties fo:margin-top="2mm"
                     fo:margin-bottom="0mm" 
                     fo:line-height="0.1mm" />\Hnewline
</style:style>\Hnewline
<style:style style:name="end-env-p" style:family="paragraph">\Hnewline
   <style:properties fo:margin-bottom="2mm"
                     fo:margin-top="0mm" 
                     fo:line-height="0.1mm" />\Hnewline
</style:style>\Hnewline
}
>>>

The indirect use of paragraphs is due to  OpenOffice not recognizing
vertical spaces around sections.

\begin{verbatim}
<style:style style:name="begin-end-env"
             style:family="section">\Hnewline
  <style:properties  fo:margin-top="0.4cm"
                     fo:margin-bottom="0.4cm" />\Hnewline
</style:style>\Hnewline
\end{verbatim}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Quotations}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<ooffice begin-end env\><<<
\ConfigureEnv{quotation}
   {|<begin env section|>}
   {|<end env section|>}
   {\IgnorePar\EndP \bgroup  |<HtmlPar for quatation|>}       
   {\EndP\IgnorePar \egroup \ShowPar }  
>>>

\<HtmlPar for quatation\><<<
\Configure{HtmlPar}
   {\EndP \HCode{<text:p text:style-name="quotation|<cond rtl class|>">}}
   {\EndP \HCode{<text:p text:style-name="quotation|<cond rtl class|>">}}
   {\HCode{</text:p>}}
   {\HCode{</text:p>}}%
>>>

\<ooffice begin-end env\><<<
\NewConfigureOO{quotation}
\ConfigureOO{quotation}
   {\Hnewline
      <style:style style:name="quotation"
                   style:family="paragraph" 
                   style:parent-style-name="Standard">\Hnewline
        <style:properties
                   fo:margin-left="1cm"
                   fo:margin-right="1cm"
                   fo:margin-top="0cm"
                   fo:margin-bottom="0cm"
                   fo:text-indent="0.499cm"
                   style:auto-text-indent="true"/>\Hnewline
      </style:style>\Hnewline |<quotation rtl|>%
   }
>>>




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{flush right and left}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%




\<ooffice begin-end env\><<<
\ConfigureEnv{flushright}
  {|<begin env section|>\HCode{<!--begin flushright-->}}
  {|<end env section|>%
   \HCode{<!--end flushright-->}|<try env inline par|>}
  {} {}
\ConfigureList{flushright}
 {}{}{|<HtmlPar at flushright|>\par}{}
>>>


\<HtmlPar at flushright\><<<
\Configure{HtmlPar}
   {\EndP \HCode{<text:p text:style-name="flushright">}}
   {\EndP \HCode{<text:p text:style-name="flushright">}}
   {\HCode{</text:p>}}
   {\HCode{</text:p>}}%
>>>



\<ooffice begin-end env\><<<
\NewConfigureOO{flushright}
\ConfigureOO{flushright}
  {\Hnewline
<style:style style:name="flushright"
             style:family="paragraph"
             style:parent-style-name="Text body"
             style:next-style-name="Text body"
             style:master-page-name="">
<style:properties fo:margin-top="0.199cm"
             fo:margin-bottom="0.199cm"
             fo:text-align="end"
             style:justify-single-word="false"
             style:page-number="0"/>
</style:style>\Hnewline
  }
>>>




\<ooffice begin-end env\><<<
\ConfigureEnv{flushleft}
  {|<begin env section|>\HCode{<!--begin flushleft-->}}
  {|<end env section|>%
   \HCode{<!--end flushleft-->}|<try env inline par|>}
  {} {}
\ConfigureList{flushleft}
 {}{}{|<HtmlPar at flushleft|>\par}{}
>>>


\<HtmlPar at flushleft\><<<
\Configure{HtmlPar}
   {\EndP \HCode{<text:p text:style-name="flushleft">}}
   {\EndP \HCode{<text:p text:style-name="flushleft">}}
   {\HCode{</text:p>}}
   {\HCode{</text:p>}}%
>>>



\<ooffice begin-end env\><<<
\NewConfigureOO{flushleft}
\ConfigureOO{flushleft}
  {\Hnewline
<style:style style:name="flushleft"
             style:family="paragraph"
             style:parent-style-name="Text body"
             style:next-style-name="Text body">
<style:properties fo:margin-top="0.199cm"
             fo:margin-bottom="0.199cm"
             fo:text-align="start"
             style:justify-single-word="false"/>
</style:style>
  \Hnewline}
>>>




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<ooffice begin-end env\><<<
\ConfigureEnv{center}
  {|<begin env section|>\HCode{<!--begin center-->}}
  {|<end env section|>%
   \HCode{<!--end center-->}|<try env inline par|>}
  {} {}
\ConfigureList{center}
 {}{}{|<HtmlPar at center|>\par}{}
>>>


\<HtmlPar at center\><<<
\Configure{HtmlPar}
   {\EndP \HCode{<text:p text:style-name="center">}}
   {\EndP \HCode{<text:p text:style-name="center">}}
   {\HCode{</text:p>}}
   {\HCode{</text:p>}}%
>>>

\<ooffice begin-end env\><<<
\NewConfigureOO{center}
\ConfigureOO{center}
  {\Hnewline
   <style:style style:name="center"
             style:family="paragraph"
             style:parent-style-name="Text body"
             style:next-style-name="Text body">
<style:properties fo:margin-top="0.199cm"
             fo:margin-bottom="0.199cm"
             fo:text-align="center"
             style:justify-single-word="false">
   <style:tab-stops/>
</style:properties>
</style:style>\Hnewline
   }
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{centerline}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<ooffice begin-end env\><<<
\Configure{centerline}
   {\EndP \ifvmode \IgnorePar \fi
    \HCode{<text:p text:style-name="FirstCenterPar">}}
   {\HCode{</text:p>}|<try inline par|>}
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Sections}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Shared}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


THe following protects section titles from side effects, and also is 
introduced for protecting writeups to tables of contents.

\<configure ooffice latex\><<<
\Configure{NoSection}
  {\let\sv:index\index \let\sv:label\label
   \let\sv:newline\newline \def\newline{ }%
   \let\sv:setfontsize\@setfontsize  \let\@setfontsize\:gobbleIII
   \let\index\@gobble  \let\label\@gobble
   \let\sva:rEfLiNK\a:rEfLiNK
   \let\svb:rEfLiNK\b:rEfLiNK
   \let\svc:rEfLiNK\c:rEfLiNK
   \expandafter\let\expandafter\svC:rEfLiNK\c:rEfLiNK
   \Configure{ref}{}{}{}%  \let\sv:ref\ref  \let\ref\@gobble
  }
  {\let\index\sv:index \let\label\sv:label
   \let\a:rEfLiNK\sva:rEfLiNK
   \let\b:rEfLiNK\svb:rEfLiNK
   \let\c:rEfLiNK\svc:rEfLiNK
   \expandafter\let\c:rEfLiNK\svC:rEfLiNK  %  \let\ref\sv:ref
   \let\newline\sv:newline    \let\@setfontsize\sv:setfontsize
  }

>>>


\<basic ooffice sections\><<<
\Configure{part}
   {\IgnorePar\EndP \HCode{<!--start part-->}}   
   {\IgnorePar\EndP \HCode{<!--end part-->}}
   {\HCode{<text:p text:style-name="part">
           <text:span text:style-name="part">}\TitleMark\space
    \HCode{</text:span>}%
    \HCode{<text:line-break/>}}
   {\HCode{</text:p>\Hnewline}\par\ShowPar\IgnoreIndent}
\ConfigureMark{part}{\partname\space\thepart}
\NewConfigureOO{part}
\ConfigureOO{part}{\Hnewline
<style:style style:name="part"
                  style:family="paragraph"
                  style:parent-style-name="Heading|<cond rtl class|>"
                  style:next-style-name="Text body"
                  style:list-style-name="part">\Hnewline
<style:properties fo:margin-top="0.52cm"
                  fo:margin-bottom="0.21cm"
                  fo:font-size="18pt"/>\Hnewline
</style:style>\Hnewline
}
>>>




\<ooffice chapters\><<<
\Configure{chapter}
   {\IgnorePar\EndP \HCode{<!--start of chapter-->}}   
   {\IgnorePar\EndP \HCode{<!--end of chapter-->}}
   {\HCode{<text:h text:style-name="Heading 1|<cond rtl class|>" 
        text:level="1"><text:span 
        text:style-name="chapter">}\TitleMark\space
    \HCode{</text:span>}%
    \HCode{<text:line-break/>}\IgnoreIndent}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
\Configure{likechapter}
   {\IgnorePar\EndP \HCode{<!--start of chapter*-->}}   
   {\IgnorePar\EndP \HCode{<!--end of chapter*-->}}
   {\HCode{<text:h text:style-name="Heading 1|<cond rtl class|>" 
        text:level="1">}\IgnoreIndent}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
>>>

\<report chapters\><<<
\ConfigureMark{chapter}
   {\chaptername \ \thechapter}
>>>

\<book chapters\><<<
\ConfigureMark{chapter}
   {\if@mainmatter \chaptername \ \thechapter\fi}
>>>


\<basic ooffice sections\><<<
\ConfigureMark{section}
   {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
    \else  \@seccntformat{section}\fi }
\Configure{section}
   {\IgnorePar\EndP \HCode{<!--start of section-->}}   
   {\IgnorePar\EndP \HCode{<!--end of section-->}}
   {\HCode{<text:h text:style-name="Heading 2|<cond rtl class|>" 
                   text:level="2"><text:span
                   text:style-name="section">}\TitleMark\space
    \HCode{</text:span>}\IgnoreIndent}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
>>>



\<basic ooffice sections\><<<
\ConfigureMark{subsection}
   {\ifnum \c:secnumdepth>\c@secnumdepth  \expandafter\:gobble
    \else \@seccntformat{subsection}\fi }
\Configure{subsection}
   {\IgnorePar\EndP \HCode{<!--start of subsection-->}}   
   {\IgnorePar\EndP \HCode{<!--end of subsection-->}}
   {\HCode{<text:h text:style-name="Heading 3|<cond rtl class|>"
                   text:level="3"><text:span
                   text:style-name="subsection">}\TitleMark\space
    \HCode{</text:span>}\IgnoreIndent}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
>>>  


\<basic ooffice sections\><<<
\ConfigureMark{subsubsection}
   {\ifnum \c:secnumdepth>\c@secnumdepth  \expandafter\:gobble
    \else \@seccntformat{subsubsection}\fi }
\Configure{subsubsection}
   {\IgnorePar\EndP \HCode{<!--start of subsubsection-->}}   
   {\IgnorePar\EndP \HCode{<!--end of subsubsection-->}}
   {\HCode{<text:h text:style-name="Heading 4|<cond rtl class|>"
                   text:level="4"><text:span
                   text:style-name="subsubsection">}\TitleMark\space
    \HCode{</text:span>}\IgnoreIndent}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
>>>  


\<basic ooffice sections\><<<
\Configure{likesection}
   {\IgnorePar\EndP \HCode{<!--start of section*-->}}   
   {\IgnorePar\EndP \HCode{<!--end of section*-->}}
   {\HCode{<text:h text:style-name="Heading 2|<cond rtl class|>" 
                   text:level="2">}\IgnoreIndent}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
\Configure{likesubsection}
   {\IgnorePar\EndP \HCode{<!--start of subsection*-->}}   
   {\IgnorePar\EndP \HCode{<!--end of subsection*-->}}
   {\HCode{<text:h text:style-name="Heading 3|<cond rtl class|>" 
                   text:level="3">}\IgnoreIndent}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
>>>



\<basic ooffice sections\><<<
\Configure{paragraph}
   {\IgnorePar\EndP \HCode{<!--start of paragraph-->}}   
   {\IgnorePar\EndP \HCode{<!--end of paragraph-->}}
   {\HCode{<text:h text:style-name="Heading 5|<cond rtl class|>"
                   text:level="5">}}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
\Configure{subparagraph}
   {\IgnorePar\EndP \HCode{<!--start of subparagraph-->}}   
   {\IgnorePar\EndP \HCode{<!--end of subparagraph-->}}
   {\HCode{<text:h text:style-name="Heading 6|<cond rtl class|>"
                   text:level="6">}}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
>>>  




\<configure ooffice tex4ht\><<<
\Configure{TocAt}{}{}
\Configure{TocAt*}{}{}
>>>


\<basic ooffice sections\><<<
\NewConfigureOO{Heading-1}
\ConfigureOO{Heading-1}{\Hnewline
<style:style style:name="Heading 1"
                  style:family="paragraph"
                  style:parent-style-name="Heading"
                  style:next-style-name="Text body"
                  style:class="text">\Hnewline
<style:properties fo:font-size="17.2999992370605pt"
                  fo:font-weight="bold"
                  style:font-size-asian="115\%"
                  style:font-weight-asian="bold"
                  style:font-size-complex="115\%"
                  style:font-weight-complex="bold"/>
</style:style>
\Hnewline |<Heading 1 rtl|> }
>>>




\<basic ooffice sections\><<<
\NewConfigureOO{Heading-2}
\ConfigureOO{Heading-2}{\Hnewline
<style:style style:name="Heading 2"
                  style:family="paragraph"
                  style:parent-style-name="Heading"
                  style:next-style-name="Text body"
                  style:class="text">\Hnewline
<style:properties fo:font-size="14.3999996185303pt"
                  style:font-size-complex="14pt"
                  style:font-style-complex="italic"
                  style:font-weight-complex="bold"
                  fo:margin-top="0.42cm"
                  fo:margin-bottom="0cm"/>
</style:style>
\Hnewline |<Heading 2 rtl|> }
>>>




\<basic ooffice sections\><<<
\NewConfigureOO{Heading-3}
\ConfigureOO{Heading-3}{\Hnewline
<style:style style:name="Heading 3"
                  style:family="paragraph"
                  style:parent-style-name="Heading"
                  style:next-style-name="Text body"
                  style:class="text">\Hnewline
<style: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"/>
</style:style>
\Hnewline |<Heading 3 rtl|>}
>>>



\<basic ooffice sections\><<<
\NewConfigureOO{Heading-4}
\ConfigureOO{Heading-4}{\Hnewline
<style:style style:name="Heading 4"
                  style:family="paragraph"
                  style:parent-style-name="Heading"
                  style:next-style-name="Text body"
                  style:class="text">\Hnewline
<style:properties fo:font-size="12pt"
                  fo:font-weight="bold"
                  fo:margin-top="0.42cm"
                  fo:margin-bottom="0cm"
                  style:font-size-complex="85\%"
                  style:font-style-complex="italic"
                  style:font-weight-complex="bold"
/>
</style:style>
\Hnewline  |<Heading 4 rtl|>}
>>>



\<basic ooffice sections\><<<
\NewConfigureOO{Heading-5}
\ConfigureOO{Heading-5}{\Hnewline
<style:style style:name="Heading 5"
                  style:family="paragraph"
                  style:parent-style-name="Heading"
                  style:next-style-name="Text body"
                  style:class="text">\Hnewline
<style:properties fo:margin-left="0cm"
                  fo:margin-right="0cm"
                  fo:margin-top="0.42cm"
                  fo:margin-bottom="0cm"
                  fo:font-size="12pt"
                  fo:font-style="italic"
                  fo:font-weight="normal"
                  style:font-size-complex="85\%"
                  style:font-weight-complex="bold"
                  fo:text-indent="0cm"
                  style:auto-text-indent="false"/>
</style:style>
\Hnewline |<Heading 5 rtl|>}
>>>


\<basic ooffice sections\><<<
\NewConfigureOO{Heading-6}
\ConfigureOO{Heading-6}{\Hnewline
<style:style style:name="Heading 6"
                  style:family="paragraph"
                  style:parent-style-name="Heading"
                  style:next-style-name="Text body"
                  style:class="text">\Hnewline
<style:properties fo:font-size="75\%"
                  fo:font-weight="bold"
                  style:font-size-asian="75\%"
                  style:font-weight-asian="bold"
                  style:font-size-complex="75\%"
                  style:font-weight-complex="bold"/>
</style:style>
\Hnewline |<Heading 6 rtl|>}
>>>

\<basic ooffice sections\><<<
\NewConfigureOO{Heading-7}
\ConfigureOO{Heading-7}{\Hnewline
<style:style style:name="Heading 7"
                  style:family="paragraph"
                  style:parent-style-name="Heading"
                  style:next-style-name="Text body"
                  style:class="text">\Hnewline
<style:properties fo:font-size="75\%"
                  fo:font-weight="bold"
                  style:font-size-asian="75\%"
                  style:font-weight-asian="bold"
                  style:font-size-complex="75\%"
                  style:font-weight-complex="bold"/>
</style:style>
\Hnewline |<Heading 7 rtl|>}
>>>

\<basic ooffice sections\><<<
\NewConfigureOO{Heading-8}
\ConfigureOO{Heading-8}{\Hnewline
<style:style style:name="Heading 8"
                  style:family="paragraph"
                  style:parent-style-name="Heading"
                  style:next-style-name="Text body"
                  style:class="text">\Hnewline
<style:properties fo:font-size="75\%"
                  fo:font-weight="bold"
                  style:font-size-asian="75\%"
                  style:font-weight-asian="bold"
                  style:font-size-complex="75\%"
                  style:font-weight-complex="bold"/>
</style:style>
\Hnewline |<Heading 8 rtl|>}
>>>


\<basic ooffice sections\><<<
\NewConfigureOO{Heading-9}
\ConfigureOO{Heading-9}{\Hnewline
<style:style style:name="Heading 9"
                  style:family="paragraph"
                  style:parent-style-name="Heading"
                  style:next-style-name="Text body"
                  style:class="text">\Hnewline
<style:properties fo:font-size="75\%"
                  fo:font-weight="bold"
                  style:font-size-asian="75\%"
                  style:font-weight-asian="bold"
                  style:font-size-complex="75\%"
                  style:font-weight-complex="bold"/>
</style:style>
\Hnewline |<Heading 9 rtl|>}
>>>


\<basic ooffice sections\><<<
\NewConfigureOO{Heading-10}
\ConfigureOO{Heading-10}{\Hnewline
<style:style style:name="Heading 10"
                  style:family="paragraph"
                  style:parent-style-name="Heading"
                  style:next-style-name="Text body"
                  style:class="text">\Hnewline
<style:properties fo:font-size="75\%"
                  fo:font-weight="bold"
                  style:font-size-asian="75\%"
                  style:font-weight-asian="bold"
                  style:font-size-complex="75\%"
                  style:font-weight-complex="bold"/>
</style:style>
\Hnewline |<Heading 10 rtl|>}
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Scr}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\<scr ooffice chapters\><<<
\ConfigureMark{chapter}
   {\if@mainmatter \thechapter.~~\fi}
\Configure{chapter}
   {\IgnorePar\EndP \HCode{<!--start of chapter-->}}   
   {\IgnorePar\EndP \HCode{<!--end of chapter-->}}
   {\HCode{<text:h text:style-name="Heading 1" 
                   text:level="1"><text:span
                   text:style-name="chapter">}\TitleMark\space
    \HCode{</text:span>}\IgnoreIndent}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
\Configure{likechapter}
   {\IgnorePar\EndP \HCode{<!--start of chapter*-->}}   
   {\IgnorePar\EndP \HCode{<!--end of chapter*-->}}
   {\HCode{<text:h text:style-name="Heading 1" 
                   text:level="1">}\IgnoreIndent}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
\Configure{addchap}
   {\IgnorePar\EndP \HCode{<!--start of addchap-->}}   
   {\IgnorePar\EndP \HCode{<!--end of addchap-->}}
   {\HCode{<text:h text:style-name="Heading 1" 
                   text:level="1">}\IgnoreIndent}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
>>>


\<basic scr ooffice sections\><<<
\ConfigureMark{section}
   {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
    \else  \thesection\space\fi }
\Configure{section}
   {\IgnorePar\EndP \HCode{<!--start of section-->}}   
   {\IgnorePar\EndP \HCode{<!--end of section-->}}
   {\HCode{<text:h text:style-name="Heading 2" 
                   text:level="2"><text:span
                   text:style-name="section">}\TitleMark\space
    \HCode{</text:span>}\IgnoreIndent}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
>>>



\<basic scr ooffice sections\><<<
\ConfigureMark{subsection}
   {\ifnum \c:secnumdepth>\c@secnumdepth  \expandafter\:gobble
    \else \thesubsection\space\fi }
\Configure{subsection}
   {\IgnorePar\EndP \HCode{<!--start of subsection-->}}   
   {\IgnorePar\EndP \HCode{<!--end of subsection-->}}
   {\HCode{<text:h text:style-name="Heading 3"
                   text:level="3"><text:span 
                   text:style-name="subsection">}\TitleMark\space
    \HCode{</text:span>}\IgnoreIndent}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
>>>  


\<basic scr ooffice sections\><<<
\Configure{likesection}
   {\IgnorePar\EndP \HCode{<!--start of section*-->}}   
   {\IgnorePar\EndP \HCode{<!--end of section*-->}}
   {\HCode{<text:h text:style-name="Heading 2" 
                   text:level="2">}\IgnoreIndent}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
\Configure{likesubsection}
   {\IgnorePar\EndP \HCode{<!--start of subsection*-->}}   
   {\IgnorePar\EndP \HCode{<!--end of subsection*-->}}
   {\HCode{<text:h text:style-name="Heading 3" 
                   text:level="3">}\IgnoreIndent}
   {\HCode{</text:h>\Hnewline}\par\ShowPar}
>>>






\<scrbook end units\><<<
\Configure{endlikeparagraph}
   {paragraph,subsubsection,likesubsubsection,subsection,%
    likesubsection,section,%
    likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endsubparagraph}
   {likesubparagraph,likeparagraph,subsubsection,likesubsubsection,%
    subsection,likesubsection,section,%
    likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endlikesubparagraph}
   {subparagraph,likeparagraph,subsubsection,likesubsubsection,%
    subsection,likesubsection,section,%
    likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endsection}
     {likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endlikesection}
     {section,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endsubsection}
   {likesubsection,section,likesection,chapter,%
      likechapter,addchap,appendix,part,likepart}
\Configure{endlikesubsection}
   {subsection,section,likesection,chapter,%
      likechapter,addchap,appendix,part,likepart}
\Configure{endsubsubsection}
   {likesubsubsection,subsection,likesubsection,section,%
      likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endlikesubsubsection}
   {subsubsection,subsection,likesubsection,section,%
      likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endparagraph}
   {likeparagraph,subsubsection,likesubsubsection,subsection,%
    likesubsection,section,%
    likesection,chapter,likechapter,addchap,appendix,part,likepart}
>>>


%%%%%%%%%%%%%
\subsection{alphanum}
%%%%%%%%%%%%%

\<configure ooffice alphanum\><<<
\bgroup
   \let\ifx=\relax
   \let\:temp=\relax
   \let\:tempa=\expandafter
   \let\expandafter=\relax
   \let\:TableOfContents=\relax
   \let\else=\relax
   \let\if=\relax
   \let\fi=\relax
   \def\Auto:ent#1{\noexpand\Auto:ent{#1,toclvla,liketoclvla,toclvlb,%
      liketoclvlb,toclvlc,liketoclvlc,toclvld,liketoclvld,toclvle,%
      liketoclvle,toclvlf,liketoclvlf,toclvlg,liketoclvlg,toclvlh,%
      liketoclvlh,toclvli,liketoclvli,toclvlj,%
      liketoclvlj,toclvlk,liketoclvlk,toclvll,liketoclvll}}
   \edef\:TOC{\def\noexpand\:TOC{\:TOC}}
   \:tempa 
\egroup \:TOC
>>>


\<configure ooffice alphanum\><<<
\ConfigureToc{chapter}
  {\HCode{<text:p text:style-name="P1"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
>>>

\<configure ooffice alphanum\><<<
\def\:tempc#1#2#3#4{%
   \ConfigureMark{toclvl#1}
      {\HCode{<text:span 
          text:style-name="toclvl#1">}\csname thelvl#1\endcsname
       \HCode{</text:span><text:s/>}}%
   \Configure{toclvl#1}
      {}{}
      {\ifvmode \IgnorePar\fi \EndP\IgnorePar
       \HCode{<text:h text:style-name="Heading #4" text:level="#4"
                   >}\TitleMark\space\HtmlParOff}
      {\HCode{</text:h>}\HtmlParOn \ShowPar\IgnoreIndent \par}%
   \ConfigureToc{toclvl#1}
      {\HCode{<text:p text:style-name="P#4"><text:span 
                                          text:style-name="toc-mark">}%
       |<alphanum toc spaces|>%
       \def\:temp{\J@INumberRoot{#2}{\tmp:cnt}}%
       \afterassignment\:temp \tmp:cnt}
      {#3\HCode{</text:span><text:s/>}}
      {}
      {\HCode{</text:p>}}%
   \ConfigureToc{liketoclvl#1}
      {\HCode{<text:p text:style-name="P#4"><text:span 
                                          text:style-name="toc-mark">}%
       |<alphanum toc spaces|>%
       \def\:temp{\J@INumberRoot{#2}{\tmp:cnt}}%
       \afterassignment\:temp \tmp:cnt}
      {#3\HCode{</text:span><text:s/>}}
      {}
      {\HCode{</text:p>}}%
}
\:tempc a1{.}{3}
\:tempc b2{.}{4}
\:tempc c3{.}{5}
\:tempc d4{)}{5}
\:tempc e5{)}{5}
\:tempc f6{)}{5}
\:tempc g7{)}{5}
\:tempc h8{)}{5}
\:tempc i9{)}{5}
\:tempc j{10}{)}{5}
\:tempc k{11}{)}{5}
\:tempc l{12}{)}{5}
>>>

\<alphanum toc spaces\><<<
\tmp:cnt=0 \loop \advance\tmp:cnt by 1
                  \ifnum \tmp:cnt<#2 ~~\repeat
>>>





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Tables Of Contents}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Entries}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


 \<non chap tocs\><<<
\ConfigureToc{part}
  {\HCode{<text:p text:style-name="P1"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{likepart}
  {\HCode{<text:p text:style-name="P1"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{section}
  {\HCode{<text:p text:style-name="P1"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{likesection}
  {\HCode{<text:p text:style-name="P1"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{subsection}
  {\HCode{<text:p text:style-name="P2"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{likesubsection}
  {\HCode{<text:p text:style-name="P2"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{subsubsection}
  {\HCode{<text:p text:style-name="P3"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{likesubsubsection}
  {\HCode{<text:p text:style-name="P3"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
>>>




\<chap tocs\><<<
\ConfigureToc{chapter}
  {\HCode{<text:p text:style-name="P1"><text:span 
                                       text:style-name="toc-mark" >}%
   \ifx \chaptername\:UnDef\else \chaptername~\fi}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{likechapter}
  {\HCode{<text:p text:style-name="P1"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{appendix}
  {\HCode{<text:p text:style-name="P1"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
>>>



 \<chap tocs\><<<
\ConfigureToc{part}
  {\HCode{<text:p text:style-name="P1"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{likepart}
  {\HCode{<text:p text:style-name="P1"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{section}
  {\HCode{<text:p text:style-name="P2"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{likesection}
  {\HCode{<text:p text:style-name="P2"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{subsection}
  {\HCode{<text:p text:style-name="P3"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{likesubsection}
  {\HCode{<text:p text:style-name="P3"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{subsubsection}
  {\HCode{<text:p text:style-name="P4"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{likesubsubsection}
  {\HCode{<text:p text:style-name="P4"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
>>>

\verb+<text:tab-stop/>+
 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Content.xml Styles}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Why we need the following in content.xml instead of styles.xml

\<automatic style 1\><<<
\Hnewline
   <style:style style:name="P1"
                style:family="paragraph"
                style:parent-style-name="Contents 1">\Hnewline
      <style:properties>\Hnewline
         <style:tab-stops>\Hnewline
            <style:tab-stop style:position="16.999cm"
                   style:type="right"
                   style:leader-char="."/>\Hnewline
         </style:tab-stops>\Hnewline
      </style:properties>\Hnewline
   </style:style>
   \Hnewline 
>>>


\<automatic style 2\><<<
\Hnewline
   <style:style style:name="P2"
                style:family="paragraph"
                style:parent-style-name="Contents 2">\Hnewline
   <style:properties>\Hnewline
      <style:tab-stops>\Hnewline
      <style:tab-stop style:position="16.999cm"
                   style:type="right"
                   style:leader-char="."/>\Hnewline
      </style:tab-stops>\Hnewline
   </style:properties>\Hnewline
   </style:style>
   \Hnewline 
>>>


\<automatic style 3\><<<
\Hnewline
   <style:style style:name="P3"
                style:family="paragraph"
                style:parent-style-name="Contents 3">\Hnewline
   <style:properties>\Hnewline
      <style:tab-stops>\Hnewline
         <style:tab-stop style:position="16.999cm"
                      style:type="right"
                      style:leader-char="."/>\Hnewline
      </style:tab-stops>\Hnewline
   </style:properties>\Hnewline
   </style:style>\Hnewline
   \Hnewline 
>>>


\<automatic style 4\><<<
\Hnewline
   <style:style style:name="P4"
                style:family="paragraph"
                style:parent-style-name="Contents 4">\Hnewline
   <style:properties>\Hnewline
      <style:tab-stops>\Hnewline
         <style:tab-stop style:position="16.999cm"
                      style:type="right"
                      style:leader-char="."/>\Hnewline
      </style:tab-stops>\Hnewline
   </style:properties>\Hnewline
   </style:style>
      \Hnewline 
>>>


\<automatic style 5\><<<
\Hnewline
   <style:style style:name="P5"
                style:family="paragraph"
                style:parent-style-name="Contents 5">\Hnewline
   <style:properties>\Hnewline
      <style:tab-stops>\Hnewline
         <style:tab-stop style:position="16.999cm"
                      style:type="right"
                      style:leader-char="."/>\Hnewline
      </style:tab-stops>\Hnewline
   </style:properties>\Hnewline
   </style:style>   \Hnewline 
>>>
 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Style.xml Styles}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\<content style 1\><<<
\NewConfigureOO{Contents 1}
\ConfigureOO{Contents 1}{\Hnewline
   <style:style style:name="Contents 1"
                style:family="paragraph"
                style:parent-style-name="Index"
                style:class="index">\Hnewline
   <style:properties fo:margin-left="0cm"
                fo:margin-right="0cm"
                fo:margin-top="0cm"
                fo:margin-bottom="0.101cm"
                fo:font-weight="bold"
                fo:text-indent="0cm"
                style:auto-text-indent="false">\Hnewline
      <style:tab-stops>\Hnewline
         <style:tab-stop style:position="16.999cm"
                      style:type="right"
                      style:leader-char="."/>\Hnewline
      </style:tab-stops>\Hnewline
   </style:properties>\Hnewline
   </style:style>\Hnewline
}
>>>




 


\<content style 2\><<<
\NewConfigureOO{Contents 2}
   \ConfigureOO{Contents 2}{\Hnewline
   <style:style style:name="Contents 2"
                style:family="paragraph"
                style:parent-style-name="Index"
                style:class="index">
   <style:properties fo:margin-left="0.499cm"
                fo:margin-right="0cm"
                fo:text-indent="0cm"
                style:auto-text-indent="false">
      <style:tab-stops>
      <style:tab-stop style:position="16.499cm"
                   style:type="right"
                   style:leader-char="."/>
      </style:tab-stops>
   </style:properties>
   </style:style>
   \Hnewline}
>>>
 


\<content style 3\><<<
\NewConfigureOO{Contents 3}
\ConfigureOO{Contents 3}{\Hnewline
   <style:style style:name="Contents 3"
                style:family="paragraph"
                style:parent-style-name="Index"
                style:class="index">
   <style:properties fo:margin-left="0.998cm"
                fo:margin-right="0cm"
                fo:text-indent="0cm"
                style:auto-text-indent="false">
      <style:tab-stops>
         <style:tab-stop style:position="16cm"
                      style:type="right"
                      style:leader-char="."/>
      </style:tab-stops>
   </style:properties>
   </style:style>
   \Hnewline}
>>>
 


\<content style 4\><<<
\NewConfigureOO{Contents 4}
\ConfigureOO{Contents 4}{\Hnewline
   <style:style style:name="Contents 4"
                style:family="paragraph"
                style:parent-style-name="Index"
                style:class="index">\Hnewline
   <style:properties fo:margin-left="1.498cm"
                fo:margin-right="0cm"
                fo:text-indent="0cm"
                style:auto-text-indent="false">\Hnewline
      <style:tab-stops>
         <style:tab-stop style:position="15.501cm"
                      style:type="right"
                      style:leader-char="."/>\Hnewline
      </style:tab-stops>\Hnewline
   </style:properties>\Hnewline
   </style:style>
   \Hnewline}
>>>
 


\<content style 5\><<<
\NewConfigureOO{Contents 5}
\ConfigureOO{Contents 5}{\Hnewline
   <style:style style:name="Contents 5"
                style:family="paragraph"
                style:parent-style-name="Index"
                style:class="index">\Hnewline
   <style:properties fo:margin-left="1.997cm"
                fo:margin-right="0cm"
                fo:text-indent="0cm"
                style:auto-text-indent="false">\Hnewline
      <style:tab-stops>\Hnewline
         <style:tab-stop style:position="15.002cm"
                      style:type="right"
                      style:leader-char="."/>\Hnewline
      </style:tab-stops>\Hnewline
   </style:properties>\Hnewline
   </style:style>
\Hnewline}
>>>
   
%%%%%%%%%%%%%
\subsection{Toc Style Outline}
%%%%%%%%%%%%%


\<toc template 1\><<<
<text:table-of-content-entry-template 
         text:outline-level="1" 
         text:style-name="Contents 1">\Hnewline
<text:index-entry-chapter-number/>\Hnewline
<text:index-entry-text/>\Hnewline
<text:index-entry-tab-stop 
         style:type="right"
         style:leader-char="."/>\Hnewline
<text:index-entry-page-number/>\Hnewline
</text:table-of-content-entry-template>\Hnewline
>>>

\<toc template 2\><<<
<text:table-of-content-entry-template 
        text:outline-level="2" 
        text:style-name="Contents 2">\Hnewline
<text:index-entry-chapter-number/>\Hnewline
<text:index-entry-text/>\Hnewline
<text:index-entry-tab-stop 
        style:type="right" 
        style:leader-char="."/>\Hnewline
<text:index-entry-page-number/>\Hnewline
</text:table-of-content-entry-template>\Hnewline
>>>


\<toc template 3\><<<
<text:table-of-content-entry-template 
        text:outline-level="3" 
        text:style-name="Contents 3">\Hnewline
<text:index-entry-chapter-number/>\Hnewline
<text:index-entry-text/>\Hnewline
<text:index-entry-tab-stop 
        style:type="right" 
        style:leader-char="."/>\Hnewline
<text:index-entry-page-number/>\Hnewline
</text:table-of-content-entry-template>\Hnewline
>>>


\<toc template 4\><<<
<text:table-of-content-entry-template 
        text:outline-level="4" 
        text:style-name="Contents 4">\Hnewline
<text:index-entry-chapter-number/>\Hnewline
<text:index-entry-text/>\Hnewline
<text:index-entry-tab-stop 
        style:type="right" 
        style:leader-char="."/>\Hnewline
<text:index-entry-page-number/>\Hnewline
</text:table-of-content-entry-template>\Hnewline
>>>

\<toc template 5\><<<
<text:table-of-content-entry-template 
        text:outline-level="5" 
        text:style-name="Contents 5">\Hnewline
<text:index-entry-chapter-number/>\Hnewline
<text:index-entry-text/>\Hnewline
<text:index-entry-tab-stop 
        style:type="right" 
        style:leader-char="."/>\Hnewline
<text:index-entry-page-number/>\Hnewline
</text:table-of-content-entry-template>\Hnewline
>>>

\<toc template 6\><<<
<text:table-of-content-entry-template 
        text:outline-level="6" 
        text:style-name="Contents 6">\Hnewline
<text:index-entry-chapter-number/>\Hnewline
<text:index-entry-text/>\Hnewline
<text:index-entry-tab-stop 
        style:type="right" 
        style:leader-char="."/>\Hnewline
<text:index-entry-page-number/>\Hnewline
</text:table-of-content-entry-template>\Hnewline
>>>

\<toc template 7\><<<
<text:table-of-content-entry-template 
        text:outline-level="7" 
        text:style-name="Contents 7">\Hnewline
<text:index-entry-chapter-number/>\Hnewline
<text:index-entry-text/>\Hnewline
<text:index-entry-tab-stop 
        style:type="right" 
        style:leader-char="."/>\Hnewline
<text:index-entry-page-number/>\Hnewline
</text:table-of-content-entry-template>\Hnewline
>>>

\<toc template 8\><<<
<text:table-of-content-entry-template 
        text:outline-level="8" 
        text:style-name="Contents 8">\Hnewline
<text:index-entry-chapter-number/>\Hnewline
<text:index-entry-text/>\Hnewline
<text:index-entry-tab-stop 
        style:type="right" 
        style:leader-char="."/>\Hnewline
<text:index-entry-page-number/>\Hnewline
</text:table-of-content-entry-template>\Hnewline
>>>

\<toc template 9\><<<
<text:table-of-content-entry-template 
        text:outline-level="9" 
        text:style-name="Contents 9">\Hnewline
<text:index-entry-chapter-number/>\Hnewline
<text:index-entry-text/>\Hnewline
<text:index-entry-tab-stop 
        style:type="right" 
        style:leader-char="."/>\Hnewline
<text:index-entry-page-number/>\Hnewline
</text:table-of-content-entry-template>\Hnewline
>>>

\<toc template 10\><<<
<text:table-of-content-entry-template 
        text:outline-level="10" 
        text:style-name="Contents 10">\Hnewline
<text:index-entry-chapter-number/>\Hnewline
<text:index-entry-text/>\Hnewline
<text:index-entry-tab-stop 
        style:type="right" 
        style:leader-char="."/>\Hnewline
<text:index-entry-page-number/>\Hnewline
</text:table-of-content-entry-template>\Hnewline
>>>
  

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{SCR Entries}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<scr chap tocs\><<<
\ConfigureToc{chapter}
  {\HCode{<text:p text:style-name="chapterToc"><text:span 
                                       text:style-name="toc-mark" >}}
  { \HCode{</text:span>}}
  {}
  {\HCode{</text:p>}}
\ConfigureToc{addchap}
  {}
  {\HCode{<text:p text:style-name="addchapToc">}}
  {}
  {\HCode{</text:p>}}
>>>




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Links}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure ooffice tex4ht\><<<
\:CheckOption{info}\if:Option 
   \Configure{TocLink}{\Link{#2}{#3}#4\ifvmode\IgnorePar\fi\EndLink} 
\else
    \Log:Note{to request links from the tables of contents,
         use the command line option from `TocLink'}
   \Configure{TocLink}{\Link{#2}{#3}\EndLink#4\ifvmode\IgnorePar\fi} 
\fi
\Configure{toTocLink}{\Link}{\EndLink}     
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Envelop}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure ooffice latex\><<<
\Configure{tableofcontents}
   {\IgnorePar\EndP\HCode{|<start toc|>}\IgnorePar}
   {}
   {\IgnorePar\EndP\HCode{|<end toc|>}\ShowPar}
   {\HCode{\Hnewline}}   {}
>>>

\<start toc\><<<
<text:table-of-content 
        text:name="toc" 
        text:style-name="Sect1"
        text:protected="true" >\Hnewline
   <text:table-of-content-source 
               text:outline-level="|<outline level|>">\Hnewline
      |<toc outline|>%
   </text:table-of-content-source>\Hnewline
   <text:index-body>\Hnewline
   \ifx\contentsname\empty \else
     \ifx\contentsname\:UnDef \else
      <text:index-title text:style-name="Sect2" >
         <text:p text:style-name="Contents Heading">\contentsname</text:p>
      </text:index-title>
   \fi \fi
>>>

\<configure ooffice latex\><<<
\NewConfigureOO{Sect1}
\ConfigureOO{Sect1}{\Hnewline
   <style:style style:name="Sect1"
                style:family="section">
   <style:properties>
      <style:columns fo:column-count="1"
                   fo:column-gap="0cm">
         <style:column fo:margin-top="0.5cm"
                      fo:margin-left="0cm"
                      fo:margin-right="0cm"/>
      </style:columns>
   </style:properties>
   </style:style>
\Hnewline }
>>>

\<configure ooffice latex\><<<
\NewConfigureOO{Sect2}
\ConfigureOO{Sect2}{\Hnewline
<style:style    style:name="Sect2"
   style:family="section">
   <style:properties>
      <style:columns fo:column-count="0" fo:column-gap="0cm"/>
   </style:properties>
</style:style>
\Hnewline }
\NewConfigureOO{Contents Heading}
\ConfigureOO{Contents Heading}{\Hnewline
   <style:style style:name="Contents Heading"
                style:family="paragraph"
                style:parent-style-name="Heading"
                style:class="index">
   <style:properties
                fo:margin-top="0.5cm"
                fo:margin-bottom="0.2cm"
                fo:margin-left="0cm"
                fo:margin-right="0cm"
                fo:font-size="16pt"
                fo:font-weight="bold"
                style:font-size-asian="16pt"
                style:font-weight-asian="bold"
                style:font-size-complex="16pt"
                style:font-weight-complex="bold"
                fo:text-indent="0cm"
                style:auto-text-indent="false"
                text:number-lines="false"
                text:line-number="0"/>
   </style:style>
\Hnewline }
>>>

\<configure ooffice article\><<<
\def\tableofcontents{\:tableofcontents}
>>>

\<configure ooffice book\><<<
\def\tableofcontents{\:tableofcontents}
>>>


\<configure ooffice report\><<<
\def\tableofcontents{\:tableofcontents}
>>>


\<configure ooffice amsart\><<<
\def\tableofcontents{\:tableofcontents}
>>>

\<configure ooffice amsproc\><<<
\def\tableofcontents{\:tableofcontents}
>>>

\<configure ooffice nwart\><<<
\def\tableofcontents{\:tableofcontents}
>>>

\<configure ooffice nwrep\><<<
\def\tableofcontents{\:tableofcontents}
>>>

\<configure ooffice nwbk\><<<
\def\tableofcontents{\:tableofcontents}
>>>




\<outline level\><<<
6>>>


\<end toc\><<<
   </text:index-body>\Hnewline
</text:table-of-content>\Hnewline
>>>

\<toc outline\><<<
<text:index-title-template
   text:style-name="Contents Heading">\contentsname
</text:index-title-template>\Hnewline
|<toc template 1|>%
|<toc template 2|>%
|<toc template 3|>%
|<toc template 4|>%
|<toc template 5|>%
|<toc template 6|>%
|<toc template 7|>%
|<toc template 8|>%
|<toc template 9|>%
|<toc template 10|>%
>>>


\<automatic styles\><<<
|<automatic style 1|>%
|<automatic style 2|>%
|<automatic style 3|>%
|<automatic style 4|>%
|<automatic style 5|>%
|<automatic style 6|>%
|<automatic style 7|>%
|<automatic style 8|>%
>>>

\<content styles\><<<
|<content style 1|>%
|<content style 2|>%
|<content style 3|>%
|<content style 4|>%
|<content style 5|>%
|<content style 6|>%
|<content style 7|>%
|<content style 8|>%
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Tabular}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Examples}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


General Format:

\begin{verbatim}
<table:table table:name="..." table:style-name="tbl">
  <table:table-column table:style-name="..."/>... <table:table-column/>
  <table:table-row table:name="...">
    <table:table-cell> <text:p>...</text:p> </table:table-cell>
    ....
  </table:table-row>
  .....
</table:table>
\end{verbatim}

May include subtables

\begin{verbatim}
<table:sub-table>
  .......
</table:sub-table>
\end{verbatim}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{The External Envelope}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure ooffice latex\><<<
|<latex tabular|>
>>>

\<latex tabular\><<<
\ConfigureEnv{tabular}
  {|<configure tabular noalign|>%
   \IgnorePar|<inline comment|>\EndP
   |<save cols info|>%
  }
  {|<recall cols info|>\ShowPar
   |<configure clear noalign|>%
   |<try env inline par|>%
  }{}{}
>>>


\<latex tabular\><<<
\Configure{tabular}
   {\ifvmode \IgnorePar\fi \EndP \halignTB{tabular}%
    |<list the grouping of columns|>%
   }
   {|<insert Clr|>\HCode{</table:table>}}
   {|<cond trail row|>%
    \HCode{<table:table-row \Hnewline 
      |<trail row|>%
      table:style-name="TBL-\TableNo-\HRow- }%
      |<row attributes|>\HCode{">}}
   {\HCode{</table:table-row>}|<end cond trail row|>%
   }
   {\HCode{<table:table-cell \Hnewline}%
    |<multispan cell|>%
    \HCode{ table:style-name="TBL-\TableNo-\HRow-\HCol">}%
    |<start par at cell|>|<save table num|>}
   {|<end array par box|>|<recall table num|>% 
      |<end par at cell|>\HCode{</table:table-cell>}}
>>>


\<cond trail row\><<<
\ifTag{vis-\TableNo-\HRow}%
      {\special{t4ht@[}\gdef\end:box{\special{t4ht@]}}}%
      {\global\let\end:box\empty}%
>>>

\<end cond trail row\><<<
\end:box
>>>

\<trail row\><<<
\ifTag{vis-\TableNo-\HRow}{table:visibility="collapse" }{}
>>>

\<latex tabular\><<<
\Configure{endtabular} {\Tag{vis-\TableNo-\HRow}{}}
>>>




\<latex tabular\><<<
\def\:MT{\ifmathml \a:mathml m\else table:\fi}
\Configure{halignTB}
   {\HCode{<\:MT table }}
   {\HCode{>}}
>>>




\<configure tabular noalign\><<<
\Configure{noalign}%
  {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
  {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
>>>


\<configure clear noalign\><<<
\Configure{noalign}{}{}%
>>>


\<latex tabular\><<<
\Configure{halignTB<>}{tabular}{\HCode{\Hnewline
     table:style-name="tabular"
     }<>\HAlign}
>>>


For some reason, the following doesn't have effect at the office tyles
section


\<automatic styles\><<<
<style:style style:name="tabular" 
             style:family="table">\Hnewline
<style:properties style:rel-width="76\%"
                 fo:margin-left="1cm"
                 fo:margin-right="1cm"
                 table:align="margins"/>\Hnewline
</style:style>\Hnewline
>>>


\<inline comment\><<<
\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
>>>



\<latex tabular\><<<
\HAssign\Next:TableNo=0 
\global\let\TableNo=\Next:TableNo
>>>

\<increase table num\><<<
\gHAdvance\Next:TableNo by 1
\global\let\TableNo=\Next:TableNo
>>>


\<save table num\><<<
\PushStack\Table:Stck\TableNo
>>>

\<recall table num\><<<
\PopStack\Table:Stck\TableNo
>>>





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Description of Columns}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



The variable
\verb+\:NewGroup+ is introduced to record the index of entry in current
group.


\<latex tabular\><<<
|<visit start of pattern|>
\Configure{VBorder}
   {\HAssign\:NewGroup = 0 
    |<increase table num|>%
    |<visit start of pattern|>%
   }
   {|<visit a v-bar entry|>\HAssign\:NewGroup = 0 }
   {\Advance:\:NewGroup by 1 
    |<visit a non-@ entry|>%
   }
   {|<visit a @ entry|>}
>>>


\<insert ClrNO\><<<
\expandafter\tmp:toks\expandafter{\Clr}%
\HCode{<!--\the\tmp:toks-->}%
>>>

The above doesn't work, for instance on `\verb+|r||r@{--}l|p{1.25in}|+'
due to thge extra \verb+--+..





\<configuring @()\><<<
\Configure{@{}}{}
>>>


\<row attributes\><<<
\halignTR
>>>

\<latex tabular\><<<
\Configure{halignTR} 
   {\HCode{valign-baseline}}
\Configure{halignTBL} 
%   {t}{\HCode{valign-top}}
%   {b}{\HCode{valign-baseline}}
%   {c}{\HCode{valign-middle}}
    {}
>>>




\<start par at cell\><<<
|<extract cell attributes|>\if !\Aligh:Wrap!\let\not:Pcell=\:gobble
\else \let\not:Pcell\empty \fi
\not:Pcell{\HCode{<text:p 
    \Hnewline  text:style-name="}|<style at cell|>\HCode{">}}%
|<start array par box|>%
>>>



\<style at cell\><<<
\cell:sty
>>>


\<latex tabular\><<<
\def\cell:sty{\NoFonts 
    |<extract cell margins info|>%
    |<extract cell h-border info|>%
    |<extract cell attributes|>%    
    |<cell style name|>%
    |<cell style properties|>%
  \EndNoFonts}
>>>



\<cell style name\><<<
sty-\LR:VBars\Left:Marg\Right:Marg\Aligh:Wrap
>>>



\<end par at cell\><<<
\csname not:Pcell\endcsname{\HCode{</text:p>}}%
>>>    



\<multispan cell\><<<
\ifnum \HMultispan>1 
   \HCode{table:number-columns-spanned="\HMultispan"\Hnewline}%
   \bgroup
      \def\:temp{\ifnum \HMultispan>1
          \HAdvance\HMultispan by -1 
          \HCode{<table:covered-table-cell/>}%
          \expandafter\:temp
        \fi}%
   \egroup
\fi
>>>




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Cell Style Properties}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<extract cell attributes\><<<
\edef\Aligh:Wrap{\halignTD}%
>>>
    

\<configure ooffice tex4ht\><<<
\Configure{halignTD} {}{}
   {<}{L}     %{\HCode{align-left nowrap}}
   {-}{C}     %{\HCode{align-center nowrap}}
   {>}{R}     %{\HCode{align-right nowrap}}
   {^}{T}     %{\HCode{valign-top nowrap}}
   {=}{N}     %{\HCode{valign-baseline nowrap}}
   {||}{M}     %{\HCode{valign-middle nowrap}}
   {_}{B}     %{\HCode{valign-bottom nowrap}}
   {p}{}
   {m}{m}     %{\HCode{valign-middle   align-left}}
   {b}{n}     %{\HCode{valign-baseline align-left}}
   {}
>>>





\<configure ooffice-mml tex4ht\><<<
\Configure{halignTD} {}{}
   {<}{\ifmathml \HCode{ columnalign="left"}\else
        L\fi}
   {-}{\ifmathml \HCode{ columnalign="center"}\else
        C\fi}
   {>}{\ifmathml \HCode{ columnalign="right"}\else
        R\fi}
   {^}{\ifmathml \HCode{ rowalign="top"}\else
        T\fi}
   {=}{\ifmathml \HCode{ rowalign="baseline"}\else
        N\fi}
   {||}{\ifmathml \HCode{ rowalign="center"}\else
        M\fi}
   {_}{\ifmathml \HCode{ rowalign="bottom"}\else
        B\fi}
   {p}{\ifmathml \HCode{ columnalign="left"}\else
        \fi}
   {m}{\ifmathml\else m\fi}     %{\HCode{valign-middle   align-left}}
   {b}{\ifmathml\else n\fi}     %{\HCode{valign-baseline align-left}}
   {}
>>>



\<cell style properties\><<<
\edef\:temp{|<cell style name|>}%
\expandafter\ifx \csname\:temp\endcsname \relax
   \global\expandafter\let\csname\:temp\endcsname=\def
   \OOstyles{%
      <style:style
        style:name="\:temp"
        style:family="paragraph"
        style:parent-style-name="Standard">\Hnewline
        <style:properties 
   }%
   |<cell h-margins property|>%
   |<cell alignment properties|>%
   |<cell LR borders property|>%
   \OOstyles{%
         style:justify-single-word="false"/>\Hnewline
    </style:style>\Hnewline
   }%
\fi
>>>










%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Cell Alignments}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<cell alignment properties\><<<
\def\:temp{L}\ifx \Aligh:Wrap\:temp
   \OOstyles{%
     fo:wrap-option="no-wrap"
     fo:text-align="start"
   }%
\fi
\def\:temp{C}\ifx \Aligh:Wrap\:temp
   \OOstyles{%
     fo:wrap-option="no-wrap"
     fo:text-align="center"
   }%
\fi
\def\:temp{R}\ifx \Aligh:Wrap\:temp
   \OOstyles{%
     fo:wrap-option="no-wrap"
     fo:text-align="end"
   }%
\fi
\ifx \Aligh:Wrap\empty
   \OOstyles{%
     fo:text-align="start"
   }%
\fi
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Groups of Columns}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


A group consists of a non-empty pattern \verb+|...|+.  

\<list the grouping of columns\><<<
\putVBorder
>>>


When \verb'\putVBorder' is called,  in \verb'\:VBorder' 
we have a sequence of the form
\verb'<COLGROUP><COL ...">...</COLGROUP>...' with the last 
tag possibly missing.

\<latex tabular\><<<
\let\remove:eog=\relax
\def\putVBorder{\expandafter\put:VBorder\:VBorder<</>>|<par del|>}
\def\put:VBorder#1<</#2>>#3|<par del|>{%
  \def\:temp{#2}\ifx\:temp\empty
     \def\remove:eog<</##1>>{}%
       \HCode{\:VBorder}%
     \let\remove:eog=\relax
     |<insert last end of group, if missing|>%
  \else  \def\:temp{\put:VBorder#3|<par del|>}\expandafter\:temp\fi
}
>>>


\<visit start of pattern\><<<
\let\:VBorder=\empty 
>>>

\<visit a non-@ entry\><<<
\ifnum \:NewGroup=1  |<start a group of cols|>\fi     
|<add a group of columns|>% 
>>>


\<start a group of cols\><<<
\xdef\:VBorder{\:VBorder
   <!--table:table-column-group ???="TBL-\TableNo-\ar:cnt g"-->}%
>>>

\<add a group of columns\><<<
\xdef\:VBorder{\:VBorder<table:table-column\Hnewline 
    \csname a:table-column-style\endcsname\Hnewline
 />}%
>>>

\<latex tabular\><<<
\NewConfigure{table-column-style}{1}
\Configure{table-column-style}
   {table:style-name="TBL-\TableNo -\ar:cnt"}
>>>

\<visit a v-bar entry\><<<
\xdef\:VBorder{\:VBorder
   \ifnum \:NewGroup> 0
       <!--/table:table-column-group-->\remove:eog <</ >>\fi}%
>>>    

\<insert last end of group, if missing\><<<
\def\:temp{#1}\ifx\:temp\empty 
\else\HCode{<!--/table:table-column-group-->}\fi
>>>



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Vertical Lines}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\<cell LR borders property\><<<
\cell:vbars
>>>


\<latex tabular\><<<
\def\cell:vbars{%
  \def\:tempa##1##2{%
    \tmp:cnt=0
    \def\:temp####1{%       
       \if ####1##1\advance\tmp:cnt by 1 \fi
       \if ####1.\else \expandafter\:temp \fi
    }%
    \expandafter\:temp\LR:VBars.%
    \ifnum \tmp:cnt>0
       \OOstyles{ fo:border-##2="|<hline resolution|>\the\tmp:cnt
                                 cm solid \#000000" }%
    \fi
  }%
  \:tempa L{left}%
  \:tempa R{right}%
}
>>>


\<hline resolution\><<<
0.0>>>

\<extract cell h-border info\><<<
\ifx \:AllColBars\empty
   \let\LR:VBars=\empty
\else
   \edef\LR:VBars{\Col:VBars}%
\fi
>>>



\verb'\:AllColMargins' Return a binary string in which 1 represents
a column, and 0 represents a `@'. \verb'\ColMargins' retrieves the
zeros before the 1's that represent the current and following 1's.

\<latex tabular\><<<
\def\Col:VBars{\expandafter\get:vbar\:AllColBars,,}
\def\get:vbar#1,{\if :#1:\else
       \ifnum #1=0 \ifnum \HCol=1 L\fi
       \else       \ifnum \HCol=#1R\fi \fi
   \expandafter\get:vbar \fi}
>>>




\<configure ooffice-mml latex\><<<
\let\AllColMargins\empty
\ConfigureEnv{array}
   {\PushStack\Col:Marg\AllColMargins
    \bgroup\Configure{$}{}{}{}} 
   {\egroup \PopStack\Col:Marg\AllColMargins}
   {}{}
>>>

\<configure ooffice-mml array\><<<
\let\AllColMargins\empty
\ConfigureEnv{array}
   {\PushStack\Col:Marg\AllColMargins
    \bgroup\Configure{$}{}{}{}} 
   {\egroup \PopStack\Col:Marg\AllColMargins}
   {}{}
>>>




\<visit start of pattern\><<<
\let\:AllColBars=\empty
>>>

\<visit a v-bar entry\><<<
\xdef\:AllColBars{\:AllColBars 
   \ifx\:AllColBars\empty \else ,\fi \ar:cnt}%
>>>


\<save cols info\><<<
\PushStack\Col:Bars\:AllColBars
>>>


\<recall cols info\><<<
\PopStack\Col:Bars\:AllColBars
>>>







%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Horizontal Marging}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\verb'\:AllColMargins' Return a binary string in which 1 represents
a column, and 0 represents a `@'. \verb'\ColMargins' retrieves the
zeros before the 1's that represent the current and following 1's.

\<cell h-margins property\><<<
\OOstyles{%
   fo:padding-left="0\ifnum \Left:Marg >0 .17\fi cm" |% 5pt |%
  fo:padding-right="0\ifnum \Right:Marg>0 .17\fi cm"
}%
>>>

\<extract cell margins info\><<<
\ColMargins
>>>


\<latex tabular\><<<
\def\ColMargins{\tmp:cnt=\HCol\relax 
   \expandafter\nosp:hbr\:AllColMargins 1//}
\def\nosp:hbr#11#2//{\ifnum \tmp:cnt>1 \advance\tmp:cnt by -1
   \nosp:hbr#2//\else\nosp:gt#11#2//\fi}
\def\nosp:gt#11#21#3//{%
   \def\Left:Marg{#1}\def\Right:Marg{#2}%
   \edef\Left:Marg{\ifx \Left:Marg\empty 1\else 0\fi}%
   \edef\Right:Marg{\ifx \Right:Marg\empty 1\else 0\fi}}


|<configuring @()|>
>>>


\<visit start of pattern\><<<
\let\:AllColMargins=\empty
>>>

\<visit a non-@ entry\><<<
\xdef\:AllColMargins{\:AllColMargins 1}%
>>>

\<visit a @ entry\><<<
\xdef\:AllColMargins{\:AllColMargins 0}%
>>>


\<save cols info\><<<
\PushStack\Col:Marg\:AllColMargins
>>>


\<recall cols info\><<<
\PopStack\Col:Marg\:AllColMargins
>>>









%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Horizontal Borders}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<latex tabular\><<<
\Configure{hline}{\ifx \ar:cnt\:UnDef
   \else\o:noalign:{|<hline body for array/tabular|>}%
        \expandafter\ignoreEndTr
   \fi}
\Configure{//[]}{\ifx \ar:cnt\:UnDef
   \else\o:noalign:{|<vspace body for array/tabular|>}\fi}
>>>


\<vspace body for array/tabular\><<<
\append:def\vspc:s{\h:HBorder}%
\def\:tempb{\ifnum \tmp:cnt<\ar:cnt
    \advance\tmp:cnt by 1 \append:def\vspc:s{\i:HBorder}%
    \expandafter\:tempb
  \fi }
\tmp:cnt=0 \:tempb
\append:def\vspc:s{\j:HBorder}\global\let\vspc:s=\vspc:s
>>>

\<hline body for array/tabular\><<<
\append:def\hline:s{\a:HBorder}%
\def\:tempb{\ifnum \tmp:cnt<\ar:cnt
    \advance\tmp:cnt by 1 \append:def\hline:s{\b:HBorder}%
    \expandafter\:tempb
  \fi }%
\tmp:cnt=0 \:tempb
\append:def\hline:s{\c:HBorder}\global\let\hline:s=\hline:s
>>>

\<latex tabular\><<<
\def\ignoreEndTr{\o:noalign:{\global\futurelet\:AfterHline}}
\long\def\ifProperTr#1{%
   \ifx \:AfterHline\end
       #1\global\let\:AfterHline\endinput
   \else \ifx \:AfterHline\endinput \else #1\fi\fi}
\def\ProperTrTrue{\global\let\:AfterHline=\relax}
>>>


\<latex tabular\><<<
\Configure{putHBorder}{\HCode{\HBorder}}
\Configure{HBorder}
   {|<HBorder hline|>}
      {|<HBorder hline cell|>}  
   {|<end HBorder hline|>}
   {|<HBorder cline|>}
      {|<HBorder cline p cell|>}  
      {|<HBorder cline p-hr cell|>}  
   {|<end HBorder cline|>}
   {|<HBorder vspace|>} 
       {|<HBorder vspace td|>}
   {|<end HBorder vspace|>}
\OOstyles {|<hline-p-hr style|>}
>>>




\<configure ooffice-mml latex\><<<
\Configure{HBorder}
   |<HBorder hline row|>%
   |<HBorder cline row|>%
   |<HBorder vspace row|>%
>>>


\<HBorder hline row\><<<
{\ifmathml <\a:mathml mtr\Hnewline class="hline">
 \else     |<HBorder hline|>\fi} 
{\ifmathml |<mml mtd hline|>
   \else   |<HBorder hline cell|>\fi} 
{\ifmathml </\a:mathml mtr>
 \else     |<end HBorder hline|>\fi}
>>>


\<HBorder cline row\><<<
{\ifmathml <\a:mathml mtr\Hnewline class="cline">
 \else |<HBorder cline|>\fi}
{\ifmathml  <\a:mathml mtd></\a:mathml mtd>
 \else |<HBorder cline p cell|>\fi }
{\ifmathml |<mml mtd hline|>
 \else |<HBorder cline p-hr cell|>\fi}
{\ifmathml </\a:mathml mtr>
 \else |<end HBorder cline|>\fi}
>>>

\<HBorder vspace row\><<<
{\ifmathml <\a:mathml mtr\Hnewline class="vspace"  style="font-size:\HBorderspace">
 \else     |<HBorder vspace|>\fi}
{\ifmathml <\a:mathml mtd\Hnewline></\a:mathml mtd>
 \else     |<HBorder vspace td|>\fi}
{\ifmathml </\a:mathml mtr>
 \else     |<end HBorder vspace|>\fi}
>>>






\<HBorder hline\><<<
<table:table-row  \Hnewline table:style-name="hline-row">%
>>>


\<mml mtd hline\><<<
<\a:mathml mtd><math:mo> \string&\#x0332; </math:mo></\a:mathml mtd>
>>>


\<HBorder hline cell\><<<
<table:table-cell table:style-name="hline-cell"
                         table:value-type="string">%
          <text:p text:style-name="hline-p-hr" />%
       </table:table-cell>\Hnewline
>>>

\<end HBorder hline\><<<
</table:table-row>\Hnewline
>>>

\<HBorder cline\><<<
<table:table-row  \Hnewline table:style-name="cline-row">\Hnewline
>>>

\<HBorder cline p cell\><<<
<table:table-cell table:style-name="cline-cell">%
          <text:p text:style-name="cline-p" />%
       </table:table-cell>\Hnewline
>>>

\<HBorder cline p-hr cell\><<<
<table:table-cell table:style-name="cline-cell">%
          <text:p text:style-name="cline-p-hr" />%
       </table:table-cell>\Hnewline
>>>

\<end HBorder cline\><<<
</table:table-row>\Hnewline
>>>



\<HBorder vspace\><<<
<tr\Hnewline class="vspace" style="font-size:\HBorderspace">%
>>>

\<HBorder vspace td\><<<
<td\Hnewline>\string&nbsp;</td>%
>>>

\<end HBorder vspace\><<<
</tr>%
>>>




\<hline-p-hr style\><<<
<style:style style:name="hline-p-hr"
             style:family="paragraph">\Hnewline
 <style:properties
      fo:padding="0.00001cm"
      fo:margin-top="0.00001cm"
      fo:margin-bottom="0.00001cm"
      fo:border-left="none"
      fo:border-right="none"
      fo:border-top="none"
      fo:line-height="0.01cm"
      fo:border-bottom="|<hline resolution|>1cm solid \#000000"
   />\Hnewline
</style:style>
>>>




\begin{verbatim}
 > In addition, of course the formatting of borders for OOo tables doesn't
 > come out exactly the same as when entered in OOo itself, so that
 > round-tripping won't work,

TeX4ht introduces the borders in segments: top, down, left,
right. Moreover, the horizontal segments appear in separate cells. The
segmentation is there to provide for special effects in LaTeX
tables. I don't know how to improve the outcome, short of trying to
post process the output.
\end{verbatim}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Other}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




\verb|\par| is empty if not in par box.

\<start array par box\><<<
\par  \ShowPar
>>>

\<end array par box\><<<
\IgnorePar \EndP
>>>




\<latex tabular\><<<
\Configure{halign}
   {\EndP\halignTB{halign}}   {\HCode{</table>}}
   {\HCode{<tr \Hnewline}\halignTR\HCode{>}}
   {\HCode{</tr>}}
   {\HCode{<td \ifnum \HMultispan>1 colspan="\HMultispan"\fi}%
       \halignTD \HCode{\Hnewline>}}
   {\HCode{</td>}}
\Configure{pic-halign}{}
>>>



\<latex tabular\><<<
\Configure{HVerbatim+}{\z@}{\:nbsp}
\Configure{Needs}{l. 
   \the\inputlineno\space--- needs --- #1 ---}
\Configure{Needs-}{l.
   \the\inputlineno\space--- needs --- #1 ---}
>>>



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Color}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure ooffice color\><<<
\Configure{HColor:gray}{%
   \int:of\:tempa{255}{#1}%
   \hex:of\:tempa
   \Configure{HColor}{}{\#\:tempa\:tempa\:tempa}%
}
\Configure{HColor:rgb}{%
   \int:of\:tempa{255}{#1}%
   \int:of\:tempb{255}{#2}%
   \int:of\:tempc{255}{#3}%
   \hex:of\:tempa
   \hex:of\:tempb
   \hex:of\:tempc
   \Configure{HColor}{}{\#\:tempa\:tempb\:tempc}%
}
\Configure{HColor:cmyk}{%
   \int:of\:Cyan{255}{#1}%
   \int:of\:Magenta{255}{#2}%
   \int:of\:Yellow{255}{#3}%
   \int:of\:Black{255}{#4}%
   \:cmyk\:tempa\:Cyan
   \:cmyk\:tempb\:Magenta
   \:cmyk\:tempc\:Yellow
   \hex:of\:tempa
   \hex:of\:tempb
   \hex:of\:tempc
   \Configure{HColor}{}{\#\:tempa\:tempb\:tempc}%
}
|<HColor util|>
>>>





\<HColor util\><<<
\def\int:of#1#2#3{%
   \tmp:dim=#3pt \tmp:dim=#2\tmp:dim
   \edef\:temp{\tmp:cnt\the\tmp:dim//}%
   \def#1##1//{}\afterassignment#1\:temp
   \edef#1{\the\tmp:cnt}%
}
\def\hex:of#1{%
   \tmp:cnt=#1
   \divide\tmp:cnt by 16
   \edef\:temp{\ifcase \tmp:cnt 0\or 1\or 2\or 3\or 4\or 5\or 6\or 7\or 
                                8\or 9\or A\or B\or C\or D\or E\or F\fi}%
   \multiply\tmp:cnt by -16 \advance\tmp:cnt by #1
   \edef#1{\:temp 
           \ifcase \tmp:cnt 0\or 1\or 2\or 3\or 4\or 5\or 6\or 7\or 
                                8\or 9\or A\or B\or C\or D\or E\or F\fi}%
}
>>>


\begin{verbatim}
cmyk -> gray
(1 - 0.299c - 0.587m - 0.114y)(1 - k) 

cmyk -> rgb
Red   = 1-minimum(1,Cyan   *(1-Black)+Black)
Green = 1-minimum(1,Magenta*(1-Black)+Black)
Blue  = 1-minimum(1,Yellow *(1-Black)+Black)
\end{verbatim}



\<HColor util\><<<
\def\:cmyk#1#2{%
   \tmp:cnt=255 \advance\tmp:cnt by -\:Black
   \multiply\tmp:cnt by#2 \advance\tmp:cnt by \:Black 
   \advance\tmp:cnt by -255 \tmp:cnt=-\tmp:cnt
   \ifnum \tmp:cnt<0 \tmp:cnt=0 \fi
   \edef#1{\the\tmp:cnt}%
}
>>>





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{tabbing}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<ooffice begin-end env\><<<
\HAssign\tabbing:N=0
\Configure{tabbing}[1.5]{\IgnorePar\leavevmode
     \gHAdvance\tabbing:N by 1
     \gHAssign\tabbing:Nrow=0
     \ht:special{t4ht=<text:p 
         text:style-name="tabbing" \Hnewline >}}
   {\ht:special{t4ht=</text:p>\Hnewline}\ShowPar}
   {\gHAdvance\tabbing:Nrow by 1
    \ht:special{t4ht=<text:span\Hnewline 
       text:style-name="tabbing-\tabbing:N-\tabbing:Nrow">}%
       |<style of current tabbing cell|>%
   }
   {\ht:special{t4ht=</text:span>}}
\ConfigureEnv{tabbing}{\IgnorePar\EndP}{}{}{}
>>>

\<ooffice begin-end env\><<<
\NewConfigureOO{tabbing}
\ConfigureOO{tabbing}{|<oo tabbing style|>}
>>>


\<oo tabbing style\><<<
<style:style style:name="tabbing" 
             style:family="paragraph"
             style:parent-style-name="Standard" >\Hnewline
  <style:properties fo:margin-left="0cm"
             fo:margin-right="0cm"
             fo:text-indent="0.5cm"
             style:auto-text-indent="false"/>\Hnewline
</style:style>\Hnewline
>>>

The following style sdon't work.


\<style of current tabbing cell\><<<
\OOstyles{%
    <style:style style:name="tabbing-\tabbing:N-\tabbing:Nrow"
                 >\Hnewline
         <style:properties
               fo:wrap-option="no-wrap"
               \ifx \TabWidth\empty \else
                   fo:width="\TabWidth pt"
               \fi
               \ifx \`\TabType
                   style:text-align="right"
               \fi
              />\Hnewline
    </style:style>\Hnewline
  }    
>>>


\begin{verbatim}
Is there a way to request a no-wrap element <text:span> ...
</text:span> of a specified width?

      LaTeX source:
      \begin{tabbing}
      Armadillo \= Armament \=       \kill
      Gnat      \> Gnu      \> Gnome \\
      Armadillo \> Armament \> Armorer
      \end{tabbing}

Unfortunately not, you have to use either tab-stops or a table for this.
\end{verbatim}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Index}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Envelop}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<ooffice index\><<<
\Configure{theindex}
   {\ifvmode\IgnorePar\fi \EndP\HCode{<text:alphabetical-index>
      |<index format|>%
      <text:index-body>\Hnewline}%
    \csname put:IndexTitle\endcsname
   }
   {\HCode{</text:index-body></text:alphabetical-index>}}
   {\HCode{<text:p text:style-name="P6">}}
      {\HCode{<text:tab-stop/></text:p>}\hfill\break}
   {\HCode{<text:p text:style-name="P7">}}
      {\HCode{<text:tab-stop/></text:p>}\hfill\break}
   {\HCode{<text:p text:style-name="P8">}}
      {\HCode{<text:tab-stop/></text:p>}\hfill\break}
   {}
>>>





\<index format\><<<
<text:alphabetical-index-source 
       text:sort-algorithm="alphanumeric">\Hnewline
   <text:index-title-template 
                text:style-name="Index Heading">\indexname
   </text:index-title-template>\Hnewline
   |<index entry format|>\Hnewline
</text:alphabetical-index-source>\Hnewline
>>>

\<index entry format\><<<
<text:alphabetical-index-entry-template 
       text:outline-level="1" 
       text:style-name="Index 1">\Hnewline
  <text:index-entry-text/>\Hnewline
  <text:index-entry-tab-stop 
     style:type="left" 
     style:position="0inch" 
     style:leader-char=" "/>\Hnewline
  <text:index-entry-page-number/>\Hnewline
</text:alphabetical-index-entry-template>\Hnewline
>>>

\<index entry format\><<<
<text:alphabetical-index-entry-template 
       text:outline-level="2" 
       text:style-name="Index 2">\Hnewline
  <text:index-entry-text/>\Hnewline
  <text:index-entry-tab-stop 
     style:type="left" 
     style:position="0inch" 
     style:leader-char=" "/>\Hnewline
  <text:index-entry-page-number/>\Hnewline
</text:alphabetical-index-entry-template>\Hnewline
>>>

\<index entry format\><<<
<text:alphabetical-index-entry-template 
       text:outline-level="3" 
       text:style-name="Index 3">\Hnewline
  <text:index-entry-text/>\Hnewline
  <text:index-entry-tab-stop 
     style:type="left" 
     style:position="0inch" 
     style:leader-char=" "/>\Hnewline
  <text:index-entry-page-number/>\Hnewline
</text:alphabetical-index-entry-template>\Hnewline
>>>








\<content style 6\><<<
\NewConfigureOO{Index 1}
\ConfigureOO{Index 1}{\Hnewline
   <style:style style:name="Index 1"
                style:family="paragraph"
                style:parent-style-name="Index"
                style:class="index">
   <style:properties fo:margin-left="0cm"
                fo:margin-right="0cm"
                fo:text-indent="0cm"
                style:auto-text-indent="false"/>
   </style:style>
   \Hnewline }
>>>
 


\<content style 7\><<<
\NewConfigureOO{Index 2}
\ConfigureOO{Index 2}{\Hnewline
   <style:style style:name="Index 2"
                style:family="paragraph"
                style:parent-style-name="Index"
                style:class="index">\Hnewline
   <style:properties fo:margin-left="0.499cm"
                fo:margin-right="0cm"
                fo:text-indent="0cm"
                style:auto-text-indent="false"/>\Hnewline
   </style:style>
\Hnewline}
>>>
 


\<content style 8\><<<
\NewConfigureOO{Index 3}
\ConfigureOO{Index 3}{\Hnewline
   <style:style style:name="Index 3"
                style:family="paragraph"
                style:parent-style-name="Index"
                style:class="index">\Hnewline
   <style:properties fo:margin-left="0.998cm"
                fo:margin-right="0cm"
                fo:text-indent="0cm"
                style:auto-text-indent="false"/>\Hnewline
   </style:style>
   \Hnewline}
>>>




\<automatic style 6\><<<
\Hnewline
   <style:style style:name="P6"
                style:family="paragraph"
                style:parent-style-name="Index 1">\Hnewline
   <style:properties>\Hnewline
      <style:tab-stops>\Hnewline
         <style:tab-stop style:position="0cm"/>\Hnewline
      </style:tab-stops>\Hnewline
   </style:properties>\Hnewline
   </style:style>
   \Hnewline 
>>>


\<automatic style 7\><<<
\Hnewline
   <style:style style:name="P7"
                style:family="paragraph"
                style:parent-style-name="Index 2">\Hnewline
   <style:properties>\Hnewline
      <style:tab-stops>\Hnewline
         <style:tab-stop style:position="0cm"/>\Hnewline
      </style:tab-stops>\Hnewline
   </style:properties>\Hnewline
   </style:style>
   \Hnewline 
>>>


\<automatic style 8\><<<
\Hnewline
   <style:style style:name="P8"
                style:family="paragraph"
                style:parent-style-name="Index 3">\Hnewline
   <style:properties>\Hnewline
      <style:tab-stops>\Hnewline
         <style:tab-stop style:position="0cm"/>\Hnewline
      </style:tab-stops>\Hnewline
   </style:properties>\Hnewline
   </style:style>
   \Hnewline 
>>>


%%%%%%%%%%%%%
\subsection{Making Index Entries}
%%%%%%%%%%%%%



\<configure ooffice latex\><<<
\catcode`\!=13
\HAssign\indexmark:N = 0
\Configure{wrindex}
  {{\special{t4ht@(}\catcode`\\=0 \catcode`\{=1 
    \catcode`\}=2 \catcode`\ =10 \catcode`\!=13
    \def!{\c:indexmark\def!{\d:indexmark\def!{\string!}}}%
    \gHAdvance\indexmark:N by 1
    \def\indexmark##1##2{%
       \ifnum \indexmark:N=##2 \special{t4ht@)}\a:indexmark
           ##1\b:indexmark\special{t4ht@(}\fi}%
    \input \jobname.4ix \special{t4ht@)}}}
\catcode`\!=12
\NewConfigure{indexmark}{4}
\Configure{indexmark}
   {\HCode{<text:alphabetical-index-mark\Hnewline
                                       text:string-value="}}
   {\HCode{" />}}
   {\HCode{" text:key1="}}
   {\HCode{" text:key2="}}
>>>

%%%%%%%%%%%%%
\subsection{Insed Title Head}
%%%%%%%%%%%%%

\<ooffice index\><<<
\Configure{LNK}{\oo:LNK}{\EndLink}{}
\Odef\oo:LNK[#1]#2#3{\HCode{<text:a xlink:href="\##2">}}
>>>


\<chapter index\><<<
\Configure{@begin}{theindex}{\ifx \indexname\empty \else
    \def\put:IndexTitle{|<index title|>}\fi}
>>>

\<non-chapter index\><<<
\Configure{@begin}{theindex}{\ifx \indexname\empty \else
    \def\put:IndexTitle{|<index title|>}\fi}
>>>

\<index title\><<<
\HCode{<text:index-title
   text:style-name="Sect1"
   text:name="Alphabetical Index1_Head"><text:p
   text:style-name="Index Heading">}\indexname
\HCode{</text:p></text:index-title>\Hnewline}
>>>


\<configure ooffice latex\><<<
\NewConfigureOO{Index Heading}
\ConfigureOO{Index Heading}{\Hnewline
  <style:style
           style:name="Index Heading"
           style:family="paragraph"
           style:parent-style-name="Heading"
           style:class="index">\Hnewline
     <style:properties
        fo:margin-left="0inch"
        fo:margin-right="0inch"
        fo:font-size="16pt"
        fo:font-weight="bold"
        style:font-size-asian="16pt"
        style:font-weight-asian="bold"
        style:font-size-complex="16pt"
        style:font-weight-complex="bold"
        fo:text-indent="0inch"
        style:auto-text-indent="false"
        text:number-lines="false"
        text:line-number="0"/>\Hnewline
  </style:style>\Hnewline
}
>>>

\<configure html4 multind\><<<
\Configure{@begin}{theindex}
   {\ifx \indexname\empty \else|<toc for multind|>\fi}
>>>


% \ifx \indexname\empty \else
%       \ifx\chapter\:Undef \section*{\indexname}\else
%                           \chapter*{\indexname}\fi
%       \let\indexname=\empty 
%     \fi
%     



\<configure html4 index\><<<
\Configure{NoSection}
  {\let\sv:index=\p@index \let\sv:label=\label 
   \let\sv:newline=\newline \def\newline{ }%
   \def\p@index[##1]{\@gobble}\let\label=\@gobble 
   |<nolink ref|>%
  }
  {\let\p@index=\sv:index \let\label=\sv:label 
   |<restore ref|>%
   \let\newline=\sv:newline
  }
>>>




\<configure html4 texinfo\><<<
\Configure{index}
  {\IgnorePar\leavevmode\EndP\Tg<div class="index">}
  {\IgnorePar\EndP\Tg</div>}
  {\leavevmode\Tg<span class="entry">}
  {\Tg</span>\Tg<br />\IgnorePar}
>>>







%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{mwcls}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<mwcls index\><<<
\Configure{@begin}{theindex}{\section*{\indexname}}
>>>


%%%%%%%%%%%%%%%%%%
\section{Begin/End Environments}
%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%
\subsection{Verse}
%%%%%%%%%%%%%



\<configure ooffice latex\><<<
\ConfigureEnv{verse}
   {|<begin env section|>%
    \HCode{<!--start verse-->}%
    \bgroup  |<HtmlPar at verse|>}
   {\egroup \ifvmode \IgnorePar\fi \EndP
    \HCode{<!--end verse-->}|<end env section|>}
   {}{}
\ConfigureList{verse}
   {}{}
   {\parindent=\z@}  {\par}
\NewConfigureOO{verse}
\ConfigureOO{verse}{\Hnewline
<style:style style:name="verse"
             style:family="paragraph"
             style:parent-style-name="Text body"
             style:next-style-name="Text body">
<style:properties fo:margin-left="1.499cm"
             fo:margin-right="1cm"
             fo:margin-top="0.199cm"
             fo:margin-bottom="0.199cm"
             fo:text-indent="-0.499cm"
             style:auto-text-indent="false">
   <style:tab-stops/>
</style:properties>
</style:style>
\Hnewline}
>>>

%%%%%%%%%%%%%
\subsection{Paragraph}
%%%%%%%%%%%%%




\<HtmlPar at verse\><<<
\Configure{HtmlPar}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<text:p text:style-name="verse">}}
   {\ifvmode \IgnorePar\fi \EndP
     \HCode{<text:p text:style-name="verse">}}
   {\HCode{</text:p>}}
   {\HCode{</text:p>}}%
>>>





%%%%%%%%%%%%%
\subsection{Table}
%%%%%%%%%%%%%



\<ooffice begin-end env\><<<
\ConfigureEnv{table}
   {|<begin env section|>%
    \ht:special{<!-- table -->}%
   }
   {\ht:special{<!-- /table -->}|<end env section|>}
   {}{}
>>>






%%%%%%%%%%%%%
\subsection{Float}
%%%%%%%%%%%%%



\<configure ooffice latex\><<<
\Configure{float}
   {\csname par\endcsname\ShowPar \leavevmode}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<text:section text:name="float" >}}
   {\ifvmode \IgnorePar\fi\EndP 
    \HCode{</text:section>}%
    \csname par\endcsname\ShowPar
   }
\ConfigureEnv{figure}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<text:section text:name="figure" >}%
    \bgroup \Configure{float}{\ShowPar}{}{}%    
   }
   {\egroup
    \ifvmode \IgnorePar\fi\EndP \HCode{</text:section>}%
    \csname par\endcsname\ShowPar}
   {}{}
>>>

\<configure ooffice Preamble\><<<
\edef\Preamble{\Preamble,refcaption}
>>>




%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{lineno.sty}
%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure ooffice lineno\><<<
\:warning{The line numbers are commented out. To reintroduce them, use
    the \string\Configure{lineno}{...}{...} command}
\Configure{lineno}
    {\bgroup \let\LineNumber=\empty}
    {\egroup}
>>>



%%%%%%%%%%%%%%%%%%
\section{Text Decorations}
%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%
\subsection{Fonts}
%%%%%%%%%%%%%%%%%%




\<configure ooffice fontmath\><<<
\Configure{texttt}
     {\ifmathml \Configure{@mtext}{\mml:class="texttt" mathvariant="monospace" }%
      \else     \HCode{<text:span text:style-name="texttt">}\fi}
     {\ifmathml\else \HCode{</text:span>}\fi}
  \Configure{textit}
     {\ifmathml \Configure{@mtext}{\mml:class="textit" mathvariant="italic" }%
      \else     \HCode{<text:span text:style-name="textit">}\fi}
     {\ifmathml\else \HCode{</text:span>}\fi}
  \Configure{textrm}
     {\ifmathml \Configure{@mtext}{ \mml:class="textrm" mathvariant="normal" }%
      \else     \HCode{<text:span text:style-name="textrm">}\fi}
     {\ifmathml\else \HCode{</text:span>}\fi}
  \Configure{textsl}
     {\ifmathml \Configure{@mtext}{ \mml:class="textst" mathvariant="italic" }%
      \else     \HCode{<text:span text:style-name="textsl">}\fi}
     {\ifmathml\else \HCode{</text:span>}\fi}
  \Configure{textsf}
     {\ifmathml \Configure{@mtext}{ \mml:class="textsf" mathvariant="sans-serif" }%
      \else     \HCode{<text:span text:style-name="textsf">}\fi}
     {\ifmathml\else \HCode{</text:span>}\fi}
  \Configure{textbf}
     {\ifmathml \Configure{@mtext}{ \mml:class="textbf" mathvariant="bold" }%
      \else     \HCode{<text:span text:style-name="textbf">}\fi}
     {\ifmathml\else \HCode{</text:span>}\fi}
  \Configure{textsc}
     {\ifmathml \Configure{@mtext}{ \mml:class="textsc" mathvariant="normal" }%
      \else     \HCode{<text:span text:style-name="textsc">}\fi}
     {\ifmathml\else \HCode{</text:span>}\fi}
  \Configure{emph}
     {\ifmathml \Configure{@mtext}{ \mml:class="emph" mathvariant="italic" }%
      \else     \HCode{<text:span text:style-name="Emphasis">}\fi}
     {\ifmathml\else \HCode{</text:span>}\fi}
  \Configure{textup}
     {\ifmathml \Configure{@mtext}{ \mml:class="textup" mathvariant="normal" }%
      \else     \HCode{<text:span text:style-name="textup">}\fi}
     {\ifmathml\else \HCode{</text:span>}\fi}
>>>



\<configure ooffice fontmath\><<<
\NewConfigureOO{emph}
\ConfigureOO{emph}{|<oo emph style|>}
\NewConfigureOO{textit}
\ConfigureOO{textit}{|<oo textit style|>}
\NewConfigureOO{textbf}
\ConfigureOO{textbf}{|<oo textbf style|>}
\NewConfigureOO{textsc}
\ConfigureOO{textsc}{|<oo textsc style|>}
\NewConfigureOO{texttt}
\ConfigureOO{texttt}{|<oo texttt style|>}
\NewConfigureOO{textrm}
\ConfigureOO{textrm}{|<oo textrm style|>}
\NewConfigureOO{textsf}
\ConfigureOO{textsf}{|<oo textsf style|>}
\NewConfigureOO{textsl}
\ConfigureOO{textsl}{|<oo textsl style|>}
\NewConfigureOO{textsl}
\ConfigureOO{textsl}{|<oo textup style|>}
>>>


\<oo textsf style\><<<
<style:style style:name="textsf" style:family="text">\Hnewline
   <style:properties fo:font-style="normal" 
                     fo:font-weight="bold"
                     style:font-family-generic="swiss" 
                     style:font-pitch="variable" />\Hnewline
</style:style>\Hnewline
>>>


\<oo emph style\><<<
<style:style style:name="Emphasis" style:family="text">\Hnewline
   <style:properties fo:font-style="italic"/>\Hnewline
</style:style>\Hnewline
>>>

\<oo textit style\><<<
<style:style style:name="textit" style:family="text">\Hnewline
   <style:properties fo:font-style="italic"/>\Hnewline
</style:style>\Hnewline
>>>




\<oo textrm style\><<<
<style:style style:name="textrm" style:family="text">\Hnewline
<style:properties fo:font-weight="normal" 
             style:font-weight-asian="normal" 
             style:font-weight-complex="normal"/>\Hnewline
</style:style>\Hnewline
>>>





\<oo textsl style\><<<
<style:style style:name="textsl" style:family="text">\Hnewline
   <style:properties fo:font-style="italic"/>\Hnewline
</style:style>\Hnewline
>>>

\<oo textbf style\><<<
<style:style style:name="textbf" style:family="text">\Hnewline
   <style:properties fo:font-style="normal" 
                     fo:font-weight="bold"/>\Hnewline
</style:style>\Hnewline
>>>

\<oo textsc style\><<<
<style:style style:name="textsc" style:family="text">\Hnewline
   <style:properties
             fo:font-variant="small-caps"
             fo:font-style="normal"
             fo:font-weight="normal"
             fo:font-size="75\%"
             style:text-position="0\% 100\%"
   />\Hnewline
</style:style>\Hnewline    
>>>


\<oo texttt style\><<<
<style:style style:name="texttt" style:family="text">\Hnewline
   <style:properties
             fo:font-family="monospace"
   />\Hnewline
</style:style>\Hnewline    
>>>

\<oo textup style\><<<
<style:style style:name="textup" style:family="text">\Hnewline
<style:properties fo:font-weight="normal" 
             style:font-weight-asian="normal" 
             style:font-weight-complex="normal"/>\Hnewline
</style:style>\Hnewline
>>>


\<\><<<
<style:style style:name="Underline" style:family="text">
  <style:properties style:text-underline="single"
                    style:text-underline-color="font-color"/>\Hnewline
</style:style>\Hnewline
>>>


%%%%%%%%%%%%%
\subsection{Soul}
%%%%%%%%%%%%%

\<configure ooffice soul\><<<
\Configure{textcaps}
     {\HCode{<text:span text:style-name="textcaps">}}
     {\HCode{</text:span>}}
\Configure{texthl}
     {\HCode{<text:span text:style-name="texthl">}\bgroup 
     \ifx\setstcolor\:gobble\else |<soul color|>\fi}
     {\egroup\HCode{</text:span>}}
\Configure{textso}
     {\HCode{<text:span text:style-name="textso">}}
     {\HCode{</text:span>}}
\Configure{textst}
     {\HCode{<text:span text:style-name="textst">}\bgroup 
     \ifx\setstcolor\:gobble\else |<soul color|>\fi}
     {\egroup\HCode{</text:span>}}
\Configure{textul}
     {\HCode{<text:span text:style-name="textul">}\bgroup 
     \ifx\setstcolor\:gobble\else |<soul color|>\fi}
     {\egroup\HCode{</text:span>}}
>>>





\<configure ooffice soul\><<<
\NewConfigureOO{textcaps}
\ConfigureOO{textcaps}{|<oo textcaps style|>}
\NewConfigureOO{textso}
\ConfigureOO{textso}{|<oo textso style|>}
\NewConfigureOO{textst}
\ConfigureOO{textst}{|<oo textst style|>}
\NewConfigureOO{textul}
\ConfigureOO{textul}{|<oo textul style|>}
>>>


\<oo textcaps style\><<<
<style:style style:name="textcaps" style:family="text">\Hnewline
  <style:properties fo:font-variant="small-caps" />\Hnewline
</style:style>\Hnewline
>>>



\<oo textso style\><<<
<style:style style:name="textso" style:family="text">
   <style:properties fo:letter-spacing="0.035inch"/>
</style:style>
>>>

\<oo textst style\><<<
<style:style style:name="textst" style:family="text">
   <style:properties style:text-crossing-out="single-line"/>
</style:style>
>>>

\<oo textul style\><<<
<style:style style:name="textul" style:family="text">
   <style:properties style:text-underline="single" />
</style:style>
>>>

\<soul color\><<<
\Configure{textcolor} 
   {\gHAdvance\textcolorN by 1 
    \Configure{color}%
      {\Configure{SetHColor}{%
         \OOstyles{%
           <style:style style:name="textcolor\textcolorN" style:family="text">
              <style:properties style:text-background-color="\HColor"/>
           </style:style>}%
    }}%
    \HCode{<text:span text:style-name="textcolor\textcolorN">}}%
   {\HCode{</text:span>}}%
>>>


%%%%%%%%%%%%%
\subsection{Color}
%%%%%%%%%%%%%


\<configure ooffice color\><<<
\HAssign\textcolorN=0
>>>



%%%%%%%%%%%%%%%%%%
\section{Pictures}
%%%%%%%%%%%%%%%%%%

 
\<configure ooffice latex\><<< 
\Configure{picture} 
    {\Picture+[PICT]{}} 
    {\EndPicture} 
>>>





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Others}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{??? Move to Unicode}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<configure ooffice fontmath\><<<
\Configure{mathellipsis}
   {\HCode{\string&\#x2026;}}
>>>




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{The equation Environment}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure ooffice-mml latex\><<<
\Configure{equation}
  {\IgnorePar\ifvmode\else \HCode{<!--tex4ht:inline-->}\fi
   \EndP |<equation start table|>%
   |<disp math within equation|>%
   \IgnorePar}
  {\ifvmode \IgnorePar\fi\EndP
   |<equation table cells separator|>}
  {|<equation end table|>|<try inline par|>%
}
>>>


\<equation start table\><<<
\HCode{<table:table table:style-name="equation">%
       <table:table-column table:style-name="equ-col" />\Hnewline
       <table:table-column table:style-name="equ-num-col" />\Hnewline
       <table:table-row>%
       <table:table-cell table:style-name="equ-cell">%
       <text:p text:style-name="equ-p">}%
>>>


\<equation end table\><<<
\HCode{</text:p></table:table-cell>\Hnewline
          </table:table-row></table:table>}%
>>>


\<equation table cells separator\><<<
\HCode{</text:p></table:table-cell>\Hnewline
       <table:table-cell table:style-name="equ-num-cell">%
       <text:p text:style-name="equ-num-p">}%
>>>

\<configure ooffice-mml latex\><<<
\OOstyles{%
<style:style
     style:name="equ-p"
     style:family="paragraph"
     style:parent-style-name="Standard">\Hnewline
  <style:properties
     fo:text-align="center"
     style:justify-single-word="false"/>\Hnewline
</style:style>\Hnewline
}
\OOstyles{%
<style:style
     style:name="equ-num-p"
     style:family="paragraph"
     style:parent-style-name="Standard">\Hnewline
  <style:properties
     fo:text-align="end"
     style:justify-single-word="false"/>\Hnewline
</style:style>\Hnewline
}
\OOstyles{%
<style:style style:name="equation" 
             style:family="table">\Hnewline
     <style:properties
                 style:rel-width="88\%"
                 fo:margin-left="1cm"
                 fo:margin-right="0cm"
                 fo:margin-top="0.3cm"
                 fo:margin-bottom="0.3cm"
                 table:align="margins"/>\Hnewline
</style:style>\Hnewline
}
>>>


\<configure ooffice-mml amsmath\><<<
\Configure{equation}
  {\ifvmode \IgnorePar\fi\EndP
   |<equation start table|>% 
   |<amsmath equation july 2000|>%
   |<disp math within equation|>%
  }
  {\ifvmode \IgnorePar\fi\EndP |<equation table cells separator|>}
  {\ifvmode \IgnorePar\fi\EndP |<equation end table|>%
   |<try inline par|>}
>>>


\<disp math within equation\><<<
\Configure{$$}
   {\Configure{@math}{}\IgnorePar\EndP\DviMath}
   {\EndDviMath\EndP}{}%
>>>




\<amsmath equation july 2000\><<<
\Configure{gather}
     {\HCode{<\a:mathml mtable\Hnewline
         class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar 
         |<math display in equation|>}
     {\HCode{</\a:mathml mtd></\a:mathml mtr></\a:mathml mtable>}}
     {}
     {}
     {\ifnum\HCol=2 \IgnorePar
         \HCode{</\a:mathml mtd><\a:mathml mtd>}\fi }
     {}%
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Math}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\<configure ooffice-mml latex\><<<
\Configure{[]}
   {\Configure{@math}{\a:mathml display="block"}\IgnorePar
    \ifvmode\EndP
    \else\EndP \HCode{<!--tex4ht:inline-->}\fi
    \HCode{<text:p text:style-name="display-math">}\DviMath$$\DisplayMathtrue}
   {$$\EndDviMath\HCode{</text:p>}\ShowPar\par
    {\csname HCondtrue\endcsname\noindent}}
   {}
>>>




\<configure ooffice tex4ht\><<<
\def\mml:class#1"#2"{}
>>>

\<configure ooffice-mml tex4ht\><<<
\Configure{$$}
   {\Configure{@math}{\a:mathml display="block"}\IgnorePar
    \ifvmode\EndP
    \else\EndP \HCode{<!--tex4ht:inline-->}\fi
    \HCode{<text:p text:style-name="display-math">}\DviMath}
   {\EndDviMath\HCode{</text:p>}\ShowPar\par
    {\csname HCondtrue\endcsname\noindent}}
   {\DisplayMathtrue}
>>>

\<configure ooffice-mml rlbabel\><<<
\Configure{[]}
   {\Configure{@math}{\a:mathml display="block"}\IgnorePar
    \ifvmode\EndP
    \else\EndP \HCode{<!--tex4ht:inline-->}\fi
    \HCode{<text:p text:style-name="display-math">}\DviMath$$\DisplayMathtrue}
   {$$\EndDviMath\HCode{</text:p>}\ShowPar\par
    {\csname HCondtrue\endcsname\noindent}}
   {}
>>>



\<configure ooffice-mml tex4ht\><<<
\NewConfigureOO{display-math}
\ConfigureOO{display-math}
   {<style:style style:name="display-math" 
         style:family="paragraph" 
         style:parent-style-name="Text body">\Hnewline
      <style:properties 
         fo:text-align="center" 
         style:auto-text-indent="false"
         style:justify-single-word="false"/>\Hnewline
    </style:style>\Hnewline}
>>>






%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Obeying lines and Verbatims}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<configure ooffice latex\><<<
\Configure{verb}
   {\HCode{<text:span\Hnewline text:style-name="verb">}}
   {\HCode{</text:span>}}
\NewConfigureOO{verb}
\ConfigureOO{verb}{|<verb style|>}
>>>

\<configure ooffice latex\><<<
\Configure{obeylines}
   {\ifvmode \IgnorePar\EndP \IgnoreIndent
       \HCode{<text:p\Hnewline text:style-name="obeylines-v">}%
       \gdef\ob:ln{\ht:special{t4ht=</text:p>}}%
    \else
       \SaveEndP \HCode{<text:span\Hnewline
                               text:style-name="obeylines-h">}%
       \gdef\ob:ln{\ht:special{t4ht=</text:span>}\RecallEndP}%
    \fi
   }
   {\EndP\ob:ln\ShowPar}
   {\hbox{\HCode{<text:line-break/>}}}
\NewConfigureOO{obeylines}
\ConfigureOO{obeylines}{|<obeylines style|>}
>>>



\<configure ooffice latex\><<<
\ConfigureEnv{verbatim}
  {\ifinner\else \vfill\break\fi
   \IgnorePar\EndP  \HAssign\Verb:N=0
   \HCode{|<input line num|><text:p 
     text:style-name="Preformatted Text|<cond rtl class|>">}\EndNoFonts
  }
  {\NoFonts \EndP \ht:special{t4ht=</text:p>}\ShowPar\par}
  {}{}
\Configure{verbatim}
  {\HAdvance\Verb:N by 1 \ifnum \Verb:N>1
     \HCode{<text:line-break/>}%
   \fi
  }
  {\HCode{<text:s/>}}
\NewConfigureOO{verbatim}
\ConfigureOO{verbatim}{|<verbatim style|>}
>>>




\<obeylines style\><<<
<style:style style:name="obeylines-h" style:family="text">\Hnewline
   <style:properties
           fo:wrap-option="no-wrap"
   />\Hnewline
</style:style>\Hnewline    
<style:style style:name="obeylines-v" style:family="text">\Hnewline
   <style:properties
           fo:wrap-option="no-wrap"
   />\Hnewline
</style:style>\Hnewline    
>>>



\<verb style\><<<
<style:style style:name="verb" style:family="text">\Hnewline
   <style:properties
       fo:font-family="monospace"
   />\Hnewline
</style:style>\Hnewline    
>>>



\<verbatim style\><<<
<style:style style:name="Preformatted Text" 
             style:family="paragraph"
             style:parent-style-name="Standard">\Hnewline
   <style:properties
      fo:font-family="monospace"
%      fo:wrap-option="no-wrap"
      style:font-name="Courier"
      fo:margin-top="0.2cm" 
      fo:margin-bottom="0.2cm" 
      fo:text-indent="0cm"
   />\Hnewline
</style:style>\Hnewline    
|<Preformatted Text rtl|>  %
>>>







\<W2L verbatim style\><<<
<style:style style:name="Preformatted Text"  
             style:family="paragraph"  
             style:parent-style-name="Standard"  
             style:class="html"> 
<style:properties fo:margin-top="0cm"  
             fo:margin-bottom="0cm"  
             style:font-name="Cumberland2"  
             fo:font-size="12pt"  
             style:font-name-asian="Cumberland2"  
             style:font-size-asian="10pt"  
             style:font-name-complex="Cumberland2"  
             style:font-size-complex="10pt"/> 
</style:style>
>>>
















\<configure ooffice latex\><<<
\OOstyles{%
  <style:font-decl
      style:name="Courier" 
      fo:font-family="Courier"
      style:font-family-generic="modern"
       style:font-pitch="fixed"/>
}
>>>



\begin{verbatim}
fo:wrap-option is not supported by OOo

The option fo:font-family is not used for generic font names in OOo, you
should use the combination
fo:font-family="Courier"  (or some other suitable font name, not important)
style:font-family-generic="modern"
style:font-pitch="fixed"

   The `momospace' is recognized, and needed for the spaces.
   Do we need the Courier?

  See:

       \ begin{verbatim}
       1234
       x  x
       \ end{verbatim}


I would recommend to declare the styles verb and verbatim as follows:

<style:font-decl style:name="Courier" fo:font-family="Courier"
style:font-family-generic="modern" style:font-pitch="fixed"/>

<style:style style:name="verbatim" style:family="paragraph"
style:parent-style-name="Standard">
<style:properties style:font-name="Courier" fo:margin-top="0.2cm"
fo:margin-bottom="0.2cm" fo:text-indent="0cm" />
</style:style>

<style:style style:name="verb" style:family="text">
<style:properties style:font-name="Courier" />
</style:style>

OOo comes with built-in styles for this, which you could choose to use
instead:
"Preformatted Text" and "Teletype"
\end{verbatim}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Standard Paragraphs}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\<configure ooffice tex4ht\><<<
\expandafter\ifx \csname if@rl\endcsname\relax  
   \expandafter \csname newif\expandafter\endcsname \csname if@rl\endcsname
   \@rlfalse
\fi
\HTML:PAR{\ifHCond Like \fi Text body|<cond rtl class|>}%
         {\ifdim \parindent=\z@ Text body\else 
                                First line indent\fi |<cond rtl class|>}
>>>


% \HTML:PAR{p-\ifHCond nopar\else noindent\fi}%
%         {p-\ifdim \parindent=\z@ no\fi indent}


\<utilities\><<<
\def\HTML:PAR#1#2{%
  \Configure{HtmlPar}%
     {\EndP\HCode{|<input line num|><text:p text:style-name="#1">}}%
     {\EndP\HCode{|<input line num|><text:p text:style-name="#2">}}%
     {\HCode{</text:p>\Hnewline}}%
     {\HCode{</text:p>\Hnewline}}}
>>>

\<input line num\><<<
<!--l. \the\inputlineno-->%
>>>





It seems that the \verb+auto-text-indent="true"+ setting does not
export to rtf or ms word doc successfully from OOo at present. The
style p-indent thus displays as non-indented when the file is
exported from Ooo. Hence, it is replaced with 

\begin{verbatim}
fo:text-indent="0.4cm"
style:auto-text-indent="false"
\end{verbatim}


\<configure ooffice tex4ht\><<<
\NewConfigureOO{p-indent}
\ConfigureOO{p-indent}{%
<style:style style:name="First line indent"
                  style:family="paragraph"
                  style:parent-style-name="Text body"
                  style:class="text">\Hnewline
<style:properties fo:margin-left="0cm"
                  fo:margin-right="0cm"
                  fo:text-indent="0.499cm"
                  style:auto-text-indent="false"/>
</style:style>\Hnewline |<First line indent rtl|> }
>>>



\<configure ooffice tex4ht\><<<
\NewConfigureOO{p-noindent}
\ConfigureOO{p-noindent}{%
<style:style style:name="Text body"
                  style:family="paragraph"
                  style:parent-style-name="Standard"
                  style:next-style-name="First line indent"
                  style:class="text"
                  style:master-page-name="">\Hnewline
<style:properties fo:margin-top="0cm"
                  fo:margin-bottom="0cm"
                  fo:line-height="120\%"
                  fo:text-align="justify"
                  style:justify-single-word="false"
                  fo:hyphenate="true"
                  fo:hyphenation-remain-char-count="2"
                  fo:hyphenation-push-char-count="2"
                  fo:hyphenation-ladder-count="no-limit"
                  style:page-number="0"/>
</style:style>
\Hnewline
<style:style style:name="Like Text body"
                  style:family="paragraph"
                  style:parent-style-name="Standard"
                  style:next-style-name="First line indent"
                  style:class="text"
                  style:master-page-name="">\Hnewline
<style:properties fo:margin-top="0cm"
                  fo:margin-bottom="0cm"
                  fo:line-height="120\%"
                  fo:text-align="justify"
                  style:justify-single-word="false"
                  fo:hyphenate="true"
                  fo:hyphenation-remain-char-count="2"
                  fo:hyphenation-push-char-count="2"
                  fo:hyphenation-ladder-count="no-limit"
                  style:page-number="0"/>
</style:style>
\Hnewline  |<Text body rtl|>}
>>>


\<configure ooffice tex4ht\><<<
\NewConfigureOO{p-nopar}
\ConfigureOO{p-nopar}
   {<style:style style:name="p-nopar" 
         style:family="paragraph" 
         style:parent-style-name="Text body">\Hnewline
      <style:properties 
         fo:text-align="justify" 
         style:auto-text-indent="false"
         fo:margin-top="0.3cm" 
         fo:margin-bottom="0.3cm"
         style:justify-single-word="false"/>\Hnewline
    </style:style>\Hnewline  |<p-nopar rtl|> }
>>>



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Captions of Figures}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<ooffice captions\><<<
\Configure{caption}
   {\HCode{<text:line-break/>\Hnewline
           <text:span text:style-name="caption" >%
           <text:span text:style-name="caption-title" >}}
   {: }
   {\HCode{</text:span>}}
   {\HCode{</text:span>}}
\OOstyles{%
  <style:style style:name="caption-title" style:family="text">\Hnewline
     <style:properties fo:font-style="normal"
                       fo:font-weight="bold"/>\Hnewline
  </style:style>\Hnewline
}
>>>



\<configure ooffice latex\><<< 
\Configure{Link}{text:a}{xlink:href=}{office:name=}{}%
\def\NOHREF:#1{\space xlink:href="\:sharp#1"}%
>>>


% \Configure{Link}{text:span}{xlink:href=}{xlink:label=}{}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Page Breaks}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure ooffice tex4ht\><<<
\OOstyles{%
  <style:style style:name="clearpage" style:family="paragraph"
      style:parent-style-name="Text body">
      <style:properties fo:break-before="page" />
  </style:style>
}
\def\Hclearpage{%
  \par \ifvmode
     \IgnorePar\EndP
     \HCode{<text:p text:style-name="clearpage"></text:p>}%
     \ShowPar\par
  \fi
}
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Footnotes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<configure ooffice latex\><<<
|<footnote mark|>
|<footnote text|>
|<footnote thank|>
>>>

\<footnote text\><<<
\Configure{footnotetext}
   {\Tag{|<footnote id|>-tx}{}%
    |<check duplicate footnote text|>%
    \SaveEndP \NoFonts  \let\@textsuperscript\hbox
    \HCode{<text:footnote\Hnewline text:id="}|<footnote id|>%
               \HCode{"><text:footnote-citation>}%
    \IgnorePar \special{t4ht@(}%
   }
   {\EndNoFonts \RecallEndP
    \HCode{</text:footnote-citation><text:footnote-body>
    <text:p\Hnewline text:style-name="Footnote"><text:s/>}%
    \SaveHtmlPar |<footnote pars|>\ShowPar \special{t4ht@)}%
   }
   {\RecallHtmlPar \HCode{</text:p></text:footnote-body></text:footnote>}%
    |<notice footnote text|>%
   }
>>>




%    \Odef\Link[##1]##2##3{\global\let\cur:EndLink\EndLink
%         \gdef\EndLink{\global\let\EndLink=\cur:EndLink}}


\<footnote pars\><<<
\Configure{HtmlPar}
   {\EndP \HCode{<text:p text:style-name="Footnote">}}
   {\EndP \HCode{<text:p text:style-name="Footnote">}}
   {\HCode{</text:p>}}
   {\HCode{</text:p>}}%
>>>




\<footnote mark\><<<
 \ifx \tmp:bx\:UnDef \csname newbox\endcsname \tmp:bx \fi  
\Configure{footnotemark}
   {\Tag{|<footnote id|>}{}%
    |<footnote mark without text|>}
   {|<end footnote mark without text|>}
>>>

\<check duplicate footnote text\><<<
\ifTag{|<footnote id|>}
   {\expandafter\ifx\csname (|<footnote id|>)\endcsname\def
       \:warning{Multiple footnote texts for mark \FNnum}%
    \fi
   } {}%
>>>


\<notice footnote text\><<<
\expandafter\global\expandafter
   \let\csname (|<footnote id|>)\endcsname\def
>>>    


\<footnote mark without text\><<<
\ifTag{|<footnote id|>-tx}
   {\setbox\tmp:bx=\hbox\bgroup}
   {\NoFonts
    \HCode{<text:footnote\Hnewline text:id="}|<footnote id|>%
               \HCode{"><text:footnote-citation>}%
   }%
>>>

\<end footnote mark without text\><<<
\ifTag{|<footnote id|>-tx}
   {\egroup}
   {\EndNoFonts \HCode{</text:footnote-citation><text:footnote-body>
      <text:p\Hnewline text:style-name="Footnote">%
      </text:p></text:footnote-body></text:footnote>}%
   }%
>>>


\<footnote id\><<<
fn\FNnum x\minipageNum
>>>

\<thank id\><<<
fn\the\c@footnote x\minipageNum
>>>



\<configure ooffice footmisc\><<<
\Configure{footnotetext}
   {\Tag{|<footnote id|>-tx}{}%
    |<check duplicate footnote text|>%
    \NoFonts  \let\@textsuperscript\hbox
    \HCode{<text:footnote\Hnewline text:id="}|<footnote id|>%
               \HCode{"><text:footnote-citation>}%
    \let\fn:nbsp\:nbsp \let\:nbsp\empty  
   }
   {\EndNoFonts \let\:nbsp\fn:nbsp
    \HCode{</text:footnote-citation><text:footnote-body>%
    <text:p\Hnewline text:style-name="Footnote"><text:s/>}%
    \SaveHtmlPar  \Configure{HtmlPar}{}{}{}{}%
   }
   {\RecallHtmlPar  
    \HCode{</text:p></text:footnote-body></text:footnote>}%
    |<notice footnote text|>}
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Etc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure ooffice latex\><<<
\Configure{centercr}
   {\ht:special{t4ht=<text:line-break/>}}
   {\ht:everypar{\ht:everypar{\HtmlPar}}}
>>>

\<configure ooffice latex\><<<
\def\:temp{LaTeX}
\HLet\LaTeX\:temp
>>>

\<configure ooffice-mml latex\><<<
\Configure{newline}
  {\ifmtext |<end mtext|>\HCode{</\a:mathml mtext><\a:mathml 
                                        mtext class="newline">}%
            |<start mtext|>%
   \else \HCode{<text:line-break/>}\fi}
>>>



 \<start mtext\><<<
\ht:special{t4ht@,&\#x00A0;}%
>>>

\<end mtext\><<<
\ht:special{t4ht@,}%
>>>
 




\<configure ooffice amsmath\><<<
\def\:temp{{\protect\AmSfont AmS}}
\HLet\AmS\:temp
>>>




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Classes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Main Classes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<configure ooffice article\><<<
|<ooffice title page|>
|<content styles|>
|<non chap tocs|>
|<ooffice bib|>
|<ooffice begin-end env|>
|<basic ooffice sections|>
|<ooffice captions|>
|<ooffice index|>
|<non-chapter index|>
>>>

\<configure ooffice report\><<<
|<ooffice title page|>
|<content styles|>
|<chap tocs|>
|<ooffice bib|>
|<ooffice begin-end env|>
|<ooffice chapters|>
|<report chapters|>
|<basic ooffice sections|>
|<ooffice captions|>
|<ooffice index|>
|<chapter index|>
>>>

\<configure ooffice book\><<<
|<ooffice title page|>
|<content styles|>
|<chap tocs|>
|<ooffice bib|>
|<ooffice begin-end env|>
|<ooffice chapters|>
|<book chapters|>
|<basic ooffice sections|>
|<ooffice captions|>
|<ooffice index|>
|<chapter index|>
>>>

\<configure ooffice scrbook\><<<
|<ooffice title page|>
|<content styles|>
|<chap tocs|>
|<scr chap tocs|>
|<ooffice bib|>
|<ooffice begin-end env|>
|<scr ooffice chapters|>
|<basic scr ooffice sections|>
|<ooffice captions|>
|<ooffice index|>
|<chapter index|>
|<scrbook end units|>
>>>

\<configure ooffice scrreprt\><<<
|<ooffice title page|>
|<content styles|>
|<chap tocs|>
|<scr chap tocs|>
|<ooffice bib|>
|<ooffice begin-end env|>
|<scr ooffice chapters|>
|<basic scr ooffice sections|>
|<ooffice captions|>
|<ooffice index|>
|<chapter index|>
>>>


\<configure ooffice amsart\><<<
|<ooffice title page|>
|<content styles|>
|<non chap tocs|>
>>>



\<configure ooffice slides\><<<
\Configure{maketitle}
   {\HCode{<!--begin maketitle-->}}
   {\HCode{<!--end maketitle-->}\par}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<text:p text:style-name="Title|<cond rtl class|>" >}}
   {\HCode{</text:p>}}
\Configure{author date}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<text:p text:style-name="author|<cond rtl class|>">}}
   {\HCode{</text:p>}}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<text:p text:style-name="date|<cond rtl class|>">}}
   {\HCode{</text:p>}}
\NewConfigureOO{title}
\ConfigureOO{title}{%
<style:style style:name="Title"
             style:family="paragraph"
             style:parent-style-name="Heading"
             style:next-style-name="author"
             style:class="chapter">\Hnewline
<style: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"/>
</style:style> \Hnewline <style:style style:name="Title rtl"
             style:family="paragraph"
             style:parent-style-name="Heading rtl"
             style:next-style-name="author rtl"
             style:class="chapter">\Hnewline
<style: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"
                  style:writing-mode="rl-tb" />
</style:style> \Hnewline
 }
\NewConfigureOO{author}
\ConfigureOO{author}{%
<style:style      style:name="author"
                  style:family="paragraph"
                  style:parent-style-name="Text body"
                  style:next-style-name="date">\Hnewline
<style:properties fo:margin-top="0cm"
                  fo:margin-bottom="0.199cm"
                  fo:font-size="14pt"
                  fo:text-align="center"
                  style:justify-single-word="false"/>
</style:style>\Hnewline <style:style      style:name="author rtl"
                  style:family="paragraph"
                  style:parent-style-name="Text body rtl"
                  style:next-style-name="date rtl">\Hnewline
<style:properties fo:margin-top="0cm"
                  fo:margin-bottom="0.199cm"
                  fo:font-size="14pt"
                  fo:text-align="center"
                  style:justify-single-word="false"
                  style:writing-mode="rl-tb" />
</style:style>\Hnewline
}
\NewConfigureOO{date}
\ConfigureOO{date}{%
<style:style style:name="date"
                  style:family="paragraph"
                  style:parent-style-name="Text body"
                  style:next-style-name="Text body">\Hnewline
<style:properties fo:margin-top="0cm"
                  fo:margin-bottom="0.199cm"
                  fo:font-size="14pt"
                  fo:text-align="center"
                  style:justify-single-word="false"/>
</style:style>\Hnewline <style:style style:name="date rtl"
                  style:family="paragraph"
                  style:parent-style-name="Text body"
                  style:next-style-name="Text body">\Hnewline
<style:properties fo:margin-top="0cm"
                  fo:margin-bottom="0.199cm"
                  fo:font-size="14pt"
                  fo:text-align="center"
                  style:justify-single-word="false"
                  style:writing-mode="rl-tb" />
</style:style>\Hnewline
}
>>>








%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{g-brief}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\<configure ooffice g-brief\><<<
\Configure{g-brief}
   {\ifvmode \IgnorePar\fi \EndP |<open g-brief|>}
   {\ifvmode \IgnorePar\fi \EndP |<end open g-brief|>}
   {\ifvmode \IgnorePar\fi \EndP \par}
   {\ifvmode \IgnorePar\fi \EndP \par}
>>>


\<open g-brief\><<<
\let\sv:br =\\%
\let\sv:@imakebox=\@imakebox
\def\\{\HCode{</table:table-row>\Hnewline<table:table-row>}}%
\let\:clearpage\clearpage
\def\clearpage{\let\clearpage\:clearpage
   \ifvmode \IgnorePar\fi \EndP
   \HCode{<table:table table:style-name="date">
       <table:table-column/><table:table-column/>
       <table:table-column/><table:table-column/>
       <table:table-row>\Hnewline}%
   \IgnorePar
}%
\def\@imakebox[##1][##2]##3{%
  \HCode{<table:table-cell>\Hnewline
          <text:p text:style-name="makebox-##2">}%
  \bgroup \let\\=\sv:br \let\@imakebox\sv:@imakebox
          \let\par\sv:par
          ##3%
  \egroup
  \HCode{</text:p></table:table-cell>}%
  \def\par{\let\par\brf:par
     \ifvmode \IgnorePar\fi \EndP
     \HCode{</table:table-row></table:table>}}%
}%
>>>



\<end open g-brief\><<<
\let\@imakebox\sv:@imakebox
\let\\=\sv:br
>>>

\<configure ooffice g-brief\><<<
\OOstyles{%
<style:style style:name="makebox-r" \Hnewline
           style:family="paragraph" >\Hnewline
    <style:properties  fo:text-align="end" 
           style:justify-single-word="false" />\Hnewline
</style:style>\Hnewline
}
>>>



\<open g-brief\><<<
\let\brf:par\par
\HTML:PAR{p-g-brief}{p-g-brief}%
>>>

\<end open g-brief\><<<
\HTML:PAR{p-\ifHCond nopar\else noindent\fi}%
         {p-\ifdim \parindent=\z@ no\fi indent}%
>>>


\<configure ooffice g-brief\><<<
\OOstyles{%
 <style:style style:name="p-g-brief"
         style:family="paragraph"
         style:parent-style-name="Text body">\Hnewline
    <style:properties
       fo:text-align="justify"
       style:auto-text-indent="false"
       style:justify-single-word="false"
       fo:margin-top="0.7cm" 
       fo:margin-bottom="0.7cm"
    />\Hnewline
 </style:style>\Hnewline
}
>>>



\<configure ooffice g-briefNO\><<<
\Configure{letterfoot}
   {\ifvmode \IgnorePar\fi \EndP
    \bgroup
        \Configure{halignTB<>}{tabular}{\HCode{\Hnewline
             table:style-name="letterfoot"
             }<>\HAlign}%
        \Configure{table-column-style}
             {table:style-name="letterfoot\ar:cnt"}%
   }
   {}
   {\egroup} 
\OOstyles{%
<style:style style:name="letterfoot" 
             style:family="table">\Hnewline
<style:properties
                 fo:margin-top="2cm"
                 table:align="margins"/>\Hnewline
</style:style>\Hnewline
} 
\OOstyles{%
<style:style style:name="letterfoot1" 
             style:family="table-column">\Hnewline
<style:properties style:column-width="3cm"
style:rel-column-width="3030*"
    />\Hnewline
</style:style>\Hnewline
} 
>>>


The above styles don't work?




\<configure ooffice g-brief\><<<
\Configure{letterfoot}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<text:p text:style-name="letterfoot">}%
    \bgroup
        \Configure{tabular}
           {}{} {}{\HCode{<text:line-break/>}} {}{~~}%
   }
   {}
   {\egroup \HCode{</text:p>}} 
\OOstyles{%
   {<style:style style:name="letterfoot" 
         style:family="paragraph" 
         style:parent-style-name="Text body">\Hnewline
      <style:properties 
         fo:text-align="justify" 
         style:auto-text-indent="false"
         fo:margin-top="2cm" 
         fo:margin-bottom="0cm"
         style:justify-single-word="false"/>\Hnewline
    </style:style>\Hnewline}
} 
>>>


The above styles don't work?






\<configure ooffice g-brief\><<<
\Configure{letterhead}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<text:section 
                  text:style-name="header-style" text:name="header">
          <text:p text:style-name="left-col">}}
   {\HCode{</text:p>}}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{</text:section>
           <text:p text:style-name="p-retouradresse">}}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{</text:p><text:p text:style-name="postage">}}
   {\HCode{</text:p>}}  
\Configure{retouradresse}
  {\HCode{<text:span text:style-name="retouradresse">}}
  {\HCode{</text:span>}} 
>>>

\<configure ooffice g-brief\><<<
\OOstyles{%
<style:style style:name="header-style" style:family="section">\Hnewline
   <style:properties text:dont-balance-text-columns="false"
                     fo:margin-bottom="2cm">\Hnewline
      <style:columns    fo:column-count="2"
                        fo:column-gap="1inch">\Hnewline
          <style:column fo:margin-left="0inch"
                        fo:margin-right="0inch"/>\Hnewline
          <style:column fo:margin-left="0inch"
                        fo:margin-right="0inch"/>\Hnewline
      </style:columns>\Hnewline      
   </style:properties>\Hnewline
</style:style>\Hnewline
}
\OOstyles{%
<style:style style:name="p-retouradresse" \Hnewline
             style:family="paragraph" \Hnewline
             style:parent-style-name="Standard">\Hnewline
    <style:properties fo:margin-top="0.7cm" \Hnewline
                      fo:margin-bottom="0.7cm"/>\Hnewline
</style:style>\Hnewline
}
\OOstyles{%
<style:style style:name="postage" \Hnewline
             style:family="paragraph" \Hnewline
             style:parent-style-name="Standard">\Hnewline
    <style:properties fo:margin-top="0.5cm" \Hnewline
                      fo:margin-bottom="0.5cm"/>\Hnewline
</style:style>\Hnewline
}
>>>

The following configuration does not show.

\<configure ooffice g-brief\><<<
\OOstyles{%
<style:style style:name="tabular" 
             style:family="table"
             style:parent-style-name="header-style">\Hnewline
<style:properties style:rel-width="46\%"
                 fo:margin-left="1cm"
                 fo:margin-right="0cm"
                 table:align="margins"/>\Hnewline
</style:style>\Hnewline
}
>>>


\<configure ooffice g-brief\><<<
\Configure{betreff}
  {\HCode{<text:span text:style-name="betreff">}}
  {\HCode{</text:span>}}
\Configure{betrefftext}
  {\HCode{<text:span text:style-name="betrefftext">}}
  {\HCode{</text:span>}}
\Configure{gruss}
  {\HCode{<text:span text:style-name="gruss">}}
  {\HCode{</text:span>}}
\Configure{grussskip}
  {\HCode{<text:span text:style-name="grussskip">}}
  {\HCode{</text:span>}}
\Configure{unterschrift}
   {\HCode{<text:span text:style-name="unterschrift">}}
   {\HCode{</text:span>}}
\Configure{datumtext}
  {\HCode{<text:span text:style-name="datumtext">}}
  {\HCode{</text:span>}}
\Configure{datum}
  {\HCode{<text:span text:style-name="datum">}}
  {\HCode{</text:span>}}
\Configure{anlagen}
  {\HCode{<text:span text:style-name="anlagen">}}
  {\HCode{</text:span>}}
\Configure{verteiler}
   {\HCode{<text:span text:style-name="verteiler">}}
   {\HCode{</text:span>}}
\Configure{sprache}
  {\HCode{<text:span text:style-name="sprache">}}
  {\HCode{</text:span>}}
>>>

\<configure ooffice g-brief\><<<
\Configure{telefontex}
  {\HCode{<text:span text:style-name="telefontex">}}
  {\HCode{</text:span>}}
\Configure{telefaxtext}
  {\HCode{<text:span text:style-name="telefaxtext">}}
  {\HCode{</text:span>}}
\Configure{telextext}
  {\HCode{<text:span text:style-name="telextext">}}
  {\HCode{</text:span>}}
\Configure{telefax}
  {\HCode{<text:span text:style-name="telefax">}}
  {\HCode{</text:span>}} 
\Configure{telefon}
  {\HCode{<text:span text:style-name="telefon">}}
  {\HCode{</text:span>}} 
\Configure{telex}
  {\HCode{<text:span text:style-name="telex">}}
  {\HCode{</text:span>}} 
>>>

\<configure ooffice g-brief\><<<
\Configure{emailtext}
  {\HCode{<text:span text:style-name="emailtext">}}
  {\HCode{</text:span>}}
\Configure{email}
  {\HCode{<text:span text:style-name="email">}}
  {\HCode{</text:span>}} 
\Configure{httptext}
  {\HCode{<text:span text:style-name="httptext">}}
  {\HCode{</text:span>}}
\Configure{http}
  {\HCode{<text:span text:style-name="http">}}
  {\HCode{</text:span>}} 
\Configure{banktext}
  {\HCode{<text:span text:style-name="banktext">}}
  {\HCode{</text:span>}}
\Configure{bank}
  {\HCode{<text:span text:style-name="bank">}}
  {\HCode{</text:span>}} 
\Configure{konto}
  {\HCode{<text:span text:style-name="konto">}}
  {\HCode{</text:span>}} 
\Configure{blztext}
  {\HCode{<text:span text:style-name="blztext">}}
  {\HCode{</text:span>}}
\Configure{blz}
  {\HCode{<text:span text:style-name="blz">}}
  {\HCode{</text:span>}} 
>>>

\<configure ooffice g-brief\><<<
\Configure{ihrzeichentext}
  {\HCode{<text:span text:style-name="ihrzeichentext">}}
  {\HCode{</text:span>}}
\Configure{ihrzeichen}
  {\HCode{<text:span text:style-name="ihrzeichen">}}
  {\HCode{</text:span>}} 
\Configure{ihrschreibentext}
  {\HCode{<text:span text:style-name="ihrschreibentext">}}
  {\HCode{</text:span>}}
\Configure{ihrschreiben}
  {\HCode{<text:span text:style-name="ihrschreiben">}}
  {\HCode{</text:span>}} 
\Configure{meinzeichentext}
  {\HCode{<text:span text:style-name="meinzeichentext">}}
  {\HCode{</text:span>}}
\Configure{meinzeichen}
  {\HCode{<text:span text:style-name="meinzeichen">}}
  {\HCode{</text:span>}} 
\Configure{unserzeichentext}
  {\HCode{<text:span text:style-name="unserzeichentext">}}
  {\HCode{</text:span>}}
>>>

\<configure ooffice g-brief\><<<
\Configure{adresse}
  {\HCode{<text:span text:style-name="adresse">}}
  {\HCode{</text:span>}} 
\Configure{land}
  {\HCode{<text:span text:style-name="land">}}
  {\HCode{</text:span>}} 
\Configure{name}
  {\HCode{<text:span text:style-name="name">}}
  {\HCode{</text:span>}} 
\Configure{ort}
  {\HCode{<text:span text:style-name="ort">}}
  {\HCode{</text:span>}} 
\Configure{postvermerk}
  {\HCode{<text:span text:style-name="postvermerk">}}
  {\HCode{</text:span>}} 
\Configure{strasse}
  {\HCode{<text:span text:style-name="strasse">}}
  {\HCode{</text:span>}} 
\Configure{zusatz}
  {\HCode{<text:span text:style-name="zusatz">}}
  {\HCode{</text:span>}} 
>>>


\<configure oolatex g-briefNO\><<<
\Configure{anrede}
  {\ifvmode \IgnorePar\fi \EndP \HCode{<text:p text:style-name="anrede">}}
  {\HCode{</text:p>}}
>>>


%%%%%%%%%%%%%%%%%%
\section{Babel}
%%%%%%%%%%%%%%%%%%


\<configure ooffice babel\><<<
\Configure{quotedblbase}{\leavevmode\ht:special{t4ht@+&{35}x201E;}x}
\Configure{quotesinglbase}{\leavevmode\ht:special{t4ht@+&{35}x201A;}x}
\Configure{accent}\lower@umlaut\lower@umlaut{A{A}E{E}I{I}O{O}U{U}Y%
           {Y}a{a}e{e}i{i}\i{i}o{o}u{u}y{y}{}{34}}
   {\a:accents{uml}{#1}}     {\b:accents{uml}{#1}{#2}}
>>>

\<configure ooffice babelNO\><<<
|<T1 old iso-8859-2 accents|>
|<old iso-8859-2 accents|>
>>>


\<T1 old iso-8859-2 accents\><<<
\expand:after{\Configure{accent}}\csname T1\string\`\expandafter\endcsname
   \csname T1\string\`\endcsname{|<grave iso-8859-2|>{}{}}
   {\HChar{#1}}   {\b:accents{grave}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\'\expandafter\endcsname
   \csname T1\string\'\endcsname{|<acute iso-8859-2|>{}{}}
   {\HChar{#1}}   {\b:accents{acute}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\^\expandafter\endcsname
   \csname T1\string\^\endcsname{|<circumflex iso-8859-2|>{}{}}
   {\HChar{#1}}   {\b:accents{circ}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\~\expandafter\endcsname
   \csname T1\string\~\endcsname{|<tilde iso-8859-2|>{}{}}
   {\HChar{#1}}   {\b:accents{tilde}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\"\expandafter\endcsname
   \csname T1\string\"\endcsname{|<diaeresis iso-8859-2|>{}{34}}
   {\HChar{#1}}     {\b:accents{uml}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\r\endcsname}%
   \csname T1\string\r\endcsname{|<ring iso-8859-2|>{}{}}
   {\HChar{#1}}   {\b:accents{ring}{#1}{#2}}
>>>



\<T1 old iso-8859-2 accents\><<<
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\c\endcsname}%
   \csname T1\string\c\endcsname{|<cedilla iso-8859-2|>{}{}}
   {\HChar{#1}}     {\b:accents{cedil}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\t\endcsname}%
   \csname T1\string\t\endcsname{{}{}}
   {\HChar{#1}}     {\b:accents{udot}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\H\endcsname}%
   \csname T1\string\H\endcsname{|<double acute iso-8859-2|>{}{}}
   {\HChar{#1}}{\b:accents{Huml}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\b\endcsname}%
   \csname T1\string\b\endcsname{{}{}}
   {\HChar{#1}}     {\b:accents{b}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\d\endcsname}%
   \csname T1\string\d\endcsname{{}{}}
   {\HChar{#1}}     {\b:accents{d}{#1}{#2}}
>>>



\<T1 old iso-8859-2 accents\><<<
\expand:after{\Configure{accent}}\csname T1\string\.\expandafter\endcsname
   \csname T1\string\.\endcsname
   {|<dot iso-8859-2|>{}{}} 
   {\HChar{#1}}{\b:accents{dot}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\u\expandafter\endcsname
   \csname T1\string\u\endcsname
   {|<breve iso-8859-2|>{}{}}
   {\HChar{#1}}{\b:accents{breve}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\vec\expandafter\endcsname
   \csname T1\string\vec\endcsname
   {|<vec iso-8859-2|>{}{}}
   {\HChar{#1}}{\b:accents{vec}{#1}{#2}}
\expandafter\let\csname T1\string\v\endcsname\:UnDef
\expand:after{\Configure{accent}}\csname T1\string\v\expandafter\endcsname
   \csname T1\string\v\endcsname
   {|<caron iso-8859-2|>{}{}}
   {\HChar{#1}}{\b:accents{check}{#1}{#2}} 
\expand:after{\Configure{accent}}\csname T1\string\=\expandafter\endcsname
   \csname T1\string\=\endcsname
   {|<bar iso-8859-2|>{}{}}
   {\HChar{#1}}{\b:accents{bar}{#1}{#2}}
>>>



\<old iso-8859-2 accents\><<<
\Configure{accent}\`\grave{|<grave iso-8859-2|>{}{}}
   {\HChar{#1}}   {\b:accents{grave}{#1}{#2}}
\Configure{accent}\'\acute{|<acute iso-8859-2|>{}{}}
   {\HChar{#1}}   {\b:accents{acute}{#1}{#2}}
\Configure{accent}\^\hat{|<circumflex iso-8859-2|>{}{}}
   {\HChar{#1}}   {\b:accents{hat}{#1}{#2}}
\Configure{accent}\~\tilde{|<tilde iso-8859-2|>{}{}}
   {\HChar{#1}}   {\b:accents{tilde}{#1}{#2}}
\Configure{accent}\"\ddot{|<diaeresis iso-8859-2|>{}{34}}
   {\HChar{#1}}   {\b:accents{uml}{#1}{#2}}
>>>

\<old iso-8859-2 accents\><<<
\Configure{accent}\c\c{|<cedilla iso-8859-2|>{}{}}
   {\HChar{#1}}     {\b:accents{cedil}{#1}{#2}}
\Configure{accent}\t\t{{}{}}
   {\HChar{#1}}     {\b:accents{udot}{#1}{#2}}
\Configure{accent}\H\H{|<double acute iso-8859-2|>{}{}}
   {\HChar{#1}}     {\b:accents{Huml}{#1}{#2}}
\Configure{accent}\b\b{{}{}}
   {\HChar{#1}}     {\b:accents{b}{#1}{#2}}
\Configure{accent}\d\d{{}{}}
   {\HChar{#1}}     {\b:accents{d}{#1}{#2}}
>>>


\<old iso-8859-2 accents\><<<
\Configure{accent}\.\.{|<dot above iso-8859-2|>{}{}}  
   {\HChar{#1}}      {\b:accents{dot}{#1}{#2}}
\Configure{accent}\dot\dot{|<dot above iso-8859-2|>{}{}}  
   {\HChar{#1}}      {\b:accents{dot}{#1}{#2}}
\Configure{accent}\u\breve{|<breve iso-8859-2|>{}{}}
   {\HChar{#1}}      {\b:accents{breve}{#1}{#2}}
\Configure{accent}\vec\vec{{}{}}
   {\HChar{#1}}      {\b:accents{vec}{#1}{#2}}
\Configure{accent}\v\v{|<caron iso-8859-2|>{}{}}
   {\HChar{#1}}      {\b:accents{check}{#1}{#2}} 
\Configure{accent}\check\check{|<caron iso-8859-2|>{}{}}
   {\HChar{#1}}      {\b:accents{check}{#1}{#2}} 
\Configure{accent}\=\bar{{}{}} 
   {\HChar{#1}}      {\b:accents{bar}{#1}{#2}}
>>>




 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
\chapter{Packages} 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
 

%%%%%%%%%%%%%%%%%%%%%
\section{Listings}
%%%%%%%%%%%%%%%%%%%%%


\<configure ooffice listings\><<<
\Log:Note{to ensure proper alignments use
   fixed size fonts (see listings.dtx)}
\Configure{listings}
   {\ifvmode \IgnorePar\fi \EndP 
    {\everypar{}\leavevmode}\HCode{<!--l. \the\inputlineno-->}%
     \HCode{<text:p text:style-name="Preformatted Text">}%
   }
   {{\everypar{}\leavevmode}\HCode{</text:p>}\par}
   {}{}
>>>

\<configure ooffice listings\><<<
\ConfigureEnv{lstlisting}
   {\ifvmode \IgnorePar\fi \EndP  
    \HCode{<!--l. \the\inputlineno lstlisting-->}%
    \HCode{<text:p\Hnewline text:style-name="Preformatted Text">}%
    \bgroup \special{t4ht@(}%
       \Configure{listings}
         {{\everypar{}\leavevmode}}
         {{\everypar{}\leavevmode}}
         {\HCode{<text:s/><text:line-break/>}}{}%
   }
   {\special{t4ht@)}\egroup
    \ifvmode \IgnorePar\fi \EndP   \HCode{</text:p>}\par}
   {} {}
>>>

\<configure ooffice listings\><<<
\Configure{lstinputlisting}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<!--l. \the\inputlineno lstinputlisting-->}%
    \HCode{<text:p\Hnewline text:style-name="Preformatted Text">}%
    \bgroup \tt \special{t4ht@(}%
       \Configure{listings}
         {{\everypar{}\leavevmode}}
         {{\everypar{}\leavevmode}}
         {\HCode{<text:s/><text:line-break/>}} 
         {\HCode{<text:line-break/>}}%
   }
   {\special{t4ht@)}\egroup
    \ifvmode \IgnorePar\fi \EndP   \HCode{</text:p>}\par}
>>>



\<configure ooffice-mml latex\><<<
\def\:nbsp{\ifmtext |<unicode space|>\else\ifmathml 
    \Tg<\a:mathml mspace />\else |<oo space|>\fi\fi} 
>>> 
 
\<unicode space\><<< 
\leavevmode\special{t4ht@+\string&{35}x00A0;}x% 
>>> 

\<oo space\><<<
\ht:special{t4ht=<text:s/>}%
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Right to Left}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\<cond rtl class\><<<
\if@rl\space rtl\fi
>>>


%%%%%%%%%%%%%%%%%%
\section{Title Page}
%%%%%%%%%%%%%%%%%%





\<Title rtl\><<<
<style:style style:name="Title rtl"
             style:family="paragraph"
             style:parent-style-name="Heading rtl"
             style:next-style-name="author rtl"
             style:class="chapter">\Hnewline
<style: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"
                  style:writing-mode="rl-tb" />
</style:style> \Hnewline
>>>

\<author rtl\><<<
<style:style      style:name="author rtl"
                  style:family="paragraph"
                  style:parent-style-name="Text body rtl"
                  style:next-style-name="date rtl">\Hnewline
<style:properties fo:margin-top="0cm"
                  fo:margin-bottom="0.199cm"
                  fo:font-size="14pt"
                  fo:text-align="center"
                  style:justify-single-word="false"
                  style:writing-mode="rl-tb" />
</style:style>\Hnewline
>>>



\<date rtl\><<<
<style:style style:name="date rtl"
                  style:family="paragraph"
                  style:parent-style-name="Text body"
                  style:next-style-name="Text body">\Hnewline
<style:properties fo:margin-top="0cm"
                  fo:margin-bottom="0.199cm"
                  fo:font-size="14pt"
                  fo:text-align="center"
                  style:justify-single-word="false"
                  style:writing-mode="rl-tb" />
</style:style>\Hnewline 
>>>




\<abstract rtl\><<<
<style:style style:name="abstract rtl"
                  style:family="paragraph"
                  style:parent-style-name="Text body rtl"
                  style:next-style-name="Text body rtl">\Hnewline
<style:properties fo:margin-left="3cm"
                  fo:margin-right="3cm"
                  fo:margin-top="0cm"
                  fo:margin-bottom="0.199cm"
                  fo:font-size="10pt"
                  fo:text-indent="0cm"
                  style:auto-text-indent="false"
                  style:writing-mode="rl-tb" />\Hnewline
</style:style>\Hnewline
>>>



%%%%%%%%%%%%%%%%%%
\section{Lists}
%%%%%%%%%%%%%%%%%%



\<oo+ itemize style rtl\><<<
<text:list-style style:name="Itemize rtl">\Hnewline
  <text:list-level-style-bullet
      text:level="1" 
      text:style-name="Bullet Symbols"
      text:bullet-char="\string&\:sharp x2022;" >\Hnewline
     <style:properties 
        text:space-before="0.15inch" 
        text:min-label-distance="0.05inch"/>\Hnewline
  </text:list-level-style-bullet>\Hnewline
  <text:list-level-style-bullet
      text:level="2"
      text:bullet-char="\string&\:sharp x25E6;" >\Hnewline
     <style:properties
       text:space-before="0.1972inch"
       text:min-label-width="0.2965inch"/>\Hnewline
  </text:list-level-style-bullet>\Hnewline
  <text:list-level-style-bullet
      text:level="3"
      text:bullet-char="\string&\:sharp x25AA;" >\Hnewline
     <style:properties
       text:space-before="0.3937inch"
       text:min-label-width="0.4965inch"/>\Hnewline
  </text:list-level-style-bullet>\Hnewline
  <text:list-level-style-bullet
      text:level="4" 
      text:bullet-char="\string&\:sharp x25AB;" >\Hnewline
     <style:properties 
       text:space-before="0.5909inch" 
       text:min-label-width="0.6965inch"/>\Hnewline
  </text:list-level-style-bullet>\Hnewline
</text:list-style>\Hnewline
>>>

\<oo+ itemize style rtl\><<<
<style:style style:name="Inside itemize rtl"
    style:family="paragraph" 
    style:list-style-name="Itemize rtl">\Hnewline
 <style:properties
    fo:text-align="end"
    style:justify-single-word="false"
    style:writing-mode="rl-tb"/>\Hnewline
</style:style>\Hnewline
>>>


\<oo+ enumerate style rtl\><<<
<text:list-style style:name="Enumerate rtl">\Hnewline
   <text:list-level-style-number 
      text:level="1" 
      text:style-name="Numbering Symbols" 
      style:num-suffix="." 
      style:num-format="1">\Hnewline
     <style:properties 
        text:space-before="0.15inch" 
        text:min-label-distance="0.05inch"/>\Hnewline
   </text:list-level-style-number>\Hnewline
   <text:list-level-style-number
      text:level="2"
      style:num-suffix="."
      style:num-format="a">\Hnewline
     <style:properties
       text:space-before="0.1972inch"
       text:min-label-width="0.2965inch"/>\Hnewline
   </text:list-level-style-number>\Hnewline
   <text:list-level-style-number
      text:level="3"
      style:num-suffix="." 
      style:num-format="i">\Hnewline
     <style:properties
       text:space-before="0.3937inch"
       text:min-label-width="0.4965inch"/>\Hnewline
   </text:list-level-style-number>\Hnewline
   <text:list-level-style-number
      text:level="4" 
      style:num-suffix="." 
      style:num-format="A">\Hnewline
     <style:properties 
       text:space-before="0.5909inch" 
       text:min-label-width="0.6965inch"/>\Hnewline
   </text:list-level-style-number>\Hnewline
</text:list-style>\Hnewline
>>>

\<oo+ enumerate style rtl\><<<
<style:style style:name="Inside enumerate rtl"
   style:family="paragraph" 
   style:list-style-name="Enumerate rtl">\Hnewline
 <style:properties
      fo:text-align="end"
      style:justify-single-word="false" 
      style:writing-mode="rl-tb"/>\Hnewline
</style:style>\Hnewline
>>>




%%%%%%%%%%%%%%%%%%
\section{Sectioning}
%%%%%%%%%%%%%%%%%%



\<Heading 1 rtl\><<<
<style:style style:name="Heading 1 rtl"
                  style:family="paragraph"
                  style:parent-style-name="Heading rtl"
                  style:next-style-name="Text body rtl"
                  style:class="text">\Hnewline
<style:properties fo:font-size="17.2999992370605pt"
                  fo:font-weight="bold"
                  style:font-size-asian="115\%"
                  style:font-weight-asian="bold"
                  style:font-size-complex="115\%"
                  style:font-weight-complex="bold"
                  fo:text-align="end" 
                  style:justify-single-word="false"
                  style:writing-mode="rl-tb" />
</style:style>
\Hnewline
>>>




\<Heading 2 rtl\><<<
<style:style style:name="Heading 2 rtl"
                  style:family="paragraph"
                  style:parent-style-name="Heading"
                  style:next-style-name="Text body"
                  style:class="text">\Hnewline
<style:properties fo:font-size="14.3999996185303pt"
                  style:font-size-complex="14pt"
                  style:font-style-complex="italic"
                  style:font-weight-complex="bold"
                  fo:margin-top="0.42cm"
                  fo:margin-bottom="0cm"
                  fo:text-align="end" 
                  style:justify-single-word="false"
                  style:writing-mode="rl-tb" />
</style:style>
\Hnewline
>>>



\<Heading 3 rtl\><<<
<style:style style:name="Heading 3 rtl"
                  style:family="paragraph"
                  style:parent-style-name="Heading rtl"
                  style:next-style-name="Text body rtl"
                  style:class="text">\Hnewline
<style: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:text-align="end" 
                  style:justify-single-word="false"
                  style:writing-mode="rl-tb" />
</style:style>
\Hnewline
>>>


\<Heading 4 rtl\><<<
<style:style style:name="Heading 4 rtl"
                  style:family="paragraph"
                  style:parent-style-name="Heading rtl"
                  style:next-style-name="Text body rtl"
                  style:class="text">\Hnewline
<style:properties fo:font-size="12pt"
                  fo:font-weight="bold"
                  fo:margin-top="0.42cm"
                  fo:margin-bottom="0cm"
                  style:font-size-complex="85\%"
                  style:font-style-complex="italic"
                  style:font-weight-complex="bold"
                  fo:text-align="end" 
                  style:justify-single-word="false"
                  style:writing-mode="rl-tb" 
/>
</style:style>
\Hnewline
>>>


\<Heading 5 rtl\><<<
<style:style style:name="Heading 5 rtl"
                  style:family="paragraph"
                  style:parent-style-name="Heading"
                  style:next-style-name="Text body"
                  style:class="text">\Hnewline
<style:properties fo:margin-left="0cm"
                  fo:margin-right="0cm"
                  fo:margin-top="0.42cm"
                  fo:margin-bottom="0cm"
                  fo:font-size="12pt"
                  fo:font-style="italic"
                  fo:font-weight="normal"
                  style:font-size-complex="85\%"
                  style:font-weight-complex="bold"
                  fo:text-indent="0cm"
                  style:auto-text-indent="false"
                  fo:text-align="end" 
                  style:justify-single-word="false"
                  style:writing-mode="rl-tb" />
</style:style>
\Hnewline
>>>



\<Heading 6 rtl\><<<
<style:style style:name="Heading 6 rtl"
                  style:family="paragraph"
                  style:parent-style-name="Heading rtl"
                  style:next-style-name="Text body rtl"
                  style:class="text">\Hnewline
<style:properties fo:font-size="75\%"
                  fo:font-weight="bold"
                  style:font-size-asian="75\%"
                  style:font-weight-asian="bold"
                  style:font-size-complex="75\%"
                  style:font-weight-complex="bold"
                  fo:text-align="end" 
                  style:justify-single-word="false"
                  style:writing-mode="rl-tb" />
</style:style>
\Hnewline
>>>



\<Heading 7 rtl\><<<
<style:style style:name="Heading 7 rtl"
                  style:family="paragraph"
                  style:parent-style-name="Heading rtl"
                  style:next-style-name="Text body rtl"
                  style:class="text">\Hnewline
<style:properties fo:font-size="75\%"
                  fo:font-weight="bold"
                  style:font-size-asian="75\%"
                  style:font-weight-asian="bold"
                  style:font-size-complex="75\%"
                  style:font-weight-complex="bold"
                  fo:text-align="end" 
                  style:justify-single-word="false"
                  style:writing-mode="rl-tb" />
</style:style>
\Hnewline
>>>


\<Heading 8 rtl\><<<
<style:style style:name="Heading 8 rtl"
                  style:family="paragraph"
                  style:parent-style-name="Heading rtl"
                  style:next-style-name="Text body rtl"
                  style:class="text">\Hnewline
<style:properties fo:font-size="75\%"
                  fo:font-weight="bold"
                  style:font-size-asian="75\%"
                  style:font-weight-asian="bold"
                  style:font-size-complex="75\%"
                  style:font-weight-complex="bold"
                  fo:text-align="end" 
                  style:justify-single-word="false"
                  style:writing-mode="rl-tb" />
</style:style>
\Hnewline
>>>



\<Heading 9 rtl\><<<
<style:style style:name="Heading 9 rtl"
                  style:family="paragraph"
                  style:parent-style-name="Heading"
                  style:next-style-name="Text body"
                  style:class="text">\Hnewline
<style:properties fo:font-size="75\%"
                  fo:font-weight="bold"
                  style:font-size-asian="75\%"
                  style:font-weight-asian="bold"
                  style:font-size-complex="75\%"
                  style:font-weight-complex="bold"
                  fo:text-align="end" 
                  style:justify-single-word="false"
                  style:writing-mode="rl-tb" />
</style:style>
\Hnewline
>>>


\<Heading 10 rtl\><<<
<style:style style:name="Heading 10 rtl"
                  style:family="paragraph"
                  style:parent-style-name="Heading rtl"
                  style:next-style-name="Text body rtl"
                  style:class="text">\Hnewline
<style:properties fo:font-size="75\%"
                  fo:font-weight="bold"
                  style:font-size-asian="75\%"
                  style:font-weight-asian="bold"
                  style:font-size-complex="75\%"
                  style:font-weight-complex="bold"/>
</style:style>
\Hnewline
>>>

%%%%%%%%%%%%%%%%%%
\section{Verbatim}
%%%%%%%%%%%%%%%%%%



\<Preformatted Text rtl\><<<
<style:style style:name="Preformatted Text rtl" 
             style:family="paragraph"
             style:parent-style-name="Standard">\Hnewline
   <style:properties
      fo:font-family="monospace"
%      fo:wrap-option="no-wrap"
      style:font-name="Courier"
      fo:margin-top="0.2cm" 
      fo:margin-bottom="0.2cm" 
      fo:text-indent="0cm"
                  fo:text-align="end" 
                  style:justify-single-word="false"
                  style:writing-mode="rl-tb" 
   />\Hnewline
</style:style>\Hnewline  
>>>


%%%%%%%%%%%%%%%%%%
\section{Paragraphs}
%%%%%%%%%%%%%%%%%%


\<First line indent rtl\><<<
<style:style style:name="First line indent rtl"
                  style:family="paragraph"
                  style:parent-style-name="Text body"
                  style:class="text">\Hnewline
<style:properties fo:margin-left="0cm"
                  fo:margin-right="0cm"
                  fo:text-indent="0.499cm"
                  style:auto-text-indent="false"
                  fo:text-align="end" 
                  style:justify-single-word="false"
                  style:writing-mode="rl-tb"  />
</style:style>\Hnewline
>>>


\<Text body rtl\><<<
<style:style style:name="Text body rtl"
                  style:family="paragraph"
                  style:parent-style-name="Standard"
                  style:next-style-name="First line indent"
                  style:class="text"
                  style:master-page-name="">\Hnewline
<style:properties fo:margin-top="0cm"
                  fo:margin-bottom="0cm"
                  fo:line-height="120\%"
                  style:justify-single-word="false"
                  fo:hyphenate="true"
                  fo:hyphenation-remain-char-count="2"
                  fo:hyphenation-push-char-count="2"
                  fo:hyphenation-ladder-count="no-limit"
                  style:page-number="0"
                  fo:text-align="end" 
                  style:writing-mode="rl-tb"  />
</style:style>
\Hnewline
<style:style style:name="Like Text body rtl"
                  style:family="paragraph"
                  style:parent-style-name="Standard"
                  style:next-style-name="First line indent"
                  style:class="text"
                  style:master-page-name="">\Hnewline
<style:properties fo:margin-top="0cm"
                  fo:margin-bottom="0cm"
                  fo:line-height="120\%"
                  style:justify-single-word="false"
                  fo:hyphenate="true"
                  fo:hyphenation-remain-char-count="2"
                  fo:hyphenation-push-char-count="2"
                  fo:hyphenation-ladder-count="no-limit"
                  style:page-number="0"                  
                  fo:text-align="end" 
                  style:writing-mode="rl-tb"  />
</style:style>
\Hnewline
>>>



\<p-nopar rtl\><<<
    <style:style style:name="p-nopar rtl" 
         style:family="paragraph" 
         style:parent-style-name="Text body">\Hnewline
      <style:properties 
         style:auto-text-indent="false"
         fo:margin-top="0.3cm" 
         fo:margin-bottom="0.3cm"
         style:justify-single-word="false"
         fo:text-align="end" 
         style:writing-mode="rl-tb"  />\Hnewline
    </style:style>\Hnewline
>>>


%%%%%%%%%%%%%%%%%%
\section{List-Based Environments}
%%%%%%%%%%%%%%%%%%



\<quote trl\><<<
<style:style style:name="quote trl"
             style:family="paragraph"
             style:parent-style-name="Text body trl"
             style:next-style-name="Text body trl">\Hnewline
<style:properties fo:margin-left="1cm"
             fo:margin-right="1cm"
             fo:margin-top="0.199cm"
             fo:margin-bottom="0.199cm"
             fo:text-indent="0cm"
             style:auto-text-indent="false"
             fo:text-align="end" 
             style:writing-mode="rl-tb"  />\Hnewline
</style:style>
\Hnewline
>>>


\<quotation rtl\><<<
      <style:style style:name="quotation rtl"
                   style:family="paragraph" 
                   style:parent-style-name="Standard">\Hnewline
        <style:properties
                   fo:margin-left="1cm"
                   fo:margin-right="1cm"
                   fo:margin-top="0cm"
                   fo:margin-bottom="0cm"
                   fo:text-indent="0.499cm"
                   style:auto-text-indent="true"
                   fo:text-align="end" 
                   style:writing-mode="rl-tb" />\Hnewline
      </style:style>\Hnewline
>>>





%%%%%%%%%%%%%%%%%%
\section{Math}
%%%%%%%%%%%%%%%%%%



\<mathml rlbabel\><<<
\if@rl\else\beginR\fi
>>>


%%%%%%%%%%%%%%%%%%
\chapter{Math}
%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%
\section{Envelops}
%%%%%%%%%%%%%%%%%%

\<configure mathml rlbabel\><<<
\Configure{[]}
  {\Configure{@math}{|<block display|>}\csname a:mathml[]\endcsname
   \DviMath\Tg<\a:mathml mrow\Hnewline>$$\DisplayMathtrue }
  {$$\Tg</\a:mathml mrow>\EndDviMath\csname b:mathml[]\endcsname
   |<mathml rlbabel|> }
>>>


\<block display\><<<
\a:mathml display="block" 
>>>


\<inline display\><<<
\a:mathml display="inline"
>>>



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Underline and Overline}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<configure ooffice-mml latex\><<<
\Configure{overline}
   {\bgroup\ifmathml |<mathml overline|>\else
         \HCode{<text:span text:style-name="overline">}\fi}
   {\ifmathml |<end mathml overline|>\else \HCode{</text:span>}\fi\egroup}
\Configure{underline}
   {\bgroup
    \ifmathml |<mathml underline|>%
    \else |<nomath underline|>\HCode{<text:span text:style-name="underline">}\fi}
   {\ifmathml |<end mathml underline|>\else \HCode{</text:span>}\fi \egroup}
>>>



\<mathml overline\><<<
\HCode{<\a:mathml mover  accent="false"\Hnewline
\mml:class="mml-overline"><\a:mathml mrow>}%
>>>

\<end mathml overline\><<<
\HCode{</\a:mathml mrow><\a:mathml mo\Hnewline
 accent="true">&\#x00AF;</\a:mathml mo>%    
</\a:mathml mover>}%
>>>


\<mathml underline\><<<
\HCode{<\a:mathml munder \a:mathml accentunder="false"\Hnewline
\mml:class="mml-underline"><\a:mathml mrow>}% 
>>>

\<nomath underline\><<<
\expandafter\everymath
\expandafter{\expandafter\everymath
             \expandafter{\the\everymath}}%
\let\o::@underline:\o:@@underline:
\def\o:@@underline:{\let\o:@@underline:\o::@underline:}%
>>>

\<end mathml underline\><<<
\HCode{</\a:mathml mrow><\a:mathml mo\Hnewline
accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
>>>



\<configure ooffice fontmath\><<<
\NewConfigureOO{overline}
\ConfigureOO{overline}{|<oo overline style|>}
\NewConfigureOO{underline}
\ConfigureOO{underline}{|<oo underline style|>}
>>>

\<oo underline style\><<<
<style:style style:name="underline" style:family="text">
   <style:properties style:text-underline="single" />
</style:style>
>>>

Overline??

\<oo overline style\><<<
<style:style style:name="overline" style:family="text">
   <style:properties style:text-underline="dotted" />
</style:style>
>>>


%%%%%%%%%%%%%%%%%%
\section{mfenced}
%%%%%%%%%%%%%%%%%%

OO doesn't seem to hono mfenced 

\begin{verbatim}
\documentclass{article} 
\begin{document} 
\[ 
\sin\left(x\right)\] 
\end{document} 
\end{verbatim}

\<configure ooffice-mml latex\><<<
|<mfenced patches|>
>>>

\<configure ooffice-mml plain\><<<
|<mfenced patches|>
>>>

\<mfenced patches\><<<
\Configure{left}
   {}
   {\HCode{<\a:mathml mrow><\a:mathml mo>\expandafter
         \ifx \csname \string#1:lr del\endcsname\relax #1\else
              \csname \string#1:lr del\endcsname\fi
         </\a:mathml mo\space><\a:mathml mrow>}}
\Configure{right}
   {\HCode{</\a:mathml mrow><\a:mathml mo>\expandafter
       \ifx \csname \string#1:lr del\endcsname\relax #1\else
            \csname \string#1:lr del\endcsname\fi
      </\a:mathml mo>}}
   {\HCode{</\a:mathml mrow>}}
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Notes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




%%%%%%%%%%%%%%%%%%%%%%
\section{Instructions}
%%%%%%%%%%%%%%%%%%%%%%

\begin{itemize}

\item Execution script:

\begin{verbatim}

oolatex $1 "html,ooffice"
#
# zip $1.sxw ($1-)content.xml ($1-)styles.xml
#
mkdir $1.dir
cp $1.xml $1.dir/content.xml
cp $1-styles.xml $1.dir/styles.xml
cd $1.dir ; zip $1.sxw * ; cd ..
mv $1.dir/$1.sxw .
rm $1.dir/*
rmdir $1.dir
\end{verbatim}

% cp $1.sxw /n/gold/5/gurari/WWW/temp/.
% chmod 644 /n/gold/5/gurari/WWW/temp/$1.sxw


The compilation of foo.tex by oolatex produces foo-content.xml and
foo-styles.xml (and in the future is expected to produce also other
files).  The above files need to be zipped into foo.sxw, after
removing the fo- prefix from their names.

To protect from name collisions between compilations running in
parallel, the name changes and zipping of files are done within a
temporary directory of distinguished name.


\item OpenOffice : 
  \href{http://books.evc-cit.info/}{OpenOffice.org XML Essentials} book,
  \href{http://xml.openoffice.org/xml_specification.pdf}{OpenOffice.org XML 
   File Format
     1.0} Technical Reference Manual Version 2 December 2002,
  \href{http://www.xml.com/pub/a/2001/02/07/openoffice.html}{Adventures
    with OpenOffice and XML} (Matt Sergeant ),
  \href{http://xml.openoffice.org/}{home page},
  \href{http://www.ccsd1.k12.wy.us/Training/Help_Desk/StarOffice/816-7367.pdf}{user's
    guide},
  \href{http://xml.coverpages.org/OpenOfficeXMLSpec200207.pdf}{Technical
    reference},
  \href{http://ooo.ximian.com/lxr/source/xml/xmloff/dtd/}{some online
    dtds}

\item
Publication:
Maarten Wisse, "Hacking TEX4ht for XML Output: The Road towards a TEX
to Word Convertor", MAPS 28 (2002), pp. 28-35.
(\url{http://home.wanadoo.nl/pmwisse/hpmwissese3.html}.)

\item Samples: 
   \url{http://www.xml.com/2001/02/07/adventure.sxw},
   \url{http://cvs.berlios.de/cgi-bin/viewcvs.cgi/od2f/study/content.xml?annotate=1.2}

\item
\url{http://www.oasis-open.org/committees/download.php/10765/office-spec-1.0-cd-2.pdf}
\url{http://xml.coverpages.org/ni2005-01-04-a.htm}

\end{itemize}

%%%%%%%%%%%%%%%%%%%
\section{To Do}
%%%%%%%%%%%%%%%%%%%

\begin{itemize}
\item Activate groups of columns?
\item Vertical Borders

Why the following doesn't work?

\begin{verbatim}
\OOstyles{%
  <style:style style:name="hline-cell" style:family="table-cell">
     <style:properties fo:padding="0.097cm"
                       fo:border-left="none"
                       fo:border-right="none"
                       fo:border-top="none"
                       fo:border-bottom="0.002cm solid \#000000"/>
  </style:style>
}
\end{verbatim}
  
\item Margins on sides of tables
\end{itemize}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Writer2LaTeX}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{verbatim}
Another thing with built-in styles in OOo: You use the style "Quotations",
but the definition is not included in styles.xml. This is not a problem
for OOo, but it will be a problem for other applications reading the file
(Writer2LaTeX, KWord,...). To fix that you should always include the
definition of a style.


w2l in-file
\end{verbatim}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Supporting Files}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{verbatim}
The .sxw file is a .JAR file (which is basically the same as a .ZIP file). 

The manifest.xml file is the difference between .ZIP and .JAR,
apparently. It makes searching the files easier, and the documentation
claims that this file is uncompressed, so that it can be easily
read. I have not tested this, but it seems like a good idea.

content.xml - the text of the document 
styles.xml - the styles used by the document 
meta.xml - various meta-information (author, etc) 
settings.xml - the Word Processor settings used. 
META-INF/manifest.xml - a list of all these files, plus any others used in the document 

\end{verbatim}

%%%%%%%%%%%%%%%%%%
\section{Test File}
%%%%%%%%%%%%%%%%%%

\<\><<<
\documentclass{article}

\usepackage{makeidx}
\makeindex

\begin{document}

\title{This is a sample article}
\author{The author's name}

\maketitle

\begin{abstract}
This is a sample article, it contains a proposed representation of a
LaTeX article in OOo.  
\end{abstract}



\tableofcontents

\part{This is the first part}

Some text.

Some text.

\section{This is the first section}

Some text.

\subsection{This is the first subsection}

Some text.

\subsubsection{This is the first subsubsection}

Some text.

\paragraph{This is the first paragraph}

Some text.


\subparagraph{This is the first subparagraph}

Some text.


\section{Another section in the first part}

\part{This is another part}

\section{This is yet another section}

%%%%%%%%%%%%%
\subsection{This subsection contains some paragraph styles}
%%%%%%%%%%%%%


\begin{quotation}
This is a quotation. This is a quotation. This is a quotation. This is
a quotation. This is a quotation. This is a quotation. This is a
quotation. 

This is a quotation. This is a quotation. This is a
quotation. 
\end{quotation}

\begin{quote}
This is a quote. This is a quote. This
is a quote. This is a quote. This is a quote. This is a quote. This is
a quote. This is a quote. 

This is a quote. This is a quote. This is a
quote. This is a quote.
\end{quote}


\begin{verse}
This is a verse. This is a verse. This
is a verse. This is a verse. This is a verse. This is a verse. This is
a verse. This is a verse. This is a verse.

 This is a verse. This is a
verse. This is a verse. This is a verse.
\end{verse}

\begin{flushleft}
This is flushleft. This is
flushleft. This is flushleft. This is flushleft. This is
flushleft. This is flushleft. This is flushleft. This is
flushleft. This is flushleft. This is flushleft.

 This is
flushleft. This is flushleft. This is flushleft.

\end{flushleft}

\begin{center}
This is center. This is center. This
is center. This is center. This is center. This is center. This is
center. This is center. This is center. This is center.

There are two paragraphs in this
center environment.
\end{center}


\begin{flushright}
This is flushright. This is
flushright. This is flushright. This is flushright. This is
flushright.

 This is flushright. This is flushright. This is
flushright.
\end{flushright}



\begin{verbatim}
This is verbatim. This is 
verbatim. This is verbatim. This is verbatim.

 This is verbatim. This 
is verbatim.  
\end{verbatim}

%%%%%%%%%%%%%
\subsection{This subsection contains some text styles}
%%%%%%%%%%%%%

Font switching:  

\textrm{textrm}

\textsf{textsf}

\texttt{texttt}

\textbf{textbf}

\textit{textit}

\textsl{textsl}

\textsc{textsc}

\emph{emph}

no verb \verb+verb verb+ no verb

Font size:  

{\Huge Huge}

{\huge huge}

{\LARGE LARGE}

{\Large Large}

{\large large}

{\normalsize normalsize}

{\small small}

{\footnotesize footnotesize}

% {\sciptsize sciptsize}

{\tiny tiny}



%%%%%%%%%%%%%
\subsection{This subsection contains some words for the alphabetical index}
%%%%%%%%%%%%%



Some text. 

First  \index{example}example.

Second \index{second example}example.

Third
\index{first key!third example}example.

Fourth \index{the first key!the second key!fourth example}example.

Some more text.

\printindex{}


\end{document}
>>>

\endinput







