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

jos j at w3k.org
Tue Apr 12 21:39:08 CEST 2011


 From my online document, you can download the version I was (and am) 
using.  It is a patch of a 2002 version of LaTeX2HTML.  I'm glad to 
hear a Version 2008 now exists.  You might point the maintainer(s) to 
my documentation of problems and workarounds, since it sounds like 
they haven't yet traversed them all. I look forward to upgrading 
myself once all known bugs are fixed. - jos

At 09:24 PM 4/11/2011, Pat Somerville wrote:
>Thanks, JOS, for kindly taking the time to reply to me.  Did you find your
>workaround solutions to eliminate unwanted black line segments to work in a
>version of LaTeX2HTML different from the one I am using?  I tried the two
>workaround solutions you mentioned with LaTeX2HTML Version 2008 (1.71):
>
>1) $DVIPSOPT = ' '; in the file /usr/lib/latex2html/l2hconf.pm in place of
>$DVIPSOPT .= " -E";              ;
>
>2) Including the line "transform round exch round exch itransform" right
>after the line "gsave newpath" in the file
>/usr/lib/texmf/dvips/config/alt-rule.pro [The path for the file alt-rule.pro
>is slightly different in LaTeX2HTML Version 2008 (1.71) than the path
>mentioned within the version of the file alt-rule.pro replacing alt-rule.pro
>in LaTeX2HTML Version 2008 (1.71).].
>
>And for the tests I returned to "$MATH_SCALE_FACTOR=1.6;", without the
>double quotation marks, within the file /usr/lib/latex2html/l2hconf.pm.  But
>unfortunately in my case the workaround 1 and the combination of the
>workarounds 1 and 2 did not remove the unwanted black line segment
>underneath an integral sign in the .html file produced by a latex2html
>command working with the .tex file containing the LaTeX command \int\limits
>_{-\infty}^{+\infty} within an equation environment.  I also tried single
>quotation marks or apostrophes in place of double quotation marks in the
>line $DVIPSOPT = " -E"; in the file l2hconf.pm; but still the unwanted black
>line segments remained within the produced .html file.   So I still request
>help to remove the unwanted black line segments underneath some of my
>integral signs.
>
>Pat
>
>--------------------------------------------------
>From: "jos" <j at w3k.org>
>Sent: Monday, April 11, 2011 5:02 PM
>To: "Pat Somerville" <l_pat_s at hotmail.com>
>Cc: <latex2html at tug.org>
>Subject: Re: [l2h] Black bars under integral signs when the limits 
>ofintegrationare -\infty and +\infty or an algebraic fraction 
>for  each of the upper and
>lower limits
>
>>Here is how I got around the black-bar problem:
>>
>>https://ccrma.stanford.edu/~jos/webpub/Eliminating_Black_Rules_Equation.html
>>
>>- jos
>>
>>At 12:15 PM 4/11/2011, Pat Somerville wrote:
>>>Thanks, Nasser M. Abbasi, for kindly taking the time to reply to me.  I
>>>found the file /usr/lib/latex2html/l2hconf.pm.  In it among other lines
>>>the following lines existed, but not necessarily consecutively:
>>>
>>>$DVIPSOPT .=" -E"; (Please notice the period before the equals sign.)
>>>
>>>$MATH_SCALE_FACTOR=1.6;
>>>
>>>#$DISP_SCALE_FACTOR=1;
>>>
>>>So after receiving your e-mail letter I changed two of those lines to
>>>read:
>>>
>>>$MATH_SCALE_FACTOR=1.8;
>>>
>>>$DISP_SCALE_FACTOR=1.0;
>>>.
>>>Results in the .html file produced by LaTeX2HTML: The black line segment
>>>under the integral sign with the limits of integration having algebraic
>>>fractions in them was removed.  But the black line segments under integral
>>>signs produced from the LaTeX commands containing \int\limits
>>>_{-\infty}^{+\infty} remained.  Those were probably among 27 reported
>>>errors on 27 images.  I don't know with which images all of the other
>>>errors were. But I think I remember at least one pnmcrop-related error
>>>while latex2html was processing my .tex file.
>>>
>>>Next I changed to $MATH_SCALE_FACTOR=2.0; in the file l2hconf.pm and
>>>otherwise did not change any other lines in that file.
>>>
>>>Results: There were errors on 27 images.  The black segment under the
>>>integral sign with algebraic fractional limits returned.
>>>
>>>Continuing with the same settings in l2hconf.pm I made a test, .tex file
>>>containing some commands very similar to
>>>
>>>\begin{equation}
>>>\int\limits _{-\infty}^{+\infty}
>>>\end{equation}
>>>
>>>and then produced a .html file from that .tex file using a latex2html...
>>>command.  In the resulting .html file a black line segment existed under
>>>the integral sign with the limits of positive and negative infinity.  What
>>>should I do now to try to eliminate the unwanted black line segments under
>>>some of the integral signs?  Note also that there were also around 20
>>>images with errors reported while latex2html attempted to generate them;
>>>and in detail I don't yet know what obvious problems there were, if any,
>>>with the associated mathematical symbols associated with the images for
>>>which errors were reported by LaTeX2HTML.
>>>
>>>Pat
>>>
>>>--------------------------------------------------
>>>From: "Nasser M. Abbasi" <nma at 12000.org>
>>>Sent: Monday, April 11, 2011 1:37 AM
>>>To: <latex2html at tug.org>
>>>Subject: Re: [l2h] Black bars under integral signs when the limits
>>>ofintegrationare -\infty and +\infty or an algebraic fraction        for
>>>each of the upper and lower limits
>>>
>>>>On 4/10/2011 10:29 PM, Pat Somerville wrote:
>>>>
>>>>>Question: What can I do to eliminate all of such examples of unwanted
>>>>>black bars
>>>>>  underneath some of the integral signs?
>>>>
>>>>This sounds like the same known problem which was mentioned here some
>>>>time ago?
>>>>
>>>>Check  http://12000.org/my_notes/l2hwin/index.htm  and look for
>>>>
>>>>item (2) under "some errors and possible solutions"
>>>>
>>>>Here it is:
>>>>
>>>>"some of the bitmap images produced for the mathematics in the
>>>>document have a solid dark bar, usually at the bottom or the
>>>>side of the bitmap image. The reason for this is unknown.
>>>>But I found by trial and error that setting the following
>>>>values in my l2hconf.pm eliminated most if not all of these
>>>>
>>>>$MATH_SCALE_FACTOR = 1.8;
>>>>$DISP_SCALE_FACTOR = 1.0;
>>>>
>>>>"
>>>>
>>>>Something to try to see if it will fix your problem.
>>>>
>>>>--Nasser
>>>>_______________________________________________
>>>>latex2html mailing list
>>>>latex2html at tug.org
>>>>http://tug.org/mailman/listinfo/latex2html
>>>_______________________________________________
>>>latex2html mailing list
>>>latex2html at tug.org
>>>http://tug.org/mailman/listinfo/latex2html
>>
>_______________________________________________
>latex2html mailing list
>latex2html at tug.org
>http://tug.org/mailman/listinfo/latex2html



More information about the latex2html mailing list