According to Bob Daley:
> @ From: Greg Gamble <[EMAIL PROTECTED]>
> @   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.
> Greg:
>       Try using l2h98.1p5.  I find that it works much better than previous
> versions.  I also use amsmath.  ...
>       Given all this I decided to rewrite the extraction of figure numbers ...
> 
> In Sub extract_captions:
> Add after "local($env) = @_;" (line 7378)
>     local($default_number);
> Add after "if ($env eq 'figure') {" (line 7388)
>         $default_number =  $latex_labels{$figure_label} if ($figure_label);
> Add after "elsif ($env eq 'table') {" (line 7394)
>         $default_number =  $latex_labels{$table_label} if ($table_label);
> Add before "@tmp = split(/$;/, eval ("\$encoded_$env" . "_number{\$_}"));" (line 
>7447)
>         $number = $default_number;
>         if (!$number) {
> Add after "$number = "" if ($number eq "-1");" (line 7449)
>         }
> 
> In Sub extract_labels:
> Change "($_, $anchors);" (line 7492) to
>     ($_, $anchors, $label);
> 
> In Sub do_env_figure:
> Add after "local ( $border, $attribs );" (line 10039)
>     local($figure_label);
> Change "($_,$anchors) = &extract_labels($_); # extract labels" (line 10042) to
>     ($_,$anchors,$figure_label) = &extract_labels($_); # extract labels
> 
> In Sub do_env_table:
> Add after "local ( $border, $attribs );" (line 10130)
>     local($table_label);
> Change "($_,$anchors) = &extract_labels($_); # extract labels" (lines 10148 and 
>10158) to
>         ($_,$anchors,$table_label) = &extract_labels($_); # extract labels
> 
 
 Ok. I installed l2h98_1p5 and did your fixes and initially I thought I had no
 change from before ... but of course your fix needed my figure to have a \label 
 (which it didn't initially have) ... so I gave it one, and indeed now it works.
 It's not too much pain to give \label s ... did your previous (Apr 28) solution depend
 on there being a \label? ... if l2h98_1p5 creates new problems, I'll go
 back and try your previous solution with l2h98_1p1 giving each figure with
 maths in the caption and not having a \label, a \label.

  Regards,
  Greg Gamble
___________________________________________________________________
Greg Gamble   __________________      mailto:[EMAIL PROTECTED]
Department of Mathematics ___                 Tel: +61-8 9380 3383
The University of Western Australia           Fax: +61-8 9380 1028
NEDLANDS WA 6907  AUSTRALIA         http://maths.uwa.edu.au/~gregg/
___________________________________________________________________

Reply via email to