[l2h] changing \textheight in the images.tex file

gabriele balducci gabriele balducci <balducci@dschsun1.univ.trieste.it>
Fri, 15 Oct 1999 15:54:46 +0100


Dear LaTeX2HTML users,

my apologies if I'm not seeing any obvious solution to the following
problem.

Some times happens (e.g. in preparing slides) that a figure is a bit
too tall for the current vertical size of the text, yet the vertical
overflow is small and one wants to temporarily override the current
settings. What I generally use with LaTeX2e is the `\enlargethispage'
command, which works with no problems.

Apparently, the same command does not work under LaTeX2HTML.

This is a short example:

          \documentclass[a4paper]{article} 
          \usepackage{html}
          \pagestyle{empty}

          \begin{document}

          \enlargethispage{30cm}

          \setlength{\unitlength}{1mm}
          \begin{picture}(100,250)
          \put(0,0){\framebox(100,250)[c]{hello}}
          \end{picture}

          \end{document}

The picture is too tall, but putting the `\enlargethispage{30cm}' before
it removes any `overfull \vbox' complain.

If, now, I run LaTeX2HTML on this file, the generated
images.tex file does NOT contain the `\enlargethispage{30cm}' command at
all: is this to be expected?

This is the LaTeX2HTML [v.99.1 (March 30, 1999)] command I use:

          latex2html      -split 4     \
                          -link 0      \
                          -address ""  \
                          -info ""     \
                          -debug       \
                          foo  >> l2h-log 2>&1 


I can force insertion of the `\enlargethispage{30cm}' by wrapping it
into a `\begin{makeimage}...\end{makeimage}' environment:

          \documentclass[a4paper]{article} 
          \usepackage{html}
          \pagestyle{empty}

          \begin{document}

          \begin{makeimage}
          \enlargethispage{30cm}
          \setlength{\unitlength}{1mm}
          \begin{picture}(100,250)
          \put(0,0){\framebox(100,250)[c]{hello}}
          \end{picture}
          \end{makeimage}

          \end{document}

However, even if present in the images.tex file, the command does not
seem to have any effect. Is there any reason for this?

The consequence of the above is that an `overfull \vbox' error ensues
and a first blank page will be output to the images.dvi file. This, in
turn, will cause the failure of all the subsequent processing, since
image001.ps does not contain anything.

I've also tried the following:

          \documentclass[a4paper]{article} 
          \usepackage{html}
          \pagestyle{empty}

          \begin{document}

          \addtolength{\vsize}{10cm}

          \setlength{\unitlength}{1mm}
          \begin{picture}(100,250)
          \put(0,0){\framebox(100,250)[c]{hello}}
          \end{picture}

          \end{document}

which, again, works fine with LaTeX2e. This time the length changing
command is inserted at the right place in the images.tex file (no
`\begin{makeimage}...\end{makeimage}' wrapping is needed), but, as for
the previous case, it does not seem to have any effect.

Is there any obvious reason for this? 

If so, how can I achieve the same goal as with LaTeX2e, i.e. allowing
the offending tall picture to be tolerated anyway in the images.tex
file?


I will warmly appreciate any help or suggestion.

Thank you very much in advance.


Ciao
Gabriele
===========================================================================
Gabriele Balducci                  tel    I-40-6763957
Dipartimento di Scienze Chimiche   fax    I-40-6763903
Via L. Giorgieri 1                 e-mail balducci@univ.trieste.it
I-34127 TRIESTE
===========================================================================