[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: @var{x_1} is funny in pdf
From: |
Gavin Smith |
Subject: |
Re: @var{x_1} is funny in pdf |
Date: |
Sun, 17 Jan 2021 13:44:35 +0000 |
User-agent: |
Mutt/1.9.4 (2018-02-28) |
On Thu, Jan 14, 2021 at 12:28:03PM -0600, Leo Butler wrote:
> For posterity, the problem was caused by a macro with an obvious error
> in it:
>
> \global\def\setpdfdestname#1{%
> \turnoffactive
> \def\pdfdestname{#1}%
> \txiescapepdf\pdfdestname
> }
>
> See the bottom of:
> https://sourceforge.net/p/maxima/code/ci/master/tree/doc/info/category-macros.texi
>
> (There is no need to comment on this, I didn't write the macro and the
> authors are not party to this discussion, afaik).
>
> [snip]
> >
> > What is that problem?
>
> Let me explain why, I think, that macro above and its companion (\mmref)
> were written. The authors were looking for a `minimally-intrusive'
> reference for our pdf manual.
>
> I think that the problem they encountered is that \ref does not have
> enough hooks in it to customize the appearance (and a second problem is
> that the hooks that are there are not documented except in texinfo.tex).
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.