GL
2011-03-26 17:33:37 UTC
Hello,
Mr Arseneau if you come here ;-)
I try to put a listings environment inside varwidth and get
Failed to reprocess entire contents
If you compile the following example you can see
the box built by listings. It starts with \mathon ends
with \mathoff.
Besides, if I add colors, there are whatsits in the box...
In \@***@sift you say:
\ifnum\***@deathcycles>33
\let\@***@sift\relax
\PackageWarning{varwidth}{Failed to reprocess entire contents}%
\fi
33 is written "hardly in the code" and I tried with 3333 but no success.
Do you think it would be possible for varwidth to get on with the
measure ? I've no idea ;-(
Thanks if you have a clue about where the barrier is.
% --------------------------------------------------------------
\documentclass [a4paper]{article}
\usepackage {listings,varwidth}
\begin{document}\makeatletter
\def\logbox #1{\begingroup
\edef\x{\endgroup \interactionmode \the\interactionmode\relax}%
\ifnum\tracingoutput>\z@ \ifnum\showboxdepth<10 \showboxdepth=10
\fi\ifnum\showboxbreadth<10 \showboxbreadth=10 \fi
\else \showoutput
\fi
\scrollmode \wlog{^^Jlogbox: #1}\showbox#1\x
}% \logbox
\setbox0=\hbox{%
\begin{varwidth}{\linewidth}
\begin{lstlisting}
a
\end{lstlisting}
\end{varwidth}
}
Varwidth box = \logbox0
\copy0
\end{document}\endinput
% --------------------------------------------------------------
Mr Arseneau if you come here ;-)
I try to put a listings environment inside varwidth and get
Failed to reprocess entire contents
If you compile the following example you can see
the box built by listings. It starts with \mathon ends
with \mathoff.
Besides, if I add colors, there are whatsits in the box...
In \@***@sift you say:
\ifnum\***@deathcycles>33
\let\@***@sift\relax
\PackageWarning{varwidth}{Failed to reprocess entire contents}%
\fi
33 is written "hardly in the code" and I tried with 3333 but no success.
Do you think it would be possible for varwidth to get on with the
measure ? I've no idea ;-(
Thanks if you have a clue about where the barrier is.
% --------------------------------------------------------------
\documentclass [a4paper]{article}
\usepackage {listings,varwidth}
\begin{document}\makeatletter
\def\logbox #1{\begingroup
\edef\x{\endgroup \interactionmode \the\interactionmode\relax}%
\ifnum\tracingoutput>\z@ \ifnum\showboxdepth<10 \showboxdepth=10
\fi\ifnum\showboxbreadth<10 \showboxbreadth=10 \fi
\else \showoutput
\fi
\scrollmode \wlog{^^Jlogbox: #1}\showbox#1\x
}% \logbox
\setbox0=\hbox{%
\begin{varwidth}{\linewidth}
\begin{lstlisting}
a
\end{lstlisting}
\end{varwidth}
}
Varwidth box = \logbox0
\copy0
\end{document}\endinput
% --------------------------------------------------------------