>According to Greg Gamble:
>> >  I used the patch posted by Bob Daley on 28 April i.e. to
>> >  insert
>> >
>> >    $text = $img_params...
>> >
>> >  in sub purify_caption. While it did no harm, it did not fix my
>> >  problem: the lack of figure numbers when the caption contains
>> >  maths.

OK, thanks for your sources.
This problem is fixed by doing 2 things

 A.  a 1-line bug-fix in     sub  process_undefined_environment
     Find the lines starting

        $contents = "\n% latex2html id marker $id\n$contents" if

     and insert on the next line:

        (!$PREAMBLE &&($contents=~ ......
         ^^^^^^^^^^^^^____insert this

 B.  use \protect either in the caption:  $\protect\R$
     or in the definition of  \R , i.e. as  \protect\mathbb{R}
     Either should work.



>According to Ross Moore:
>> All of this is my work.
>> Each of the  amsmath  environments are supposed to be implemented
>>similarly...
>> ... provided you use switches:     -no_math   -html_version 3.2,math
>>
>> Are you trying to use  'amsmath'  without these switches ?
>> That probably gives you an image then, I'd expect.
>
>Indeed ... I had not realised that I should set these switches, and
>yes ... setting these switches causes L2H to translate `align', `align*',
>`gather',
>`gather*' beautifully ...

The point is that if you are using  amsmath  then you should be using
the high-powered math-parsing offered by the `math' extension.
The smaller images that it generates give better down-load times.
Also, the HTML markup better reflects the logical content
of the mathematics, much more so than does a single large image.
Searching on sub-expressions becomes possible.


>... but alas, now the formulae involving \smgt and
>\scdot are awry, because it doesn't pass these straight to LaTeX etc. to
>be processed as images, apparently. What should I do to fix this? ...

Yes,  \raisebox isn't being handled correctly within math-parsing.

To force an image, change your \newcommand definition to:

  \newcommand{\smgt}{\mbox{$\scriptstyle>$}}

You won't get the \raisebox this way, though.
That'll have to wait till I decide how it should be handled;
e.g. via an image --- otherwise the raising will not be evident.


>I'm now running l2h98_1p5 on a much larger file to see if any other new
>problems have eventuated. I'll let you know what happens.
>
>In fact, when I used the switches:  -no_math   -html_version 3.2,math
>with l2h98_1p1 *all* my maths symbols disappeared. It would seem that
>with these switches there is no point in persevering with l2h98_1p1
>- an upgrade is mandatory.
>
>  Regards and thanks for your help,

You're welcome.


All the best,

        Ross Moore


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ross Moore                             email: [EMAIL PROTECTED]
Mathematics Department                 phone:      +612 9850 8955
Macquarie University                     fax:      +612 9850 8114
Sydney, NSW 2109                      office:             E7A-419
Australia              WWW: http://www-math.mpce.mq.edu.au/~ross/

                ***************************

for the best in (La)TeX-nical typesetting and Web page production
join the  TeX Users Group (TUG) --- browse at  http://www.tug.org

                 <[EMAIL PROTECTED]>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Reply via email to