[l2h] l2h new error

Ernesto Cuadros Vargas ecuadros at utec.edu.pe
Tue Jul 17 15:10:04 CEST 2018


Dear Shigeharu,

may you tell me if it is ready to update when I run something like
apt-get upgrade

I am running Ubuntu 18.04

Thanks
er

On Thu, Jul 12, 2018 at 10:59 PM, Shigeharu TAKENO <shige at iee.niit.ac.jp>
wrote:

> shige 07/13 2018
> ----------------
>
> I wrote:
> | I will consider the solution for problems 3) and 4).
>
> I think the following patch may workaround these problem 1-4)
> (this is for latex2html.pin in latex2html-2017.2).
>
> ----- From here -----
> --- latex2html.pin.ORG  2018-07-13 12:46:13.674636000 +0900
> +++ latex2html.pin      2018-07-13 12:55:51.674987000 +0900
> @@ -11162,7 +11162,14 @@
>
>         # Search for [aAiI1] which is not between a pair of { }
>         # Other cases like "\theenumi" are not handled
> -       @label_fields = $standard_label =~ /$enum_label_rx/;
> +       # @label_fields = $standard_label =~ /$enum_label_rx/;
> +       # 07/13 2018 shige
> +       my $std_label = $standard_label;
> +       $std_label =~ s/$any_next_pair_rx/\{$2\}/g;
> +       @label_fields = $std_label =~ /$enum_label_rx/;
> +       $label_fields[0] =~ s/[\{\}]//g;
> +       $label_fields[$#label_fields] =~ s/[\{\}]//g;
> +       $std_label =~ s/[\{\}]//g;
>         if (($standard_label =~ /^[aAiI1]$/)&&(not(/item\s*\[/))) {
>             $enum_type = ' TYPE="'.$standard_label.'"';
>             $standard_label = '';
> @@ -11173,9 +11180,12 @@
>  #      local($thislabel) = "\&$label_func";
>  #      do { local($_) = $thislabel; &make_unique($_);
>  #           $enum{'theenum' . $rlevel} = $_; };
> -           $standard_label =
> +           # $standard_label =
> +           # 07/13 2018 shige
> +           $standard_label = ($#label_fields > 0) ?
>                 "\"$label_fields[0]\" . eval(\$enum{\"theenum$rlevel\"})"
> -               . ".\"$label_fields[$#label_fields]\"";
> +               . ".\"$label_fields[$#label_fields]\"" :
> +               $std_label;
>             $enum{'labelenum' . $rlevel} = $standard_label;
>         }
>      }  elsif (s/^((.|\n)+?)\\item/$preitems=$1;"\\item"/es) {
> @@ -11193,9 +11203,16 @@
>             $label_part = '"'.$label_part.'"';
>             $enum{$cmd} = $label_part;
>          }
> -       $standard_label =
> -           "\"$label_fields[0]\" . eval(\$enum{\"theenum$rlevel\"})"
> -           . ".\"$label_fields[$#label_fields]\"" if ($cmd);
> +       # $standard_label =
> +       #    "\"$label_fields[0]\" . eval(\$enum{\"theenum$rlevel\"})"
> +       #    . ".\"$label_fields[$#label_fields]\"" if ($cmd);
> +       # 07/13 2018 shige
> +       if ($cmd) {
> +           $standard_label = ($#label_fields > 0) ?
> +               "\"$label_fields[0]\" . eval(\$enum{\"theenum$rlevel\"})"
> +               . ".\"$label_fields[$#label_fields]\"" :
> +               $std_label;
> +       }
>         $_ = $pre_preitems . $preitems . $_ if ($pre_preitems||$preitems);
>      } else {
>         @enum_default_type = ('A', '1', 'a', 'i', 'A') unless
> (@enum_default_type);
> @@ -11244,7 +11261,9 @@
>                 $item = "[$enum_label\]$item";
>                 $enum_label =~ s/\.$//;
>             }
> -           if ($standard_label) {
> +           # if ($standard_label) {
> +           # 07/13 2018 shige
> +           if ($standard_label && $standard_label !~ /eval\(/) {
>                 $item =~ s/(\\labelitem$rlevel|$
> standard_label)/$enum_label/g
>             } else {
>                 $item =~ s/(\\labelitem$rlevel)/$enum_label/g
> @@ -15928,7 +15947,9 @@
>  }
>  sub Alph{
>      local($num)=@_;
> -    &falph(eval($enum{$num}));
> +    # &falph(eval($enum{$num}));
> +    # 07/13 2018 shige
> +    &fAlph(eval($enum{$num}));
>  }
>
>  sub Roman{
> @@ -16469,7 +16490,9 @@
>      # used for labels in {enumerate} environments
>      $standard_label_rx =
>         "\\s*[[]\\s*((($any_next_pair_rx4)|([[][^]]*[]])|[^]])*)[]]";
> -    $enum_label_rx = "^((({[^{}]*})|([^{}]))*)([aAiI1])(.*)";
> +    # $enum_label_rx = "^((({[^{}]*})|([^{}]))*)([aAiI1])(.*)";
> +    # 07/13 2018 shige
> +    $enum_label_rx = "^(((\{[^\{\}]*\})|([^\{\}]))*)([aAiI1])(.*)";
>      $enum_level = 0;   # level for enumerate (1-4, i-iv)
>
>
> ----- To here -----
>
> +========================================================+
>  Shigeharu TAKENO     NIigata Institute of Technology
>                        kashiwazaki,Niigata 945-1195 JAPAN
>  shige at iee.niit.ac.jp   TEL(&FAX): +81-257-22-8161
> +========================================================+
>



-- 
*Ernesto Cuadros-Vargas. PhD*
http://socios.spc.org.pe/ecuadros/
T:+(511) 2305000 <(01)%202305000> Ext 4281
Jr. Medrano Silva 165, Barranco
www.utec.edu.pe

<https://www.utec.edu.pe/carreras-de-ingenieria>

-- 
La información contenida en este e-mail y sus anexos es confidencial, 
privilegiada y está dirigida exclusivamente a su destinatario, en 
consecuencia, solo puede ser utilizada por aquel. Si usted no es el 
destinatario original, no deberá examinar, usar, copiar o distribuir este 
mensaje o la información que contiene. Si lo recibe por error, por favor 
reenvíelo a la persona que se lo envió y elimínelo. Cualquier retención o 
uso total o parcial no autorizada de este mensaje está estrictamente 
prohibida y sancionada por ley.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/latex2html/attachments/20180717/74017d8e/attachment.html>


More information about the latex2html mailing list