Gavin Smith <[email protected]> writes:

> As it happens, there was a hook recently added to texinfo.tex to omit
> the page number, which looks a lot like the patch you sent (change on
> 2020-11-17).  If you say "@set txiomitrefpg" the page numbers won't be
> output.  I've uploaded the newer texinfo.tex to ftp.gnu.org/gnu/texinfo
> now.  This is still not documented anywhere.

Hi Gavin,

That hook does not work quite the way I would like. Since you only test
if txiomitrefpg is ever set, there is little discretion possible. What I
would like is the ability to selectively include (or exclude) page
refs. E.g. define

\def\pagelessref#1{\txiomitrefpgtrue\ref{#1}}
\def\pagefulref#1{\txiomitrefpgfalse\ref{#1}}

and intermingle their use.

In texinfo.tex, rather than

\expandafter\ifx\csname SETtxiomitxrefpg\endcsname\relax

have

\iftxiomitrefpg

Leo

Reply via email to