<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% $Id: tex4ht-word.tex 65 2010-11-17 19:16:45Z karl $
% compile 3 times:     latex   tex4ht-word   
%                  or  xhlatex tex4ht-word "html,3,sections+"

% Copyright (C) 2009-2010 TeX Users Group
% Copyright (C) 2000-2009 Eitan M. Gurari
% Released under LPPL 1.3c+.
% See tex4ht-cpright.tex for license text.

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

\ifx \HTML\UnDef
   \def\HTML{htmlw}                   
   \def\CONFIG{\jobname}
   \def\MAKETITLE{\author{Eitan M. Gurari}}         
   \def\next{\input mktex4ht.4ht  \endinput}
   \expandafter\next
\fi

\input{common.tex}
\input{tex4ht-cpright.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Preamble}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\&lt;htmlw\&gt;&lt;&lt;&lt;
% htmlw.4ht (|version), generated from |jobname.tex
% Copyright (C) 2009-2010 TeX Users Group
% Copyright (C) |CopyYear.2000. Eitan M. Gurari
|&lt;TeX4ht copywrite|&gt;
&gt;&gt;&gt;



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{General}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\&lt;configure htmlw tex4ht\&gt;&lt;&lt;&lt;
% \Configure{Picture}{.wmf}
&gt;&gt;&gt;

\&lt;configure htmlw latex\&gt;&lt;&lt;&lt;
\Css{body {text-align:both;}}
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Char Set}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\&lt;configure htmlw babel\&gt;&lt;&lt;&lt;
\def\:temp#1#2{%
   \def\:tempa{#1}\ifx \languagename\:tempa
      \def\A:charset{#2}\ifx \A:charset\empty\else
          \def\A:charset{charset=#2}%
   \fi\fi}
\:temp{afrikaans}{windows-1252}
\:temp{arabic}{windows-1256}
\:temp{austrian}{windows-1252}
\:temp{brazilian}{windows-1252}
\:temp{brazil}{windows-1252}
\:temp{catalan}{windows-1252}
\:temp{croatian}{windows-1251}
\:temp{czech}{windows-1251}
\:temp{danish}{windows-1252}
\:temp{dutch}{windows-1252}
\:temp{estonian}{windows-1251}
\:temp{finnish}{windows-1252}
\:temp{francais}{windows-1252}
\:temp{frenchb}{windows-1252}
\:temp{french}{windows-1252}
\:temp{galician}{windows-1252}
\:temp{germanb}{windows-1252}
\:temp{german}{windows-1252}
\:temp{greek}{windows-1253}
\:temp{hebrew}{windows-1255}
\:temp{hungarian}{windows-1250}
\:temp{ngerman}{windows-1252}
\:temp{norsk}{windows-1252}
\:temp{nynorsk}{windows-1252}
\:temp{polish}{windows-1252}
\:temp{polutonikogreek}{windows-1253}
\:temp{portuges}{windows-1252}
\:temp{portuguese}{windows-1252}
\:temp{romanian}{windows-1250}
\:temp{russian}{windows-1251}
\:temp{scottish}{windows-1252}
\:temp{slovak}{windows-1250}
\:temp{slovene}{windows-1250}
\:temp{spanish}{windows-1252}
\:temp{swedish}{windows-1252}
\:temp{ukrainian}{windows-1251}
\:temp{uppersorbian}{windows-1252}
\:temp{welsh}{windows-1252}
&gt;&gt;&gt;


\&lt;configure htmlw austrian\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw catalan\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw croatian\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1251}
&gt;&gt;&gt;
\&lt;configure htmlw czech\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1251}
&gt;&gt;&gt;
\&lt;configure htmlw danish\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw dutch\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw english\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1251}
&gt;&gt;&gt;
\&lt;configure htmlw estonian\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1251}
&gt;&gt;&gt;
\&lt;configure htmlw finnish\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw francais\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw galician\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw germanb\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw greek\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1253}
&gt;&gt;&gt;
\&lt;configure htmlw hebrew\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1255}
&gt;&gt;&gt;
\&lt;configure htmlw ngermanb\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw norsk\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw polish\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw portuges\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw romanian\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1250}
&gt;&gt;&gt;
\&lt;configure htmlw russianb\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1251}
&gt;&gt;&gt;
\&lt;configure htmlw scottish\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw slovak\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1250}
&gt;&gt;&gt;
\&lt;configure htmlw slovene\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1250}
&gt;&gt;&gt;
\&lt;configure htmlw spanish\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw swedish\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw ukraineb\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1251}
&gt;&gt;&gt;
\&lt;configure htmlw usorbian\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;
\&lt;configure htmlw welsh\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}
&gt;&gt;&gt;


