[l2h] Black bars under integral signs when thelimitsof integration are -\infty and +\infty or analgebraicfraction for each of the upper and lower limits

Pat Somerville l_pat_s at hotmail.com
Fri Apr 15 06:42:54 CEST 2011


Thanks, (I guess Dr.) Shigeharu Takeno!  Gratefully once again you have 
solved a problem for me!  Your solution of the LaTeX command \int\limits 
_{-\infty\hspace{2mm}}^{+\infty} between \begin{equation} and \end{equation} 
in a .tex file worked well to eliminate the black line segment under my test 
integral sign with its limits in the .html file produced with a latex2html 
command on that .tex file!  And gratefully I was able to extend your 
principle by using \hspace{8mm} within a lower limit and to the right of the 
lower limit's contents to also eliminate a black line segment under another 
integral sign with fractions in the upper and lower limits.

Dr. Takeno, I could begin to realize at least part of what you wrote by 
looking at the .png (Portable Network Graphics) image equivalent to 
\int\limits _{-\infy}^{+\infty} by looking at the .png (Portable Network 
Graphics) image in the Gnu Not Unix (GNU) Image Manipulation Program (GIMP) 
2.6.8 in my Linux operating system.  What program do you use to examine .png 
images in detail and in what computer operating system?  In GIMP I could see 
that the right-hand portion of the upper limit of positive infinity was 
either right at the right-hand edge of the dash-lined box surrounding the 
image or perhaps was cut off there; I'm not sure.  Can you or someone 
explain to me the mechanisms in detail that cause the unwanted black line 
segments to be generated?  So far I know from you, Dr. Takeno, that if a 
mathematical expression inside an image would otherwise extend beyond the 
right border of the image, somehow the black line segment was generated 
underneath the image.  You explained something about the first step of the 
cropping procedure which was involved.

I just guess from what you wrote, Dr. Takeno, that the script eqnfix.sh 
obtained from http://www.vyvy.org/main/en/node/102 on the Internet  might 
not have been able to eliminate the black line segment under my integral 
sign due to a piece of the upper limit that otherwise would have extended 
beyond the right border of the .png image.

However, there is a mystery of how Nasser M. Abbasi's combination of 
installed software could avoid producing the black line segment under the 
integral sign.  Based on what Dr. Takeno wrote my guess is that in Nasser M. 
Abbasi's case the width of the rectangle containing the integral sign and 
its limits might have been wide enough to keep the limit of positive 
infinity from reaching the right-hand border of its enclosing rectangle.  I 
saw that Nasser Abbasi and I have been recently been using the same, 
LaTeX2HTML Version 2008 (1.71) and the same version of dvips(k) 5.98.  His 
version of Perl has been 5.10.1; mine is 5.12.1.  His installed version of 
Ghostscript is 8.71; mine is 8.70.  But I have been wondering if our 
versions of Netpbm could have been different and have been responsible for 
our different results; in particular the version of pnmcrop and the 
parameters used with it could be very important in the outcome regarding 
removing the unwanted black line segment.  My version of Netpbm has been 
10.35.74.  There may be other ways, Nasser, in which you may learn what your 
version of Netpbm and/or pnmcrop is/are in your Ubuntu Linux operating 
system.  For example, try typing the command "pnmcrop -v" or 
"pnmcrop -version."  In my case I found the version of Netpbm installed on 
my computer listed near the top of the file 
/usr/share/doc/packages/netpbm/HISTORY.  Another way I found it was by 
entering Yet another Software Tool 2 (YaST2) and within "Software 
Management" searching for "netpbm," selecting "netpbm" among the results 
found, and then clicking on the "Technical Data" tab to finally read under 
"Installed Version" 10.35.74-2.21.  If your Ubuntu, Linux operating system 
instead uses the Yellow-dog Update Manager (YUM), try using it somehow, 
perhaps in a search for "netpbm" to determine the version of Netpbm you have 
installed on your computer.

Thanks, Professor Ross Moore, for suggesting I use the -debug option in a 
latex2html command.  That's how I could obtain the output below, I think for 
a case in which the unwanted black segment was generated:

