[l2h] problem for \framebox in picture environment
Shigeharu TAKENO
shige at iee.niit.ac.jp
Mon Nov 15 08:10:49 CET 2021
shige 11/15 2021
----------------
I found a problem for \framebox in picture environment.
\framebox is used as the form "\framebox[w][p]{text}" usually.
Moreover, it is used as the form "\framebox(w,h)[p]{text}" to
draw a rectangle in picture mode.
When the latex2html makes images.tex for \framebox, the first
form is inserted correctly, but the second form is done
incorrectly.
For example, for the LaTeX source:
\begin{figure}[ht]
\begin{picture}(200,150)(0,0)
\put(40,40){\framebox(140,100){}}
\end{picture}
\end{figure}
Well, another framebox \framebox[7em][l]{sample}.
images.tex will be:
{\newpage\clearpage
\lthtmlfigureA{figure3}%
\begin{figure} \begin{picture}(200,150)(0,0)
\put(40,40){\framebox{(}140,100){}}
\end{picture}
\end{figure}%
\lthtmlfigureZ
\lthtmlcheckvsize\clearpage}
{\newpage\clearpage
\lthtmlpictureA{tex2html_wrap21}%
\framebox[7em][l]{sample}%
\lthtmlpictureZ
\lthtmlcheckvsize\clearpage}
The first form "\framebox(140,100){}" is translated to illegal
code "\framebox{(}140,100){}}". This translation may be done
by &wrap_cmd_framebox, which is made in &process_commands_in_tex:
L13755 # $body .= '$args .= "$`$&" if s/$next_pair_rx//o;'."\n";
L13756 $body .= '$args .= join("","{", &missing_braces, "}") unless ('."\n";
L13757 $body .= ' (s/$next_pair_pr_rx/$args.=$`.$&;""/es)'."\n";
L13758 $body .= ' ||(s/$next_pair_rx/$args.=$`.$&;""/es));'."\n";
When I use the code L13755 instead of L13756-13758, it does not
occur the problem. But I don't know whether this is correct
solution.
+========================================================+
Shigeharu TAKENO NIigata Institute of Technology
kashiwazaki,Niigata 945-1195 JAPAN
shige at iee.niit.ac.jp TEL(&FAX): +81-257-22-8161
+========================================================+
More information about the latex2html
mailing list.