[PRL] mathit

Eli Barzilay eli at barzilay.org
Wed Apr 12 09:51:03 EDT 2006


On Apr 12, Richard Cobbe wrote:
> 
> Unfortunately, Dave is right; \mathit doesn't quite do the right thing
> for hyphens, as you can see from the following LaTeX file:
> 
>     \documentclass{article}
>     \begin{document}
>     \textit{big-identifier} \qquad $\mathit{big-identifier}$
>     \end{document}
> 
> You'd like the right-hand one to look like the left-hand one, but it
> doesn't.

(Ugh, you're right, I should have tried it...)


> I had to do a usenet search for this, but the answer seems to be:
> 
>     \documentclass{article}
> 
>     \usepackage{amstext}     %% included in recent teTeX distributions
> 
>     \begin{document}
> 
>     $a_{\text{\textit{big-identifier}}}$
> 
>     \end{document}
> 
> Essentially, \text is like \mbox, except that it does scaling right
> in superscripts and subscripts.

Ah!  I knew there was something I used that made it work right...  The
main problem with the ams packages is that it's hard to remember
they're there...

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!



More information about the PRL mailing list