[l2h] Using a multiple-character superscript and a multiple-character subscript at the same time with an undesired horizontal displacement between them instead of above and below each other

Lawrence Patrick Somerville L_Pat_S at hotmail.com
Thu May 15 09:10:32 CEST 2008


Hi.  I am using latex2html version 2002-2-1 (also called version 1.70).   I 
tried something similar to these examples of LaTeX commands in a .tex, LaTeX 
file:

$23_{-35}^{+50}$s

\begin{equation}
\[ 23_{-35}^{+50}s\]    (or perhaps \[23_{-35}^{+50}\]s )
\end{equation}

\begin{equation}
23_{-35}^{+50}s
\end{equation}

  The result for something similar to probably one of the above, middle 
examples looked okay with the equivalent of the "+50" right above the "-35" 
in the .dvi file of the form MyLaTeXFile.dvi generated by a command of the 
form ''latex MyLaTeXFile.tex" when viewed with the  KDVI-Viewer program.

But after generating a file with a name of the form MyLaTeXFile.html with a 
command of the form

latex2html -nonavigation -no_math -html_version 3.2,math -split 0 
MyLaTeXFile.tex

with a different, .tex file name than MyLaTeXFile.tex, I viewed the file 
with the name of the form MyLaTeXFile.html in four Web browsers: Netscape 
8.1, Internet Explorer 7.0.5730.13, Mozilla Firefox 2.0.0.14, and I think a 
much older version of the Firefox browser; regarding the horizontal 
alignment with the .html file the result was always something similar to the 
following:

          +50
23            s
    -35

(In the above example pay little attention to the vertical alignment and a 
lot of attention to the relative horizontal alignment.  In my example above 
I know that the vertical spacings between the superscript "+50" and base 
number "23" and between the subscript "-35" and base number "23" are too 
large.).   That is there was an undesired horizontal displacement between 
the "-35" and the "+50" rather than having these sets of characters 
vertically aligned one right above the other as I wanted.  Note that both 
the superscript and subscript in this example consist of multiple characters 
with the necessity that each of these two sets of characters be enclosed 
within a pair of braces, as in {-35}.  Such a horizontal displacement was 
observed in all four browsers using one of the middle examples.  It was also 
observed with the first, one of the second, and the third above examples of 
LaTeX command sequences in the old Firefox or Konqueror browsers, depending 
on which browser I was using at the time of the test of three of the above, 
four, LaTeX command sequences.  The above horizontal displacement is rather 
what I would expect with a different command of something like 
$23_{-35}{}^{+50}$s in which I understand the {} is supposed to introduce 
such a horizontal displacement between in this example the "-35" and the 
"+50."  What LaTeX command do I need to type, including a possible 
"workaround" solution, in order to have the superscript and subscript in 
line right above each other, more like this (Again pay little attention to 
the vertical alignment and a lot of attention to the relative horizontal 
alignment I desire.):

    +50
23      s
    -35

?  Is it necessary to change the font size of and/or use the "\mbox" command 
on the characters in the superscript and subscript in order to avoid a 
vertical "collision" between the characters in the superscript and 
subscript?  Or must I type a different latex2html command than I used above 
in order to achieve the horizontal alignment I desire?  Or must a new 
version of latex2html be used and/or made to fix this problem?  In nuclear 
science this sort of thing is useful in citing half-lives with asymmetric 
error limits as in the above example, but with probably one more space 
before the "s" for "seconds," and in symbols for nuclear isotopes like

130
      Ba
  56

when one wants to display both the atomic number, which in this case is 56 
for the element barium with the chemical symbol "Ba," and the mass number or 
number of neutrons and protons, which in this case is 130, of an isotope. 
Thanks in advance for your help.

Pat 



More information about the latex2html mailing list