[l2h] no number for table

Dr Nicola L C Talbot n.talbot at uea.ac.uk
Fri Feb 27 10:44:24 CET 2009

Christian wrote:
> Am 26.02.2009 um 07:31 schrieb Ross Moore:
>> On 26/02/2009, at 4:37 PM, Christian wrote:
>>> for the tables in the appendix I get the following:
>>> No number for "DiewichtigstenEditierbefehledes"
>>> How does it comethat tables are not numbered?
>> Have you processed your document first using LaTeX ?
>> This creates a .aux  file that LaTeX2HTML reads to
>> obtain the numbering information for cross-references
>> to sections, figures and tables.
> I processed the file with LaTeX before and in the pdf the numbers are  
> fine...

It may be that the caption contains commands that vary between LaTeX and 
LaTeX2HTML. For example:




See Table~\ref{tab:sample}.

\caption{A \sample{Sample} Table}\label{tab:sample}


The caption is written as "A \textit{Sample} Table" in the aux file 
which LaTeX2HTML translates to "A <I>Sample</I> Table". Whereas the 
caption in the document translates to "A <TT>Sample</TT> Table", so 
LaTeX2HTML can't match the caption in the document to the corresponding 
caption in the aux file, and thus can't determine the number. The 
problem can be fixed by placing \protect before the command to prevent 
expansion when LaTeX writes it to the aux file:

\caption{A \protect\sample{Sample} Table}

or by using the optional argument:

\caption[A Sample Table]{A \sample{Sample} Table}

Nicola Talbot
Dr Nicola Talbot

More information about the latex2html mailing list