>>
>> When I have a math environment in my table caption, the table number
>> gets lost somewhere. Removing the math stuff brings back the table
>> number. The caption looks fine.
>>
>
>With the help of some examples from Bob Daley and Robert Donahue,
>I fixed that problem just yesterday.
>
>I'll post the patch when I get to the office.


There are two possible causes for this problem
Here is the fix for one of them:

> Thanks Bob, and Robert
>
> There is indeed an error in the encoding of the figure captions.
> It's fixed by adding a single line of code into  &extract_captions :
>
>  #replace image-markers by the image params    #<< insert comment
>  s/$image_mark\#([^\#]+)\#/&purify_caption($1)/e; #<< insert code
>  #resolve any embedded cross-references first
>  $_ = &simplify($_);
>  $_ = &sanitize($_);

The other possible cause is that you have a macro in the math
that gets expanded by LaTeX before it writes into the .aux file.
Any such macro needs  \protect  in front of it.

e.g. Robert and Bob have things like  \ion{Ca}{2}
which need to be replaced with  \protect\ion{Ca}{2} .


Unfortunately this has to be done by hand...

...unless you wish to explore using the  \DeclareRobustCommand
which was included in LaTeX with the 1997 (I think) releases.


> Very soon there will be an updated version of LaTeX2HTML
> that fixes this, and various other problems that have been
> reported since March, including the `dots & digits' bug,
> the problems with change-bars, the {\normalsize ....} bug,
> and various other things.

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