[tex4ht] [bug #162] Extra space in html output with some predefined TeX commands

Bitouze puszcza-hackers at gnu.org.ua
Wed Sep 19 10:11:03 CEST 2012


Follow-up Comment #4, bug #162 (project tex4ht):

Well, not that good: the entire "LaTeX" word is shifted to the right and a
spurious space appears at its left.

Thanks to [http://edward.oconnor.cx/2007/08/tex-poshlet] a (working I hope)
workaround would be:


Css{.tex, .latex, .tex sub, .latex sub {
    font-size: 1em;
  }
}
Css{.tex sub, .latex sub, .latex sup {
    text-transform: uppercase;
  }
}
Css{.latex sub, .tex sub {
    vertical-align: -0.25em;
    margin-left: -0.1667em;
    margin-right: -0.125em;
  }
}
Css{.latex sup {
    font-size: 0.85em;
    vertical-align: 0.15em;
    margin-left: -0.36em;
    margin-right: -0.15em;
  }
}

defTeX{HCode{<span class="tex">}THCode{<sub>}eHCode{</sub>}XHCode{</span>}}
defLaTeX{HCode{<span
class="latex">}LHCode{<sup>}aHCode{</sup>}THCode{<sub>}eHCode{</sub>}XHCode{</span>}}



    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?162>

_______________________________________________
  Message posté via/par Puszcza
  http://puszcza.gnu.org.ua/



More information about the tex4ht mailing list