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

Re: horizontal curly braces.



>by the way, when considering whether to use rules
>for extenders or small pieces, take into account that the rule
>approach yields lengths that exactly match the material being
>braced, while pieces will yield only an approximation. 

In the case of \overbrace and \underbrace you can use leaders to fill
the material precisely, in a similar fashion to \rightarrowfill.  An
appropriate definition would be something like (er, codes off the top
of his head):

\def\downbracefill{$\m@th\braceld
  \braceextd\mkern-\braceextwidth
  \cleaders\hbox{\braceextd}\hfill
  \mkern-\braceextwidth\braceextd
  \bracemidd
  \braceextd\mkern-\braceextwidth
  \leaders\hbox{\braceextd}\hfill
  \mkern-\braceextwidth\braceextd
  \bracerd$}

This definition works, as long as the uses of \overbrace{foo} are when
foo is wider than the width of
\braceld\braceextd\bracemidd\braceextd\bracerd.  The problem with
extension pieces is when that's not the case...

Alan.