linux-iy6k:/home/newbie/LaTeXFiles # latex Throwaway7.tex
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/openSUSE)
entering extended mode
(./Throwaway7.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, 
noh
yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, 
ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, 
dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, 
mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, 
ku
rmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, 
po
lish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, 
span
ish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size12.clo))
(/usr/share/texmf/tex/latex/graphics/epsfig.sty
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texmf/tex/latex/graphics/dvips.def))))
(/usr/share/texmf/tex/latex/setspace/setspace.sty
Package: `setspace' 6.7 <2000/12/01>
) (/usr/share/texmf/tex/latex/graphics/color.sty
(/usr/share/texmf/tex/latex/latexconfig/color.cfg)
(/usr/share/texmf/tex/latex/graphics/dvipsnam.def))
(/usr/lib/texmf/tex/latex/html/html.sty
(/usr/share/texmf/tex/latex/hyperref/hyperref.sty
(/usr/share/texmf/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texmf/tex/generic/oberdiek/ifvtex.sty)
(/usr/share/texmf/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texmf/tex/latex/oberdiek/hycolor.sty
(/usr/share/texmf/tex/latex/oberdiek/xcolor-patch.sty))
(/usr/share/texmf/tex/latex/hyperref/pd1enc.def)
(/usr/share/texmf/tex/generic/oberdiek/etexcmds.sty
(/usr/share/texmf/tex/generic/oberdiek/infwarerr.sty))
(/usr/share/texmf/tex/latex/latexconfig/hyperref.cfg)
(/usr/share/texmf/tex/latex/oberdiek/kvoptions.sty
(/usr/share/texmf/tex/generic/oberdiek/kvsetkeys.sty))
Implicit mode ON; LaTeX internals redefined
(/usr/share/texmf/tex/latex/ltxmisc/url.sty)
(/usr/share/texmf/tex/generic/oberdiek/bitset.sty
(/usr/share/texmf/tex/generic/oberdiek/intcalc.sty)
(/usr/share/texmf/tex/generic/oberdiek/bigintcalc.sty
(/usr/share/texmf/tex/generic/oberdiek/pdftexcmds.sty
(/usr/share/texmf/tex/generic/oberdiek/ifluatex.sty)
(/usr/share/texmf/tex/generic/oberdiek/ltxcmds.sty))))
(/usr/share/texmf/tex/generic/oberdiek/atbegshi.sty))
*hyperref using default driver hdvips*
(/usr/share/texmf/tex/latex/hyperref/hdvips.def
(/usr/share/texmf/tex/latex/hyperref/pdfmark.def)))
(/usr/share/texmf/tex/latex/base/makeidx.sty)
(/usr/share/texmf/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf/tex/latex/amsmath/amstext.sty
(/usr/share/texmf/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf/tex/latex/amsmath/amsopn.sty)) (./Throwaway7.aux)
(/usr/share/texmf/tex/latex/hyperref/nameref.sty
(/usr/share/texmf/tex/latex/oberdiek/refcount.sty)) (./Throwaway7.out)
(./Throwaway7.out) [1] (./Throwaway7.aux) )
Output written on Throwaway7.dvi (1 page, 2620 bytes).
Transcript written on Throwaway7.log.
linux-iy6k:/home/newbie/LaTeXFiles # 
latex2html -debug -nonavigation -no_math -html_version 3.2,math -split 0 
Throwaway7.tex
defined(%hash) is deprecated at /usr/bin/latex2html line 514.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /usr/bin/latex2html line 2091.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /usr/bin/latex2html line 9102.
        (Maybe you should just omit the defined()?)
$* is no longer supported at /usr/bin/latex2html line 10607.
This is LaTeX2HTML Version 2008 (1.71)
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



Extension: loading /usr/share/latex2html/versions/latin1.pl
HTML version: loading /usr/share/latex2html/versions/html3_2.pl

Extension: loading /usr/share/latex2html/versions/math.pl
 *** processing declarations ***
Starting at 1302831028 seconds

OPENING /home/newbie/LaTeXFiles/Throwaway7.tex

Note: Working directory is /home/newbie/LaTeXFiles/Throwaway7
Note: Images will be generated in /tmp/l2h5890

Debug (syswait): Running "/usr/bin/perl 
/usr/bin/texexpand -debug -auto_exclude -save_styles 
/home/newbie/LaTeXFiles/Throwaway7/TMP/styles -texinputs 
/home/newbie/LaTeXFiles -out 
/home/newbie/LaTeXFiles/Throwaway7/TMP/Throwaway7 
/home/newbie/LaTeXFiles/Throwaway7.tex"
 at /usr/bin/latex2html line 804
texexpand V2008 (Revision 1.12)

texexpand: LaTeX2HTML inputs are in:
texexpand:    .
texexpand:    /home/newbie/LaTeXFiles
texexpand: %--- Found class: \documentclass[a4paper,12pt]{article}
Debug (syswait): Finished child process: #5898
 at /usr/bin/latex2html line 804



Loading /usr/share/latex2html/styles/texdefs.perl...
Package: loading /usr/share/latex2html/styles/article.perl
Package: loading /usr/share/latex2html/styles/epsfig.perl
Package: loading /usr/share/latex2html/styles/color.perl
 *** initialising colors ***

(reading colors from /usr/share/latex2html/styles/rgb.txt)

Package: loading /usr/share/latex2html/styles/html.perl
Package: loading /usr/share/latex2html/styles/makeidx.perl
Package: loading /usr/share/latex2html/styles/amsmath.perl
Package: loading /usr/share/latex2html/styles/more_amsmath.perl
Reading ...
++
@@

Translating ...
0/1:top of Throwaway7: for Throwaway7.html

 *** translating preamble ***
....
Warning: No implementation found for package: setspace
Warning: No implementation found for package: hyperref.
 *** preamble done ***
;,,.$.;.

1/1:sectionstar:.."About this document ..." for Throwaway7.html
;;.

Writing image file ...

/usr/bin/latex ./images.tex
Debug (syswait): Running "/usr/bin/latex ./images.tex"
 at /usr/bin/latex2html line 3791
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/openSUSE)
entering extended mode
(./images.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, 
noh
yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, 
ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, 
dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, 
mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, 
ku
rmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, 
po
lish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, 
span
ish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh, loaded.

(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size12.clo))
(/usr/share/texmf/tex/latex/base/ifthen.sty)
(/usr/share/texmf/tex/latex/graphics/epsfig.sty
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texmf/tex/latex/graphics/dvips.def))))
(/usr/share/texmf/tex/latex/setspace/setspace.sty
Package: `setspace' 6.7 <2000/12/01>
) (/usr/share/texmf/tex/latex/graphics/color.sty
(/usr/share/texmf/tex/latex/latexconfig/color.cfg)
(/usr/share/texmf/tex/latex/graphics/dvipsnam.def))
(/usr/lib/texmf/tex/latex/html/html.sty
(/usr/share/texmf/tex/latex/hyperref/hyperref.sty
(/usr/share/texmf/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texmf/tex/generic/oberdiek/ifvtex.sty)
(/usr/share/texmf/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texmf/tex/latex/oberdiek/hycolor.sty
(/usr/share/texmf/tex/latex/oberdiek/xcolor-patch.sty))
(/usr/share/texmf/tex/latex/hyperref/pd1enc.def)
(/usr/share/texmf/tex/generic/oberdiek/etexcmds.sty
(/usr/share/texmf/tex/generic/oberdiek/infwarerr.sty))
(/usr/share/texmf/tex/latex/latexconfig/hyperref.cfg)
(/usr/share/texmf/tex/latex/oberdiek/kvoptions.sty
(/usr/share/texmf/tex/generic/oberdiek/kvsetkeys.sty))
Implicit mode ON; LaTeX internals redefined
(/usr/share/texmf/tex/latex/ltxmisc/url.sty)
(/usr/share/texmf/tex/generic/oberdiek/bitset.sty
(/usr/share/texmf/tex/generic/oberdiek/intcalc.sty)
(/usr/share/texmf/tex/generic/oberdiek/bigintcalc.sty
(/usr/share/texmf/tex/generic/oberdiek/pdftexcmds.sty
(/usr/share/texmf/tex/generic/oberdiek/ifluatex.sty)
(/usr/share/texmf/tex/generic/oberdiek/ltxcmds.sty))))
(/usr/share/texmf/tex/generic/oberdiek/atbegshi.sty))
*hyperref using default driver hdvips*
(/usr/share/texmf/tex/latex/hyperref/hdvips.def
(/usr/share/texmf/tex/latex/hyperref/pdfmark.def)))
(/usr/share/texmf/tex/latex/base/makeidx.sty)
(/usr/share/texmf/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf/tex/latex/amsmath/amstext.sty
(/usr/share/texmf/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf/tex/latex/base/inputenc.sty) (./images.aux)
(/usr/share/texmf/tex/latex/hyperref/nameref.sty
(/usr/share/texmf/tex/latex/oberdiek/refcount.sty))
(/home/newbie/LaTeXFiles/images.out) (/home/newbie/LaTeXFiles/images.out)

latex2htmlLength hsize=349.0pt

latex2htmlLength vsize=679.0pt

latex2htmlLength hoffset=0.0pt

latex2htmlLength voffset=0.0pt

latex2htmlLength topmargin=0.0pt

latex2htmlLength topskip=0.00003pt

latex2htmlLength headheight=0.0pt

latex2htmlLength headsep=0.0pt

latex2htmlLength parskip=20.0pt plus 2.0pt minus 2.0pt

latex2htmlLength oddsidemargin=31.0pt

latex2htmlLength evensidemargin=31.0pt

l2hSize :tex2html_wrap_indisplay21:25.26683pt::25.26683pt::15.69885pt.
[1] (./images.aux) )
Output written on images.dvi (1 page, 2400 bytes).
Transcript written on images.log.
Debug (syswait): Finished child process: #5900
 at /usr/bin/latex2html line 3791

 *** processing 1 images ***

