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.]

This account has disabled anonymous posting.
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

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. 7th, 2026 10:39 pm
Powered by Dreamwidth Studios