4.8 Environments
4.8.1 Center
\ConfigureEnv{center}
{\EndP}{\par \ShowPar} {}{}
\ConfigureList{center}
{\IgnorePar\EndP\HCode{<section role="center"><title/>}\par\ShowPar}
{\IgnorePar\EndP\HCode{</section>}\par\ShowPar}
{} {\par\ShowPar}
-_-_-
4.8.2 Flusshing
\ConfigureEnv{flushleft}
{\EndP}{\par \ShowPar} {}{}
\ConfigureEnv{flushright}
{\EndP}{\par \ShowPar} {}{}
\ConfigureList{flushleft}
{\IgnorePar\EndP\HCode{<blockquote role="flushleft">}\par\ShowPar}
{\IgnorePar\EndP\HCode{</blockquote>}\par\ShowPar}
{} {\par\ShowPar}
\ConfigureList{flushright}
{\IgnorePar\EndP\HCode{<blockquote role="flushright">}\par\ShowPar}
{\IgnorePar\EndP\HCode{</blockquote>}\par\ShowPar}
{} {\par\ShowPar}
-_-_-
4.8.3 Mini Page
\ConfigureEnv{minipage}
{%\IgnorePar\EndP
%\HCode{<note><para role="minipage">}%
{\ifnum 0=‘}\fi
}
{\ifnum 0=‘{\fi}%
% \EndP\HCode{</para></note>}%
}
{}{}
-_-_-
The extra braces in the minipage configurations are to allow the compilation of
cases similar to the following one.
\documentclass{article}
\begin{document}
\begin{tabular}{c}
\begin{minipage}{4in}
\begin{eqnarray}
x & = & y
\end{eqnarray}
\end{minipage}
\end{tabular}
\end{document}
\ConfigureEnv{section}
{\IgnorePar\EndP\HCode{<section role="minipage">}}
{\IgnorePar\EndP\HCode{</section>}\ShowPar}
{}{}
-_-_-
4.8.4 Tabbing
4.8.5 Tabular and Array
4.8.6 Verbatim
\ConfigureEnv{verbatim}
{\ifinner\else \vfill\break\fi
\IgnorePar\EndP\HCode{<literallayout role="verbatim">}\EndNoFonts}
{\NoFonts \ht:special{t4ht=</literallayout>}\ShowPar\par}
{} {}
\ConfigureEnv{verbatim*}
{\ifinner\else \vfill\break\fi
\IgnorePar\EndP\HCode{<literallayout role="verbatim-star">}\EndNoFonts}
{\NoFonts \HCode{</literallayout>}\ShowPar\par}
{} {}
\Configure{verbatim}{\:nbsp}{\a:sp}
-_-_-
array tabbing tabular
4.8.7 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{<pre class="listings">}%
}
{{\everypar{}\leavevmode}\HCode{</pre>}}
{}{}
\Configure{lstinline}
{\HCode{<remark role="lstinline">}}
{\HCode{</remark>}}
-_-_-
\ConfigureEnv{lstlisting}
{\ifvmode \IgnorePar\fi \EndP
\HCode{<!--l. \the\inputlineno-->}%
\HCode{<div class="lstlisting">}%
\bgroup
\Configure{listings}
{{\everypar{}\leavevmode}}
{{\everypar{}\leavevmode}}
{\HCode{<br/>}}{}%
}
{\egroup \ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
{} {}
-_-_-