Generating postscript images using dvips ...
/usr/bin/dvips -S1 -i -E -o/tmp/l2h5890/image ./images.dvi
Debug (syswait): Running "/usr/bin/dvips -S1 -i -E -o/tmp/l2h5890/image 
./images.dvi
"
 at /usr/bin/latex2html line 3907
This is dvips(k) 5.98 Copyright 2009 Radical Eye Software 
(www.radicaleye.com)
' TeX output 2011.04.14:2130' -> /tmp/l2h5890/image
(-> /tmp/l2h5890/image001) </usr/lib/texmf/dvips/base/tex.pro>
</usr/lib/texmf/dvips/base/texps.pro></usr/lib/texmf/dvips/base/special.pro>
</usr/lib/texmf/dvips/base/color.pro>
</usr/share/texmf/fonts/type1/public/amsfonts/cm/cmex10.pfb>
</usr/share/texmf/fonts/type1/public/amsfonts/cm/cmsy8.pfb>
</usr/share/texmf/fonts/type1/public/amsfonts/cm/cmr8.pfb>[1]
Debug (syswait): Finished child process: #5902
 at /usr/bin/latex2html line 3907
Converting image #1
Debug (syswait): Running "/usr/bin/perl /usr/bin/pstoimg -type 
png -debug -tmp /tmp/l2h5890 -discard -interlace -antialias -depth 1 -scale 
1.6 -geometry 16x50 -margins 103,72 -crop abls -transparent -out img1.png 
/tmp/l2h5890/image001.ps"
 at /usr/bin/latex2html line 4239
