diff options
author | Karl Berry <karl@freefriends.org> | 2014-03-16 21:44:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-03-16 21:44:47 +0000 |
commit | 4f68be5aab4542a33bb5426751e9734a11b90471 (patch) | |
tree | 68257a302367a9f1d7acacf9a04245b73367ef8c /Master/texmf-dist/tex/latex/verbatimbox | |
parent | 569deb81a37d567d56be480ec1af765229961d13 (diff) |
verbatimbox
git-svn-id: svn://tug.org/texlive/trunk@33197 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/verbatimbox')
-rw-r--r-- | Master/texmf-dist/tex/latex/verbatimbox/verbatimbox.sty | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/verbatimbox/verbatimbox.sty b/Master/texmf-dist/tex/latex/verbatimbox/verbatimbox.sty index 11443312a7e..dbfda1e3876 100644 --- a/Master/texmf-dist/tex/latex/verbatimbox/verbatimbox.sty +++ b/Master/texmf-dist/tex/latex/verbatimbox/verbatimbox.sty @@ -1,6 +1,6 @@ -\def\verbatimboxVersionNumber{v3.12 } +\def\verbatimboxVersionNumber{v3.13 } \ProvidesPackage{verbatimbox} - [2014/02/24 \verbatimboxVersionNumber + [2014/03/12 \verbatimboxVersionNumber Routines for placing verbatim text into boxes, useful in places where the verbatim environment is inaccessible. Secondarily, for adding vertical buffer around an object.] @@ -43,6 +43,8 @@ vertical buffer around an object.] % option to \theverbbox % -When using two lengths in \addvbuffer optional argument, % they MUST be individually in {}, rather than "~" or "\ " between +% 3.13 -Corrected residual bug from V3.11, when \addvbuffer called +% without an optional argument, \NeedsTeXFormat{LaTeX2e} \@ifundefined{verbatim@processline}{\RequirePackage{verbatim}}{} \usepackage{readarray} @@ -169,7 +171,7 @@ vertical buffer around an object.] \if #1t% % The t option is for outputting the savedverbbox inside a tabular % environment (else insufficent vertical space above box) - \addvbuffer[{\the\boxtopsep} {\the\boxbottomsep}]{\usebox{\savedverbbox}}% + \addvbuffer[{\boxtopsep} {\boxbottomsep}]{\usebox{\savedverbbox}}% \else% \usebox{\savedverbbox}% \fi% @@ -191,12 +193,12 @@ vertical buffer around an object.] \setlength\boxbottomsep{0pt} \long\def\add@vbuffer#1{\leavevmode\setbox\ps@tempboxa\hbox{#1}\ps@tempdima 0pt \advance\ps@tempdima \dp\ps@tempboxa \hbox{\lower\ps@tempdima\hbox - {\vbox{\hbox{\vbox{\vskip\boxtop@sep \box\ps@tempboxa \vskip - \boxbottom@sep}}}}}} + {\vbox{\hbox{\vbox{\vskip\boxtop@sep \box\ps@tempboxa \vskip + \boxbottom@sep}}}}}} \global\newlength\boxtop@sep \global\newlength\boxbottom@sep -\newcommand\addvbuffer[2][\the\boxtopsep\ \the\boxbottomsep]{% +\newcommand\addvbuffer[2][{\boxtopsep} {\boxbottomsep}]{% \getargsC{#1}% \setlength\boxtop@sep{\argi}% \if1\narg\setlength\boxbottom@sep{\argi}\else% |