Please how do I stop at all cost in the following? Note: \leavevmode is no rescue.
\documentclass[crop]{standalone}
\def\z#1#2{%
\ifnum#1<\numexpr#2+1\relax
\noindent\hfill#1%
\ifnum#1=#2\relax
\hfill\null\endgraf
\else
\ifdefined\xz
\hfill\number\numexpr#1+1\hfill\null\endgraf
\else
\let\xz\relax\hfill\null\endgraf
\fi
\fi
\expandafter\z\expandafter{\number\numexpr#1+2\expandafter}%
\expandafter{\number#2\expandafter}%
\fi
}
\begin{document}
\z19
\stop
\end{document}

\documentclass{article}is used, but not if\documentclass[crop]{standalone}is in effect. Am I missing something? – Mico Jul 07 '12 at 02:31! Missing } inserted.as the error: replace thecropoption bypreviewto get! You can't use `\end' in internal vertical mode., which relates more to the title. – Joseph Wright Jul 07 '12 at 06:36