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@xxxxxxxxx> --- perfbook-lt.tex | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/perfbook-lt.tex b/perfbook-lt.tex index 4c8870a135d9..842e0fc6b924 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} }{ -- 2.25.1