I am using tex4ht
to convert a html document.
I configure the list based new environment like nomenclature
for latex to pdf output. The pdf output and label alignment is good for nomenclature
environment.
MWE:
\documentclass{article}
\makeatletter
\def\nomnoteslabel#1{\hspace\labelsep #1}%
\newenvironment{nomenclature}[1]{\list{}{%
\setlength{\labelwidth}{#1\p@}%
\setlength{\labelsep}{12\p@}%
\let\leftmargin\labelwidth%
\let\makelabel\nomnoteslabel
\setlength{\itemsep}{\z@}%
\rmfamily\fontsize{8\p@}{10\p@}\selectfont\raggedright}}%
{\endlist}%
\makeatother
\begin{document}
\begin{nomenclature}{30.5}
\item[\textit{x}*] Dimensional coordinates along the channel
\item[\(k_{\lambda}{_{1w}}\)] Radiation absorption coefficient at the wall
\item[\(e_{b{\lambda}_{1}}\)] Plank's function
\end{nomenclature}
\end{document}
I also try to configure the my.cfg
file to get some customized coding for the nomenclature
environment.
my.cfg
\Preamble{xhtml,mathml,NLM,-xtpipes,NoFonts,refcaption,DocBook}
\NewConfigure{nomenclature}{2}
\ConfigureEnv{nomenclature}
{\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}\ShowPar%
% \Configure{listings}
% {\Hcode{<def-item>}}
% {\Hcode{</def-item>}}
% {\Hcode{<term>}}
% {\Hcode{</term>}}
\bgroup
\Configure{HtmlPar}
{\EndP\HCode{<def><p>}}
{\EndP\HCode{<def><p>}}
{\HCode{</p></def>\Hnewline}}
{\HCode{</p></def>\Hnewline}}
}
{\egroup%
\ifvmode\IgnorePar\fi\EndP\HCode{</def-list>}\ShowPar%
\par}{}{}%
\begin{document}
\EndPreamble
But I am not get the required customized html tags. I am struggle to configure the list based environment.
My Current Output:
<def-list>
  <italic>x</italic>*
Dimensional
coordinates
along
the
channel
  k*
Radiation
absorption
coefficient
at
the
wall
  e*
Plank’s
function
</def-list>
My Required Output:
Each whole item
(For ex: \item[\textit{x}*] Dimensional coordinates along the channel
) should be captured <def-item></def-item>
Each item label
(For ex: [\textit{x}*]) should be captured <term><italic>x*</italic></term>
Each item content
(For ex: Dimensional coordinates along the channel
) should be captured <def><p>Dimensional coordinates along the channel</def></p>
The Whole required coding looks like this:
<def-list>
<def-item><term>  <italic>x</italic>*</term>
<def><p>Dimensional
coordinates
along
the
channel</p></def></def-item>
<def-item><term>  k*</term>
<def><p>Radiation
absorption
coefficient
at
the
wall</p></def></def-item>
<def-item><term>  e*</term>
<def><p>
Plank’s
function</p></def></def-item>
</def-list>
How to customize configure the list labels and its contents. Kindly advice.