diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-13 00:00:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-13 00:00:01 +0000 |
commit | 73d0fff04ecb705176e32a12a5070fd59d1104bf (patch) | |
tree | fda3cd2e5c0eedb415d3fca8f75a03babcc967b2 /Master/texmf-dist/tex/latex/multirow/bigstrut.sty | |
parent | dbafb0ef601ebc7c793c783e3d455cf22011c712 (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/bigstrut.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/multirow/bigstrut.sty | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/multirow/bigstrut.sty b/Master/texmf-dist/tex/latex/multirow/bigstrut.sty new file mode 100644 index 00000000000..900e30895ad --- /dev/null +++ b/Master/texmf-dist/tex/latex/multirow/bigstrut.sty @@ -0,0 +1,41 @@ +%% +%% bigstrut.sty V1.0 (31-May-94) +%% +%% Author: Jerry Leichter <jerrold.leichter@smarts.com> +%% +%% V1.0 Split out as a separate style file. +%% +%% 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. +%% +% \bigstrut[x] produces a strut which is \bigstrutjot (2pt by default) higher, +% lower, or both than the standard array/table strut. Use it in table entries +% that are adjacent to \hline's to leave an extra bit of space - according to +% the TeXbook (page 246), "This is a little touch that improves the appearance +% of boxed tables; look for it as a mark of quality." +% +% Although you could use \bigstrut in an array, there isn't normally much +% point since arrays are "opened up" by \jot anyway. +% +% \bigstrut[t] adds height; \bigstrut[b] adds depth. Just \bigstrut adds +% both. So: Use \bigstrut[t] in the row just *after* an \hline; \bigstrut[b] +% in the row just *before*; and \bigstrut if there are \hline's both before +% and after. +% +% Spaces after the \bigstrut are ignored, even if it has an optional argument. +% Spaces before the \bigstrut are generally ignored (by a single \unskip). +% +% Note: The multirow style file makes use of \bigstrutjot. If both styles +% are used, they can be used in either order, as each checks to see if the +% other has already defined \bigstrutjot. However, the default values they +% set are different: If only multirow is used, \bigstrutjot will be set to +% 3pt. If bigstrut is used, with or without multirow, \bigstrutjot will be +% 2pt. + +\@ifundefined{bigstrutjot}{\newdimen\bigstrutjot}{}\bigstrutjot2pt +\def\bigstrut{\relax\@ifnextchar [{\@bigstrut}{\@bigstrut[x]}} +\def\@bigstrut[#1]{\unskip\@tempdima\ht\@arstrutbox \@tempdimb\dp\@arstrutbox + \ifx #1b\else \advance\@tempdima by \bigstrutjot\fi + \ifx #1t\else \advance\@tempdimb by \bigstrutjot\fi + \hbox{\vrule \@height\@tempdima \@depth\@tempdimb \@width\z@}\ignorespaces} |