On Wed, Mar 14, 2007 at 10:25:56AM +0100, Enrico Forestieri wrote:
> Maybe LyX displaces too much super and subscripts, such that \left
> and \right delimiters are higher than necessary.
> I really don't care, but does the attached patch give a less uglier
> aspect in those cases? BTW, I think that with this patch the aspect
> on screen is closer to the dvi output.
> 
> -- 
> Enrico

> Index: src/mathed/InsetMathScript.C
> ===================================================================
> --- src/mathed/InsetMathScript.C      (revision 17442)
> +++ src/mathed/InsetMathScript.C      (working copy)
> @@ -203,13 +203,13 @@ int InsetMathScript::nwid() const
>  
>  int InsetMathScript::nasc() const
>  {
> -     return nuc().size() ? nuc().ascent() : 5;
> +     return nuc().size() ? (3 * nuc().ascent()) / 4 : 5;
>  }
>  
>  
>  int InsetMathScript::ndes() const
>  {
> -     return nuc().size() ? nuc().descent() : 0;
> +     return nuc().size() ? (3 * nuc().descent()) / 4 : 0;
>  }
>  


I think the exact rules are in the TeX book, or at least some kind
of approximation... If that's not too difficult, we should try to
use this (at least the rules for displayed math, inline is too dense for
editing).

Andre'

Reply via email to