\&lt;configure htmlw hebtex\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1255}
&gt;&gt;&gt;

\&lt;configure htmlw exerquiz\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252}  
&gt;&gt;&gt;


\&lt;configure htmlw tex4ht\&gt;&lt;&lt;&lt;
\def\A:charset{charset=windows-1252} 
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Etc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%





\&lt;configure htmlw alphanum\&gt;&lt;&lt;&lt;
\Configure{toclvld}
   {}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{&lt;p class="MsoHeading6"&gt;}\TitleMark\space\HtmlParOff}
   {\HCode{&lt;/p&gt;}\HtmlParOn \IgnoreIndent \par}
\Configure{toclvle}
   {}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{&lt;p class="MsoHeading7"&gt;}\TitleMark\space\HtmlParOff}
   {\HCode{&lt;/p&gt;}\HtmlParOn \IgnoreIndent \par}
\Configure{toclvlf}
   {}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{&lt;p class="MsoHeading8"&gt;}\TitleMark\space\HtmlParOff}
   {\HCode{&lt;/p&gt;}\HtmlParOn \IgnoreIndent \par}
\Configure{toclvlg}
   {}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{&lt;p class="MsoHeading9"&gt;}\TitleMark\space\HtmlParOff}
   {\HCode{&lt;/p&gt;}\HtmlParOn \IgnoreIndent \par}
\Configure{toclvlh}
   {}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{&lt;p class="MsoHeading10"&gt;}\TitleMark\space\HtmlParOff}
   {\HCode{&lt;/p&gt;}\HtmlParOn \IgnoreIndent \par}
\Configure{toclvli}
   {}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{&lt;p class="MsoHeading11"&gt;}\TitleMark\space\HtmlParOff}
   {\HCode{&lt;/p&gt;}\HtmlParOn \IgnoreIndent \par}
\Configure{toclvlj}
   {}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{&lt;p class="MsoHeading12"&gt;}\TitleMark\space\HtmlParOff}
   {\HCode{&lt;/p&gt;}\HtmlParOn \IgnoreIndent \par}
\Configure{toclvlk}
   {}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{&lt;p class="MsoHeading13"&gt;}\TitleMark\space\HtmlParOff}
   {\HCode{&lt;/p&gt;}\HtmlParOn \IgnoreIndent \par}
\Configure{toclvll}
   {}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{&lt;p class="MsoHeading14"&gt;}\TitleMark\space\HtmlParOff}
   {\HCode{&lt;/p&gt;}\HtmlParOn \IgnoreIndent \par}

\Css{p.MsoHeading6 {margin-top:12.0pt;
                    margin-right:0cm;
                    margin-bottom:3.0pt;
                    margin-left:0cm;
                    font-size:11.0pt;}}
\Css{p.MsoHeading7 {margin-top:12.0pt;
                    margin-right:0cm;
                    margin-bottom:3.0pt;
                    margin-left:0cm;
                    font-size:12.0pt;}}
\Css{p.MsoHeading8 {margin-top:12.0pt;
                    margin-right:0cm;
                    margin-bottom:3.0pt;
                    margin-left:0cm;
                    font-size:12.0pt;
                    font-style:italic;}}
\Css{p.MsoHeading9 {margin-top:12.0pt;
                    margin-right:0cm;
                    margin-bottom:3.0pt;
                    margin-left:0cm;
                    font-size:11.0pt;
                    font-family:Arial;}}
&gt;&gt;&gt;



\begin{verbatim}
&gt;&gt; But they should go for h6, h7, h8 ... (which is not the case now).

EG&gt; But HTML does not recognize h* tags besides h1--h5. What we can do is
EG&gt; to set diffent CSS code there--however, I didn't see differents in
EG&gt; fonts there. -eitan

This is true as far as plain html is concerned. But you can use higher
h? if you are planning to convert to *.doc because word interprets h1 as
heading 1 or h9 as heading 9 (presumably) as long as they are defined in
normal.dot.

EG&gt; Do you know how can I inspect the content of that file? Under
EG&gt; emacs it all looks like junk. -eitan

Which file do you mean? --- I suppose normal.dot. I do not think that
there is a possibility to view that file (apart from looking at it
with an hex editor).

But you can see the result quite easily if you produce an html-file
with several headings (lets say h1 to h9) and load that file into
word. After saving that file in a word format (*.doc) you will realize
that your headings are assigned to word's styles Heading 1 to Heading
9. Start then a new document with a different template. Let's say
thesis. Copy the hole text by Edit/Select All, Edit/Copy and Edit/Paste
into the new document. Then you will realize that all headings are
formated according to the heading styles of the thesis template.

