help-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-texinfo] pdf links can not understand underscore ("_")


From: Jinsong Zhao
Subject: Re: [help-texinfo] pdf links can not understand underscore ("_")
Date: Mon, 22 Apr 2019 22:17:28 +0800 (CST)

At 2019-04-22 21:27:21, address@hidden wrote:
>On Mon, Apr 22, 2019 at 09:19:15PM +0800, Jinsong Zhao wrote:
>
>[...]
>
>> Maybe, but I don't know.
>>
>> Here is a MWE. On page two, if you click on "not_work",  you will find that you can not jump to page one. But "work" let you back.
>>
>> Any solution? Thanks.
>
>I'm a bit tight on time, so I can't run tests for you. Have you tried
>to escape the underscore? In (La)TeX you'd write '\_' for an underscore
>(unescaped, it would make a subscript). So perhaps writing '@_' instead
>of just '_' would work for texinfo?
>
>Cheers
>-- tomás

I got the solution. Now the command defined as:

def\mmref#1#2{%
\setpdfdestname{#1}%
 {\leavevmode%
  \special{pdf:bann << /Border [0 0 0] /Type /Annot /Subtype /Link /A
        << /S /GoTo /D (\pdfdestname) >> >>}%
 }%
 \setcolor{\linkcolor}%
 #2%
 \endlink%
}

Best,
Jinsong
reply via email to

[Prev in Thread] Current Thread [Next in Thread]