diff options
author | Akira Yokosawa <akiyks@gmail.com> | 2023-07-07 21:08:06 +0900 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-07-07 09:29:10 -0700 |
commit | 853ca25284b9c3b30b09602c27b81e79899c36e5 (patch) | |
tree | 71e537fb42c949b6af72a5b7c93261415da17584 | |
parent | 59f5d250c85d4892f89b6da02862429dbfd36f91 (diff) | |
download | perfbook-853ca25284b9c3b30b09602c27b81e79899c36e5.tar.gz |
Use minipage environment in \ebresizeverb
In Ebook-size builds, tens of warnings from varwidth are emitted:
Package varwidth Warning: Failed to reprocess entire contents
on input line xxx.
It turns out that this is due to the wrong use of varwidth package.
Instead, the bare minipage environment suffices in \ebresizeverb.
Stop using varwidth and get rid of those warnings.
As a bonus, we no longer need ad-hoc \vspace*{} command at the
bottom of its definition.
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
-rw-r--r-- | perfbook-lt.tex | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/perfbook-lt.tex b/perfbook-lt.tex index 4c8870a1..842e0fc6 100644 --- a/perfbook-lt.tex +++ b/perfbook-lt.tex @@ -35,7 +35,6 @@ \captionsetup[listing]{font=small,labelsep=colon} \captionsetup[subfloat]{font=small} % \usepackage{breakurl} -\usepackage{varwidth} \usepackage{graphicx} \usepackage{rotating} \usepackage{setspace} @@ -541,12 +540,11 @@ \newcommand{\ebresizewidthsw}[1]{\resizebox{.95\textheight}{!}{#1}} \newcommand{\ebresizeverb}[2]{% \begin{lrbox}{\ebbox}% - \begin{varwidth}{\textwidth}% + \begin{minipage}{\textwidth}% {#2}% - \end{varwidth}% + \end{minipage}% \end{lrbox}% \resizebox{#1\textwidth}{!}{\usebox{\ebbox}}% - \vspace*{-7pt}% } \newcommand\ebFloatBarrier{\FloatBarrier} }{ |