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/doc/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/doc/latex/verbatimbox')
-rw-r--r-- | Master/texmf-dist/doc/latex/verbatimbox/verbatimbox.pdf | bin | 255749 -> 257027 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/verbatimbox/verbatimbox.tex | 30 |
2 files changed, 24 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox.pdf b/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox.pdf Binary files differindex 85057cbf55a..494eb024445 100644 --- a/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox.pdf +++ b/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox.pdf diff --git a/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox.tex b/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox.tex index 5534cd5e4a8..6ae49988981 100644 --- a/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox.tex +++ b/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox.tex @@ -12,12 +12,6 @@ % This work has the LPPL maintenance status `maintained'. % % The Current Maintainer of this work is Steven B. Segletes. -% Revisions: -% 2.01 -Added LPPL License info to package -% 3.0 -Added myverbbox environment -% -Corrected problem when no optional arguments are passed to -% verbbox environment -% -Added optional arguments to \addvbuffer % \parskip 1em \parindent 0em @@ -498,6 +492,30 @@ third line \end{verbbox} \rl\theverbbox +There is also a quirk with the macro \verb|\addvbuffer|. +If the \verb|\addvbuffer| macro adds negative space below an argument, +the argument is +vertically shifted downward by the same amount. For example, +compare the following constructions, +\verb|\fbox{gb}| and \verb|\fbox{\addvbuffer[-3pt]{gb}}|: +\fbox{gb}\fbox{\addvbuffer[-3pt]{gb}}. +In the latter case, the box is bottom-trimmed, but the result is shifted downward. +This adverse outcome can generally be overcome with a countering +\verb|\raisebox|, +\fbox{gb}\fbox{\raisebox{3pt}{\addvbuffer[-3pt]{gb}}}. +However, if the \verb|\raisebox| would otherwise place +the new box above the baseline, the effect of the +\verb|\addvbuffer| on the bottom of the box is spoiled, as in the +comparison given by the constructions +\verb|\fbox{\addvbuffer[-3pt]{X}}| versus +\verb|\fbox{\raisebox{3pt}{\addvbuffer[-3pt]{X}}}| +which produces this result: +\fbox{\addvbuffer[-3pt]{X}}\fbox{\raisebox{3pt}{\addvbuffer[-3pt]{X}}}. +Note how 3pt are not trimmed from the bottom of the second box. +For this reason, the \verb|\raisebox| remedy has not been incorporated into the definition +of \verb|\addvbuffer|; instead, the quirk has been allowed to stand. + + \section{Acknowledgements} I would like to thank Dr. David Carlisle for his great assistance |