summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/multirow/bigdelim.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-13 00:00:01 +0000
committerKarl Berry <karl@freefriends.org>2006-01-13 00:00:01 +0000
commit73d0fff04ecb705176e32a12a5070fd59d1104bf (patch)
treefda3cd2e5c0eedb415d3fca8f75a03babcc967b2 /Master/texmf-dist/tex/latex/multirow/bigdelim.sty
parentdbafb0ef601ebc7c793c783e3d455cf22011c712 (diff)
multirow
git-svn-id: svn://tug.org/texlive/trunk@1118 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/multirow/bigdelim.sty')
-rw-r--r--Master/texmf-dist/tex/latex/multirow/bigdelim.sty68
1 files changed, 68 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/multirow/bigdelim.sty b/Master/texmf-dist/tex/latex/multirow/bigdelim.sty
new file mode 100644
index 00000000000..72eda5ae2df
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/multirow/bigdelim.sty
@@ -0,0 +1,68 @@
+% bigdelim.sty
+% version 1.0
+% Nov 5, 1999
+% Piet van Oostrum <piet@cs.uu.nl>
+% From bigbrace.sty : Oct 2, 1994 \Oystein Bache <bache@kjemi.unit.no>
+% from: \dobrace by piet@cs.ruu.nl (Piet van Oostrum):
+%%
+%% This file may be distributed under the terms of the LaTeX Project Public
+%% License, as described in lppl.txt in the base LaTeX distribution.
+%% Either version 1 or, at your option, any later version.
+%%
+%
+% Usage in a tabular or array:
+% \usepackage{multirow}
+% \usepackage{bigdelim}
+% \ldelim({n}{w}[text]
+% \rdelim){n}{w}[text]
+% Use these commands in a column of a tabular or array. They generate a big
+% parenthesis/brace extending over the next n rows (including this one).
+% The corresponding entries in the next rows must explicitely be given as
+% empty cells. The first parameter must be the delimiter to be used, e.g.
+% \{ \} [ ] ( ), in fact any parameter that can be used with \left and
+% \right. The text is optional and is set centered to the left of
+% \ldelim and to the right of \rdelim. w must be the width reserved for
+% the brace and text. If you have a recent version of multirow.sty {w} may
+% be given as {*}, but this may cause the braces to be too small. Also with
+% a recent version of multirow.sty the commands may be used in the last row
+% of the extension with a negative n parameter. This is useful in
+% combination with the colortbl package (see multirow.sty)
+% If there are unusually large rows you may have to enlarge n (you can use
+% non-integral values).
+% If you have horizontal lines that interact with the braces you are
+% advised to use the hhline package to make the lines.
+
+\def\ldelim#1#2#3{\@ifnextchar[{\@ldelim{#1}{#2}{#3}}{\@ldelim{#1}{#2}{#3}[\null]}}
+\def\@ldelim#1#2#3[#4]%
+ {\multirow{#2}{#3}{%
+ \ensuremath
+ {\left.\vcenter{\hsize=0pt\vrule height
+ \ifnum #2<0 -\fi#2\baselineskip width 0pt}%
+ \textrm{#4}\right#1}}}
+%
+\def\rdelim#1#2#3{\@ifnextchar[{\@rdelim{#1}{#2}{#3}}{\@rdelim{#1}{#2}{#3}[\null]}}
+\def\@rdelim#1#2#3[#4]%
+ {\multirow{#2}{#3}{%
+ \ensuremath
+ {\left#1\vcenter{\hsize=0pt\vrule height
+ \ifnum #2<0 -\fi#2\baselineskip width 0pt}%
+ \textrm{#4}\right.}}}
+%
+\endinput
+%
+% Example:
+\documentclass{article}
+\usepackage{multirow}
+\usepackage{bigdelim}
+\begin{document}
+
+\begin{equation}
+ \begin{array}{ccccccc}
+ \ldelim({4}{4mm}& x & x & x & x &\rdelim){4}{4mm} \\
+ & x & x & x & x & & i\\
+ & x & x & x & x & & j\\
+ & x & x & x & x & \\
+ & & u & v & &
+ \end{array}
+\end{equation}
+\end{document}