[texhax] Odd behavior in a \mathop

Michael Barr barr at math.mcgill.ca
Mon Nov 3 18:52:48 CET 2008


Well, you live and learn.  I never knew that.  I should have checked out 
\mathop in the TeXBook.

Thanks, Michael

On Mon, 3 Nov 2008, Aditya Mahajan wrote:

> On Mon, 3 Nov 2008, Michael Barr wrote:
>
>>  If you compile the file
>>  \documentclass{article}
>>  \newcommand\II{\mathop{I\mkern-1mu I}}
>>  \newcommand\I{\mathop{I}}
>>  \begin{document}
>>
>>  $AB\II L$
>>
>>  $AB\I L$
>>
>>  \end{document}
>>
>>  you will see (or I do anyway) that the I in the second, but not the first,
>>  formula is going distinctly below the line.  What is going on here?
>
> If its argument is a single character, \mathop centers it to with respect to 
> the math-axis.
>
> You can define
>
> \newcommand\I{\mathop{\kern0pt I}
>
> to avoid this.
>
> Aditya
>


More information about the texhax mailing list