[l2h] Math in section title

Darrell dr6583@earthlink.net
Mon, 7 Oct 2002 00:33:21 -0500


----- Original Message -----
From: "Ross Moore" <ross@ics.mq.edu.au>
To: "Darrell" <dr6583@earthlink.net>
Cc: <latex2html@tug.org>
Sent: Sunday, October 06, 2002 8:16 PM
Subject: Re: [l2h] Math in section title


<...>

> Here is a context-diff for a simple patch that will allow images in the
> Table of Contents.  It works by first looking at the full version of the
title,
> and using this when there are images. Otherwise it retains the
*simplified*
> version -- which will usually be the same anyway.
>
> If you have difficulties with this, then send me examples of the
> complicated titles that you are using.
>
>
> Hope this helps,
>
> Ross Moore

Thanks Ross.  It works great.

I am adding a reminder to remind you in 3 months to see about the scaling
issue :-)

Darrell

>
>
> RCS file: /home/latex2ht/cvs/latex2html/user/latex2html.pin,v
> retrieving revision 1.70
> diff -c -r1.70 latex2html.pin
> *** latex2html.pin      2002/08/22 15:14:08     1.70
> --- latex2html.pin      2002/10/07 01:14:43
> ***************
> *** 7908,7914 ****
>       local($countUL); #counter to ensure correct tag matching
>       my $root_file, $href;
>       if (@subtree) {
> !       local($next_depth, $file, $title, $star, $ldepth,$this_file,
$prev_file);
>         $ldepth = $depth;
>         $prev_file = $base_file;
>   #     @subtree = sort numerically @subtree;
> --- 7908,7914 ----
>       local($countUL); #counter to ensure correct tag matching
>       my $root_file, $href;
>       if (@subtree) {
> !       local($next_depth, $file, $title, $sec_title, $star,
$ldepth,$this_file, $prev_file);
>         $ldepth = $depth;
>         $prev_file = $base_file;
>   #     @subtree = sort numerically @subtree;
> ***************
> *** 7916,7923 ****
> --- 7916,7927 ----
>             $title = '';
>             if ($exclude) {
>                 # making TOC
> +               ($next_depth, $file, $sec_title) =
> +                       split($delim,$section_info{$next});
>                 ($next_depth, $file, $title, $star) =
>                         split($delim,$toc_section_info{$next});
> +               # use the %section_info  title, in case there are images
> +               $title = $sec_title if ($sec_title =~ /image_mark>\#/);
>             } else {
>                 # making mini-TOC i.e. the child-links tables
>                 $star = '';
> ***************