[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-AUCTeX] 11.83; Wrong intendation and vertical shifting in math

From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] 11.83; Wrong intendation and vertical shifting in math mode display
Date: Mon, 24 Jul 2006 20:24:10 +0200

* Frank Küster (2006-07-24) writes:

> In the following equation code, some things go wrong:

Here is the equation for reference:

  P(r) = 2 \int_0^{\pi} \frac{1}{2\pi} d\phi \cdot 
         2 \int_0^{\pi} \frac{1}{2\pi} 
                          4 \pi \left( 
                              r - r_0
                            \nicefrac{2}{3}\pi \langle r^2\rangle
                            2\langle r^2\rangle

> - the closing brace for the exponent that is started by `e^{' in the
>   ninth-last line is wrongly indented,

If I hit TAB with point in that line it is indented by two more spaces
(CVS Emacs, CVS AUCTeX).  The resulting position (as shown above)
looks correct to me.

> and the `-\frac' in the line
>   following `e^{' should be indented by two more places, too.

Why?  There is one level of parenthetical grouping which means it is
indented (compared to indentation of the line before) the amount
specified in `TeX-brace-indent-level' which is 2 by default.  That
means indentation in the example is correct.

> - The index zero two lines later looks weird - the underscore is in the
>   middle of the `0' instead near its bottom where it should be

The 0 is displayed as subscript because of the underscore in front of

> - in the two occurences of `^2' below, the digit is shifted below the
>   baseline instead above.

No, it's not shifted at all compared to the text it appears in.  It's
just made a little bit smaller.

The last two peculiarities will not appear in the next version of
AUCTeX because font locking of subscript and superscript will be
limited to one level.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]