This feature makes tex4ht even more interesting for converting
latex to word. Because you can write your texts with latex, convert
them to word and use then a template which is given to you by your
publisher. Unfortunately, German publishers do that quite often now
because nearly 90 % of all German lawyers are using word for writing
their essays these days.
\end{verbatim}





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Plain Footnotes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\&lt;configure htmlw plain\&gt;&lt;&lt;&lt;
\:CheckOption{fn-in}\if:Option  
   |&lt;inline footnote plain|&gt;
   |&lt;inline footnote css|&gt;
\fi
&gt;&gt;&gt;

\&lt;inline footnote plain\&gt;&lt;&lt;&lt;
\Configure{vfootnote}
  {|&lt;mark inline vfootnote|&gt;}
  {|&lt;open inline vfootnote|&gt;}
  {|&lt;close inline vfootnote|&gt;}
\Css{span.MsoFootnoteReference {vertical-align:super;}}
&gt;&gt;&gt;

\&lt;mark inline vfootnote\&gt;&lt;&lt;&lt;
\Link{fn\FNnum}{fn\FNnum-bk}\HCode{&lt;span class="MsoFootnoteReference"&gt;}%
  \ifx \FNmark\empty +\else \FNmark\fi\HCode{&lt;/span&gt;}\EndLink
&gt;&gt;&gt;



\&lt;open inline vfootnote\&gt;&lt;&lt;&lt;
|&lt;open inline footnote box|&gt;
   \Link{fn\FNnum-bk}{fn\FNnum}\HCode{&lt;span class="MsoFootnoteReference"&gt;}%
   \ifx \FNmark\empty +\else \FNmark\fi
   \space\HCode{&lt;/span&gt;}\EndLink
&gt;&gt;&gt;

\&lt;close inline vfootnote\&gt;&lt;&lt;&lt;
|&lt;close inline footnote box|&gt;
&gt;&gt;&gt;  

