On Wed, Feb 06, 2002 at 03:43:41PM +0100, Edwin Velds wrote:
> I have a small issue with brackets in equations, when I put an
> expression between brackets it sizes the symbol in such a way that it's
> equal size on both sides of the equation axis. But this can look might
> strange when you have a fraction in there which size is much larger on
> one side. A useless example of this:
> \left[\frac{\sqrt{\frac{E}{Z}}^\frac{4}{3}}{a}\right]^2
> Is there a way to make the brackets match the actual content (The way
> LyX itself shows it)?

A dumb solution is to put the following in the preamble:
\newlength{\rboxa}
\newlength{\rboxb}
\newcommand{\rbox}[1]{%
  \settodepth{\rboxa}{$#1$}%
  \settoheight{\rboxb}{$#1$}%
  \addtolength{\rboxa}{-\rboxb}%
  \raisebox{0.3\rboxa}{$#1$}}

and then use

\left[\rbox{\frac{\sqrt{\frac{E}{Z}}^\frac{4}{3}}{a}}\right]^2

> My second problem is with a long list of "List" style items. The spacing
> this items is a bit too much and I tried to reduce it with ERT, for
> instance:

Put \setlength{\itemsep}{0pt} in the first item of the list
(not before it).

Reply via email to