elyxer-users
[Top][All Lists]
Advanced

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

Re: [eLyXer-users] Suggestion to add \stackrel support


From: Jose Ramon Alvarez Sanchez
Subject: Re: [eLyXer-users] Suggestion to add \stackrel support
Date: Sat, 09 Oct 2010 12:03:16 +0200

El sáb, 09-10-2010 a las 00:44 +0200, Alex Fernandez escribió:
> > and also adding the following into lyx.css (a first approach to mimic
> > stackrel appearance):
> I adjusted it a little bit, using 1em as vertical displacemenet from
> the top, instead of -1ex fro the bottom. It is simpler to understand
> IMHO (and also looks prettier).

Yes from top is more natural, but 1em can be too much in other cases
different from an arrow in the down part. In HTML the box height is 
fixed from the font size not from the real size of content (like LaTeX),
so in a case like the following:
$dp\stackrel{ppp}{\lim}bq$
the upper letters tail overlap with letters bellow with 1em.

Previous example looks better (similar to LaTeX) with "top: 0.7em;".

The rational unit should be "1ex", that in LaTeX is the height of an
"x" in the current font (while 1em is the width of an "M"), but in 
HTML 1ex = 0.5em fixed in most browsers.

Thanks for your nice work.
Jose R.





reply via email to

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