pstoimg V2008 (Revision 1.19, Perl 5.012001)
pstoimg: Temporary directory is /tmp/l2h5890
pstoimg: Processing /tmp/l2h5890/image001.ps
pstoimg: EPSF dimensions are 24x58
pstoimg: Running 
/usr/bin/gs  -sDEVICE=ppmraw -g39x93  -r115 -dTextAlphaBits=4  -sOutputFile=/tmp/l2h5890/p5903.pnm
GS>-102 -663 translate
GS>(/tmp/l2h5890/image001.ps) run
GS>showpage
GS>quit

GPL Ghostscript 8.70 (2009-07-31)
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file COPYING for details.

*** Warning: GenericResourceDir doesn't point to a valid resource directory.
               the -sGenericResourceDir=... option can be used to set this.

GS>GS>>>showpage, press <return> to continue<<
GS>>>showpage, press <return> to continue<<
GS>Running "/usr/bin/pnmcrop -verbose  < /tmp/l2h5890/p5903.pnm | 
/usr/bin/pnmcrop -verbose  -bot  -sides  | 
usr/bin/pnmcrop -verbose  -l  -sides   > /tmp/l2h5890/p5903.t01"
pnmcrop: Background color is white
pnmcrop: Cropping 1 pixel from the 1-pixel left border
pnmcrop: Cropping 5 pixels from the 5-pixel right border
pnmcrop: Cropping 1 pixel from the 1-pixel top border
pnmcrop: Cropping 2 pixels from the 2-pixel bottom border
pnmcrop: Background color is black
pnmcrop: Leaving left border unchanged at 2 pixels
pnmcrop: Leaving right border unchanged at 0 pixel
pnmcrop: Leaving top border unchanged at 0 pixel
pnmcrop: Leaving bottom border unchanged at 0 pixel
pnmcrop: Background color is black
pnmcrop: Cropping 2 pixels from the 2-pixel left border
pnmcrop: Leaving right border unchanged at 0 pixel
pnmcrop: Leaving top border unchanged at 0 pixel
pnmcrop: Leaving bottom border unchanged at 0 pixel
Image "/tmp/l2h5890/p5903.pnm" is PPM, 31x90
Running "/usr/bin/pnmcrop -verbose   -sides  -bot < /tmp/l2h5890/p5903.pnm > 
/tmp/l2h5890/p5903.t02"
pnmcrop: Background color is white
pnmcrop: Leaving left border unchanged at 0 pixel
pnmcrop: Leaving right border unchanged at 0 pixel
pnmcrop: Leaving top border unchanged at 7 pixels
pnmcrop: Leaving bottom border unchanged at 0 pixel
Image "/tmp/l2h5890/p5903.t02" is PPM, 31x90
Image "/tmp/l2h5890/p5903.pnm" is PPM, 31x90
Running "/usr/bin/ppmquant -floyd 256 < /tmp/l2h5890/p5903.pnm | 
/usr/bin/pnmtopng -interlace -trans 'gray85'  > img1.png"
pnmcolormap: making histogram...
pnmcolormap: Scanning image 0
pnmcolormap: 16 colors so far
pnmcolormap: 16 colors found
pnmcolormap: Image already has few enough colors (<=256).  Keeping same 
colors.
pnmremap: 16 colors found in colormap
pstoimg: Written img1.png
Debug (syswait): Finished child process: #5903
 at /usr/bin/latex2html line 4239

