diff options
author | Karl Berry <karl@freefriends.org> | 2016-09-27 21:06:23 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-09-27 21:06:23 +0000 |
commit | c14fe77571416f823736ed0c6deae5f4fc808b16 (patch) | |
tree | bbdc50477ca6b93b028e62c4f40ffbf5d3545b2b /Master/texmf-dist/tex/latex/multirow/bigstrut.sty | |
parent | 56b3e6f789142cbecf567840f21d5525c0c50298 (diff) |
multirow (27sep16)
git-svn-id: svn://tug.org/texlive/trunk@42160 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 | 67 |
1 files changed, 31 insertions, 36 deletions
diff --git a/Master/texmf-dist/tex/latex/multirow/bigstrut.sty b/Master/texmf-dist/tex/latex/multirow/bigstrut.sty index 900e30895ad..379c581190a 100644 --- a/Master/texmf-dist/tex/latex/multirow/bigstrut.sty +++ b/Master/texmf-dist/tex/latex/multirow/bigstrut.sty @@ -1,41 +1,36 @@ %% -%% bigstrut.sty V1.0 (31-May-94) +%% This is file `bigstrut.sty', +%% generated with the docstrip utility. %% -%% Author: Jerry Leichter <jerrold.leichter@smarts.com> +%% The original source files were: %% -%% V1.0 Split out as a separate style file. +%% multirow.dtx (with options: `bigstrut') +%% +%% This is a generated file. +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3 of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3 or later is part of all distributions of LaTeX version +%% 2005/12/01 or later. +%% +%% Copyright (C) 1994 by Jerry Leichter +%% Copyright (C) 2016 by Piet van Oostrum <piet@vanoostrum.org> %% -%% 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 +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{bigstrut} + [2016/09/27 v2.0 + Provide larger struts in tabulars] +\@ifundefined{bigstrutjot}{\newdimen\bigstrutjot}{}\bigstrutjot=2pt +\newcommand\bigstrut[1][x]{% + \unskip\@tempdima=\ht\@arstrutbox \@tempdimb=\dp\@arstrutbox + \ifx #1b\relax \else \advance\@tempdima by \bigstrutjot\fi + \ifx #1t\relax \else \advance\@tempdimb by \bigstrutjot\fi \hbox{\vrule \@height\@tempdima \@depth\@tempdimb \@width\z@}\ignorespaces} +\endinput +%% +%% End of file `bigstrut.sty'. |