[texhax] custom lists pdf html and text
George Georgalis
george at galis.org
Wed Nov 29 22:42:10 CET 2006
A little while back I worked out some custom multi page lists.
They look great in pdflatex but the latex2html does not float.
First, enumerated lists are not numbered, nor do they have line
breaks.... Removing this "shorthand" fixed that problem
\newcommand{\sect}{\section}
\newcommand{\ssect}{\subsection}
\newcommand{\sssect}{\subsubsection}
\newcommand{\benum}{\flushleft\begin{enumerate}}
\newcommand{\eenum}{\end{enumerate}}
when I use the full tags, pdflatex and latex2html both work
okay. Is there a way to make my shorthand work in latex2html?
A bigger problem is with custom lists,
\newenvironment{definx}[4]{%
\edef\@definx{#1}%
%
\edef\@@definx{#2}%
\ifx\@@definx\relax
\else
\setlength{\topsep}{\@@definx}
\fi
%
\edef\@@definx{#3}%
\ifx\@@definx\relax
\else
\setlength{\parsep}{\@@definx}
\fi
%
\edef\@@definx{#4}%
\ifx\@@definx\relax
\else
\setlength{\itemsep}{\@@definx}
\fi
%
\begin{\@definx}
}%
{%
\end{\@definx}
}%
\makeatletter\def\definx#1#2{
\par\@hangfrom{\hbox to 9em{\it #1\/\hfil}}#2\par\flushleft
}\makeatother
Then in the document I say
\definx{RFC}{Request For Comments.}
and pdflatex is fine but latex2html makes:
hangfromto 9emRFCRequest For Comments.
*sigh* html is not required, but a big reason I
went with latex is so that html versions of printed
official documents would be available. so this is a
big disappointment.
Is it possible to correct the preamble (on both
counts) so the documents render in pdf _and_ html?
// George
--
George Georgalis, systems architect, administrator <IXOYE><
More information about the texhax
mailing list