[l2h] Need dim and half dim symbols

jos j at w3k.org
Fri Jun 25 05:47:46 CEST 2010


I just tried it and it worked ok for me.  You might try

$NO_SIMPLE_MATH = 1;

in your .latex2html-init file - it looks like you want to force l2h 
to make an image instead of using HTML's superscripts

- jos

At 05:12 PM 6/24/2010, Bob van der Poel wrote:
>Thanks, but it's still not working.
>
>Your solution is similar to what I tried a first go. It works
>perfectly in latex, but for some reason not it html.
>
>In html the \circ works fine. But the \o doesn't display at all.
>
>Now, this is interesting (but I don't get it!). If I look at the
>generated html I find that my "dim" is shown in the html as:
>
><SPAN CLASS="MATH"><SUP><TT>o</TT></SUP></SPAN>
>
>  ... a superscirpt "o". Okay.
>
>But, the halfdim is just skipped over. No character at all.
>
>There is a comment after the "dim"
>     <!-- MATH
>  ${}^{\circ}$
>  -->
>
>But, again, nothing for the halfdim.
>
>I'm out of ideas on this.
>
>
>On Thu, Jun 24, 2010 at 4:36 PM, jos <j at w3k.org> wrote:
> > Here is what I use for the degree symbol:
> >
> > \providecommand{\degrees}{\mbox{${}^{\circ}$}}
> >
> > In principle this should put a slash through it:
> >
> > \providecommand{\slashdegrees}{\mbox{${}^{\mbox{\o}}$}}
> >
> > (Maybe something to try)
> >
> > - Julius
> >
> > At 02:25 PM 6/24/2010, Bob van der Poel wrote:
> >>
> >> I'm doing some "music" docs and am trying to get a small degree sign
> >> and a slashed degree to use for diminished and half-diminished chords.
> >> I tried a few symbols, but ran into problems with the 2 different
> >> symbols not being the same size, so created the following 2 little
> >> definitions
> >>
> >>   \newcommand{\diminished}{{\bf\raisebox{.4ex}{o}}}
> >>   \newcommand{\halfdim}{{\bf\raisebox{.4ex}{\o}}}
> >>
> >> Not perfect, but acceptable in the latex doc. However, when I use
> >> latex2html the box is NOT raised, so the 2 symbols appear on the same
> >> baseline as the rest of the text. Not good.
> >>
> >> So, I tried putting a $ $ around the defs. Okay, not I get a poor
> >> resolution O for both, and it is raised. But there is no slash in the
> >> \halfdim.
> >>
> >> I checked, and math should be working ... here's the command line
> >> sucked out of my makefile:
> >>
> >> latex2html  -split +1  -dir html  -no_footnode  -local_icons  \
> >>                -up_url ../mma.html -up_title "Main MMA Reference"
> >> -html_version
> >> 4.0,latin2,unicode \
> >>                $(TARG).tex
> >>
> >> And I checked my ~/.latex2html-init file and nothing there about math.
> >> So, this should be working :)
> >>
> >> I'm doing something wrong. Or does someone have a recommended set of
> >> symbols?
> >>
> >>
> >>
> >>
> >>
> >> --
> >> **** Listen to my CD at http://www.mellowood.ca/music/cedars ****
> >> Bob van der Poel ** Wynndel, British Columbia, CANADA **
> >> EMAIL: bob at mellowood.ca
> >> WWW:   http://www.mellowood.ca
> >> _______________________________________________
> >> latex2html mailing list
> >> latex2html at tug.org
> >> http://tug.org/mailman/listinfo/latex2html
> >
> >
>
>
>
>--
>**** Listen to my CD at http://www.mellowood.ca/music/cedars ****
>Bob van der Poel ** Wynndel, British Columbia, CANADA **
>EMAIL: bob at mellowood.ca
>WWW:   http://www.mellowood.ca
>
>_______________________________________________
>latex2html mailing list
>latex2html at tug.org
>http://tug.org/mailman/listinfo/latex2html



More information about the latex2html mailing list