Doing section links .....
 *** Adding document-specific styles ***

*********** WARNINGS ***********
No implementation found for style `setspace'
No implementation found for style `hyperref'

Done.
Timing: 8 seconds
linux-iy6k:/home/newbie/LaTeXFiles #

Not using the -no_math option in a latex2html command by itself in my case 
did not eliminate the unwanted black line segment.  I also tried using 
the -noreuse option in a latex2html command.  But that involved choosing the 
"d" or "D" option, which deleted the images previously produced and made new 
ones.  Fortunately that was not necessary for me to regularly do with a 
large .tex document; instead new .png images were made, replacing old .png 
images without using the -noreuse option in a latex2html command.  And that 
saved time not having to remake many other .png images with which there were 
no major problems.  Sometimes, however, I did "Move to Trash" a whole folder 
of .png images to make new ones.  Thanks to all of you who have kindly taken 
time to post your ideas and data for me here!

Pat

--------------------------------------------------
From: "Shigeharu TAKENO" <shige at iee.niit.ac.jp>
Sent: Wednesday, April 13, 2011 11:00 PM
To: <latex2html at tug.org>
Subject: Re: [l2h] Black bars under integral signs when thelimitsof 
integration are -\infty and +\infty or analgebraicfraction for each of the 
upper and lower limits

> shige 04/14 2011
> ----------------
>
> I confirm the problem for the following LaTeX source:
>
> \documentclass[12pt]{article}
> \begin{document}
> \[
> \int\limits _{-\infty}^{+\infty}
> \]
> \end{document}
>
> and using "-html_version 3.2,math".
>
> This may be the reason why the top infinity mark is too long to
> the right. In fact, the right end of the mark is over the black
> under bar. Then, the small space remains to the right of the
> black under bar at first cropping, and the black line will not
> remove the following croppings.
>
> To workaround, to make a long black under bar:
>
> \documentclass[12pt]{article}
> \begin{document}
> \[
> \int\limits _{-\infty\hspace{2mm}}^{+\infty}
> \]
> \end{document}
>
> +========================================================+
> Shigeharu TAKENO     NIigata Institute of Technology
>                       kashiwazaki,Niigata 945-1195 JAPAN
> shige at iee.niit.ac.jp   TEL(&FAX): +81-257-22-8161
> +========================================================+
> _______________________________________________
> latex2html mailing list
> latex2html at tug.org
> http://tug.org/mailman/listinfo/latex2html
> 


More information about the latex2html mailing list