\&lt;footnote par\&gt;&lt;&lt;&lt;
\Configure{HtmlPar}
  {\EndP\HCode{&lt;!--l. \the\inputlineno--&gt;}\HCode{&lt;p 
         \csname a:!P\endcsname class="MsoFootnoteText"&gt;}}
  {\EndP\HCode{&lt;!--l. \the\inputlineno--&gt;}\HCode{&lt;p
         \csname a:!P\endcsname class="MsoFootnoteText"&gt;}}
  {\:xhtml{\Tg&lt;/p&gt;}}
  {\:xhtml{\Tg&lt;/p&gt;}}
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Latex Footnotes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\&lt;configure htmlw Preamble\&gt;&lt;&lt;&lt;    
\:CheckOption{fn-out}\if:Option \else
   \Log:Note{for offline footnotes use
          command line option `fn-out'}
   \edef\Preamble{\Preamble,fn-in} 
\fi
&gt;&gt;&gt;



\&lt;configure htmlw latex\&gt;&lt;&lt;&lt;
\:CheckOption{fn-in}\if:Option  
   |&lt;inline footnote mark|&gt;
   |&lt;inline footnote text|&gt;
   |&lt;inline footnote css|&gt;
\fi
&gt;&gt;&gt;


\&lt;inline footnote mark\&gt;&lt;&lt;&lt;
\Configure{footnotemark}
   {\leavevmode |&lt;inline fn mark /Link|&gt;%
    \NoFonts
    \Tag{|&lt;footnote id|&gt;}{}}
   {\EndNoFonts
    |&lt;end inline fn mark /Link|&gt;%
    \expandafter\global\expandafter
       \let\csname (|&lt;footnote id|&gt;-bk)\endcsname\def}
&gt;&gt;&gt;


\&lt;inline footnote text\&gt;&lt;&lt;&lt;
\Configure{footnotetext}
   {|&lt;open inline footnote box|&gt;%
    \leavevmode |&lt;inline fn text /Link|&gt;%
    \NoFonts
    \Tag{|&lt;footnote id|&gt;-bk}{}
   }
   {\EndNoFonts |&lt;end inline fn text /Link|&gt;}
   {\expandafter\global\expandafter
       \let\csname (|&lt;footnote id|&gt;)\endcsname\def
    |&lt;close inline footnote box|&gt;}
&gt;&gt;&gt;



\&lt;open inline footnote box\&gt;&lt;&lt;&lt;
\SaveEndP\global\setbox\fn:box=\vtop\bgroup\ShowPar
   |&lt;footnote par|&gt;%
   \ifvoid\fn:box\else  \csname unvbox\endcsname\fn:box\fi
&gt;&gt;&gt;

\&lt;close inline footnote box\&gt;&lt;&lt;&lt;
\EndP\egroup\RecallEndP
&gt;&gt;&gt;  






\&lt;inline fn text /Link\&gt;&lt;&lt;&lt;
\ifTag{|&lt;footnote id|&gt;}
   {\expandafter\ifx\csname (|&lt;footnote id|&gt;)\endcsname\def
      \Link{|&lt;footnote id|&gt;-bk}{}%       
      \HCode{&lt;span class="MsoFootnoteReference"&gt;}%
    \else
      \Link{|&lt;footnote id|&gt;-bk}{|&lt;footnote id|&gt;}%
      \HCode{&lt;span class="MsoFootnoteReference"&gt;}%
    \fi
   }
   {\expandafter\ifx\csname (|&lt;footnote id|&gt;)\endcsname\def
    \else
      \Link{}{|&lt;footnote id|&gt;}%
      \HCode{&lt;span class="MsoFootnoteReference"&gt;}%
    \fi
   }%
&gt;&gt;&gt;

\&lt;end inline fn text /Link\&gt;&lt;&lt;&lt;
\ifTag{|&lt;footnote id|&gt;}
   {\space\HCode{&lt;/span&gt;}\EndLink
   }
   {\expandafter\ifx\csname (|&lt;footnote id|&gt;)\endcsname\def
    \else
       \space\HCode{&lt;/span&gt;}\EndLink
    \fi
   }%
&gt;&gt;&gt;



\&lt;mouseover inline fn mark /Link\&gt;&lt;&lt;&lt;
|&lt;start js|&gt;%
\ifTag{|&lt;footnote id|&gt;-bk}
   {\expandafter\ifx\csname (|&lt;footnote id|&gt;-bk)\endcsname\def
      \Link[ |&lt;mouseover-footnote arguments|&gt;\Hnewline
                    ]{|&lt;footnote id|&gt;}{}%       
    \else
      \Link[ |&lt;mouseover-footnote arguments|&gt;\Hnewline
                    ]{|&lt;footnote id|&gt;}{|&lt;footnote id|&gt;-bk}%
    \fi
   }
   {\expandafter\ifx\csname (|&lt;footnote id|&gt;-bk)\endcsname\def
    \else \Link[ |&lt;mouseover-footnote arguments|&gt;\Hnewline
                    ]{}{|&lt;footnote id|&gt;-bk}\fi
   }%
&gt;&gt;&gt;







\&lt;inline fn mark /Link\&gt;&lt;&lt;&lt;
\ifTag{|&lt;footnote id|&gt;-bk}
   {\expandafter\ifx\csname (|&lt;footnote id|&gt;-bk)\endcsname\def
      \Link{|&lt;footnote id|&gt;}{}%
      \HCode{&lt;span class="MsoFootnoteReference"&gt;}%       
    \else
      \Link{|&lt;footnote id|&gt;}{|&lt;footnote id|&gt;-bk}%
      \HCode{&lt;span class="MsoFootnoteReference"&gt;}%
    \fi
   }
   {\expandafter\ifx\csname (|&lt;footnote id|&gt;-bk)\endcsname\def
    \else
      \Link{}{|&lt;footnote id|&gt;-bk}
      \HCode{&lt;span class="MsoFootnoteReference"&gt;}%
    \fi
   }%
&gt;&gt;&gt;


\&lt;end inline fn mark /Link\&gt;&lt;&lt;&lt;
\ifTag{|&lt;footnote id|&gt;-bk}
   {\HCode{&lt;/span&gt;}\EndLink}
   {\expandafter\ifx\csname (|&lt;footnote id|&gt;-bk)\endcsname\def
    \else \HCode{&lt;/span&gt;}\EndLink\fi
   }%
&gt;&gt;&gt;




\&lt;inline footnote css\&gt;&lt;&lt;&lt;
\Css{span.footnotetext{ font-size:80\%; font-style:italic; } }
\Css{div.footnotes{border-bottom:0;}}
&gt;&gt;&gt;


\&lt;ams footnotes\&gt;&lt;&lt;&lt;
\:CheckOption{fn-in}\if:Option  
   \Css{span.MsoFootnoteReference {vertical-align:super;}}
\fi
&gt;&gt;&gt;


\&lt;footnote id\&gt;&lt;&lt;&lt;
fn\FNnum x\minipageNum
&gt;&gt;&gt;


\&lt;configure htmlw amsart\&gt;&lt;&lt;&lt;
|&lt;ams footnotes|&gt;
&gt;&gt;&gt;

\&lt;configure htmlw amsproc\&gt;&lt;&lt;&lt;
|&lt;ams footnotes|&gt;
&gt;&gt;&gt;

\&lt;configure htmlw amsbook\&gt;&lt;&lt;&lt;
|&lt;ams footnotes|&gt;
&gt;&gt;&gt;


\endinput
</pre></body></html>