[l2h] Problems with (non empty) makeimage environment
Beinum, Gerlach van
G.vanBeinum at bouw.tno.nl
Tue Jul 15 16:21:06 CEST 2003
Hello,
We encounter some problems with the {makeimage} environment. We have a very small tex file to show it:
----------------------------------------- File Test.tex ---------------------------------------------
\documentclass[letter,twoside]{book}
\usepackage[american]{babel}
\usepackage{html}
\begin{document}
\chapter{Test It}
\begin{makeimage}
ABCD
\end{makeimage}
\end{document}
------------------------------------- End FIle Test.tex -----------------------------------------
If the string "ABCD" in the makeimage environment is only ABC everything works.
If we insert more than that we get :
---------------------------------- Output of latex2html ----------------------------------------------------------------
[english]Note: Loading ./.latex2html-init
Note: Initialising with file: .latex2html-init
This is jLaTeX2HTML Version 2002 (1.62) JA patch-1.4
by Kenshi Muto, Debian Project.
Original LaTeX2HTML Version 2002 (1.62)
by Nikos Drakos, Computer Based Learning Unit, University of Leeds.
Revised and extended by:
Marcus Hennecke, Ross Moore, Herb Swan and others
...producing markup for HTML version 3.2 with math extensions
Loading /usr/share/latex2html/versions/html3_2.pl
Loading /usr/share/latex2html/versions/math.pl
*** processing declarations ***
Loading /usr/share/latex2html/versions/latin1.plStarting at 1058273789 seconds
OPENING /usr1/diana/Man/HTML/Test.tex
Cannot create directory Test/: File exists, reusing it.
Note: Working directory is /usr1/diana/Man/HTML/Test
Note: Images will be generated in /tmp/l2h30642
Debug (syswait): Running "/usr/bin/perl /usr/bin/texexpand -debug -auto_exclude -save_styles /usr1/diana/Man/HTML/Test/TMP/styles -texinputs /usr1/diana/Man/HTML -out /usr1/diana/Man/HTML/Test/TMP/Test /usr1/diana/Man/HTML/Test.tex"
at /usr/bin/latex2html line 804
texexpand V2002 (Revision 1.11)
texexpand: LaTeX2HTML inputs are in:
texexpand: .
texexpand: /usr1/diana/Man/HTML
texexpand: %--- Found class: \documentclass[letter,twoside]{book}
Debug (syswait): Finished child process: #30650
at /usr/bin/latex2html line 804
Loading /usr/share/latex2html/styles/texdefs.perl...
Loading /usr/share/latex2html/styles/book.perl
Warning: No implementation found for option: `letter' for `book' package
Loading /usr/share/latex2html/styles/babel.perl
Loading /usr/share/latex2html/versions/lang.pl [american]
Loading /usr/share/latex2html/styles/american.perl
Loading /usr/share/latex2html/styles/html.perl
Reading ...
'++
@@
Reading aux file: /usr1/diana/Man/HTML/Test.aux ...
Processing macros ...++.................
Translating ...
0/2:top of Test: for Test.html
*** translating preamble ***
.
Warning: No implementation found for option: `letter' for `book' package
...
*** preamble done ***
;.;
1/2:chapter:.."1. Test It" for node1.html
;,panic: end_shift at /usr/bin/latex2html line 11653.
---------------------------------- End Output of latex2html ----------------------------------------------------------------
The code in /usr/bin/latex2html line 11653 is :
.# RRM: A makeimage environment generates a picture of its entire contents,
# UNLESS it is empty.
#
sub do_env_makeimage {
local($_) = @_;
local($attribs, $border);
s/^\s*//;
if (s/$htmlborder_rx//o) { $attribs = $2; $border = (($4)? "$4" : 1) }
elsif (s/$htmlborder_pr_rx//o) { $attribs = $2; $border = (($4)? "$4" : 1) }
if (/^((\\begin\s*(($O|$OP)\d+($C|$CP))tex2html_deferred\3)?\\par(\\end(($O|$OP)\d+($C|$CP))tex2html_deferred\7)?\%?\s*\n)+$/s) { return("\n<BR>\n") }
if (/^(\s\%?\n)+$/s) { return() }
$_ = &process_undefined_environment($env, $id, $_);
if (($border||($attributes))&&($HTML_VERSION > 2.1 ))
{ $_ = &make_table( $border, $attribs, '', '', '', $_ ) }
$_ . ((!$_=~/^\s*$/)? "\n<BR>\n" :'');
}
Line 11653 is the second if statement (if (/^((\\begin\s*(($O|$OP)\d+($C|$... ). I really know too little about Perl to debug this...
We tried this with several (newer)versions of latex2html and the behaviour is the same.
An older version (Version 99.2beta6 (1.42)) works OK.
In the mailing list there was a discussion about an empty makeimage environment. Has that something to do with this problem?
Is there a work around for this?
regards,
gerlach van beinum
G.vanBeinum at tnodiana.com
More information about the latex2html
mailing list