zwol: stylized sketch of a face in profile (Default)
[personal profile] zwol

Anyone who can (a) comprehend what the following bit of mild gobbledygook does, and (b) tell me why my first attempt that used \@ifnextchar instead of \futurelet did not work, will win a fabulous no-prize.

\usepackage{varioref}
\makeatletter
\def\appos#1{\leavevmode\unskip, #1\commaunlesspunct}
\def\commaunlesspunct{\futurelet\@let@token\@commaunlesspunct}
\def\@commaunlesspunct
       {\ifx\@let@token\@sptoken,\else
        \ifx\@let@token\@xobeysp,\else
        \ifx\@let@token\space,\fi\fi\fi}
\makeatother
\renewcommand\reftextafter{\appos{on the next page}}
% ... similar redefinitions for the other reftext macros ...

[EDIT 20 minutes later: This version doesn't work either. AAARGH HELP.]

April 2017

S M T W T F S
      1
2345678
9101112131415
16171819 202122
23242526272829
30      

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 9th, 2026 05:35 pm
Powered by Dreamwidth Studios