diff options
author | Karl Berry <karl@freefriends.org> | 2011-03-25 22:35:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-03-25 22:35:33 +0000 |
commit | 4a417ddbdedf1c39f8ce6b841f979dde689ffc13 (patch) | |
tree | f9d0c6382b7d3c2bd8a5b06f8c0698ed677c9422 /Master/texmf-dist/tex/latex/oubraces/oubraces.sty | |
parent | 4929232e95fabffe6c167ee554ec6dc3863af674 (diff) |
oubraces (25mar11)
git-svn-id: svn://tug.org/texlive/trunk@21833 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/oubraces/oubraces.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oubraces/oubraces.sty | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/oubraces/oubraces.sty b/Master/texmf-dist/tex/latex/oubraces/oubraces.sty index ebe2a410369..e5adc2282a7 100644 --- a/Master/texmf-dist/tex/latex/oubraces/oubraces.sty +++ b/Master/texmf-dist/tex/latex/oubraces/oubraces.sty @@ -1,17 +1,17 @@ % oubraces.sty: Interleave \overbrace with \underbrace -% Donald Arseneau, 1993 % % \overunderbraces{upper_braces}{main_formula}{lower_braces} % -% Instructions are given below, after \endinput. +% Instructions are given below, after \endinput, and in oubraces.tex (.pdf) +% +% Copyright 1993,2011 Donald Arseneau, Vancouver, Canada % -% First, set catcode of @ in case it isn't a "letter" already -\expandafter\edef\csname REST@catcode\endcsname - {\catcode`\noexpand\@=\the\catcode`\@ - \let \csname SREST@catcode\endcsname \noexpand\UnDefinedButNoAt} -\catcode`\@=11 +% Redistribution and use, with or without modification, are permitted provided +% that the above copyright notice and this condition for use are retained. -\def\overunderbraces #1#2#3{{% +\begingroup +\catcode`\@=\catcode`A +\gdef\overunderbraces #1#2#3{{% \baselineskip\z@skip \lineskip4\p@ \lineskiplimit4\p@ \displaystyle % deliberately generate error if not in math mode! % first, do the top half of the alignment in a save-box ... @@ -28,6 +28,7 @@ \global\let\br\br@down #1\cr % upper braces #2\cr % main line of the formula \global\let\br\br@up #3\cr % lower braces +% \noalign{\kern2\p@}% % because \global\let\br\br@label #3\cr % lower labels }}% finished whole alignment and \vbox. \advance\dimen@\ht\z@ % calc. the necessary lowering @@ -36,12 +37,11 @@ % Three aliases for \br. % #1=number of spanned columns, #2=label -\def\br@up#1#2{\multispan{#1}\upbracefill} -\def\br@down#1#2{\multispan{#1}\downbracefill} -\def\br@label#1#2{\multispan{#1}\hidewidth $#2$\hidewidth} - -\REST@catcode +\gdef\br@up#1#2{\multispan{#1}\upbracefill} +\gdef\br@down#1#2{\multispan{#1}\downbracefill} +\gdef\br@label#1#2{\multispan{#1}\hidewidth $\scriptstyle {#2}$\hidewidth} +\endgroup \endinput % %----------------------------------------------------------------- |