[l2h] custom_titles affects counters in image file

Ross Moore ross at ics.mq.edu.au
Tue Jan 15 11:24:11 CET 2008


On 15/01/2008, at 8:19 PM, Dr Nicola L C Talbot wrote:

> Hi Ross,
>
> Thanks for your reply.
>
> On Tue, 15 Jan 2008, Ross Moore wrote:
>
>> On 15/01/2008, at 1:22 AM, nlct at cmp.uea.ac.uk wrote:
>>
>>> When I used -custom_titles, the sectioning counters in the image
>>> file are
>>> out by a factor of 2.
>>> [snip]
>>
>> Normally it is not a good idea to include counter-values
>> within images. There are several aspects about the way
>> that LaTeX2HTML works that makes it hard to ensure that
>> the LaTeX counters have the correct values at the time
>> when the images are created.
>
> Unfortunately the equation numbers (that depend on the chapter) are
> incorrect. So in the text, the equation is referred to as, say,  
> 9.2, but
> the image shows the equation labelled as 18.2.

Yes, that may be so.
But with serious mathematics, you should be using the advanced
mathematics features that parse equations for their structure,
rather than making images.

Have you read the chapter on LaTeX2HTML in the book:
  The LaTeX Web Companion ?
This explains the various math modes in detail,
explaining what can be done and how to achieve it.

LaTeX's default mode for mathematics is for mostly
not highly technical use, where there are only relatively
simple equations, with not too complex structure.

If you are writing a book or long paper, with many
equations that are being referred to within the text,
then  \usepackage{amsmath}  should be a standard requirement.
If this occurs, then LaTeX2HTML automatically switches to
a more advanced level of support for mathematical displays
and equations. This includes separating the equation numbering
from support for the equations themselves.
Furthermore, alignments attempt to use HTML tables, rather
than images, and the numbering is placed (using text)
within a separate column of the table, avoiding excessive
use of large images.

There are other ways to get this level of support without
loading the  amsmath  package.  But personally, if you
are writing serious math in LaTeX, then  amsmath  is
perhaps the most useful packages that has ever been written.


>
>>   ... since you seem to be prepared to delve into the Perl scripts,
>> you could try writing your own versions of these subroutines.
>> Put them into an initialization file, so that they override the
>> one's that LaTeX2HTML provides.
>
> I'll investigate further ;-)


> Regards
> Nicola Talbot


Hope this helps,

	Ross

------------------------------------------------------------------------
Ross Moore                                         ross at maths.mq.edu.au
Mathematics Department                             office: E7A-419
Macquarie University                               tel: +61 +2 9850 8955
Sydney, Australia  2109                            fax: +61 +2 9850 8114
------------------------------------------------------------------------




More information about the latex2html mailing list