|
From: | Jinsong Zhao |
Subject: | [help-texinfo] pdf links can not understand underscore ("_") |
Date: | Mon, 22 Apr 2019 15:13:58 +0800 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
Hi there,In a manual, I use the following code with XeTeX to create links for cross-reference. If the #1 contains an underscore ("_"), the link generated dose not work.
Sorry for no minimal example. You can refer to http://maxima.sourceforge.net/docs/manual/maxima.pdf, page 27, for example, ``kill'' and ``run_testsuite'' in green color. They are make with the same command. However, the ``kill'' link works, but ``run_testsuite'' does not work.
\def\mmref#1#2{% {\leavevmode% \special{pdf:bann << /Border [0 0 0] /Type /Annot /Subtype /Link /A << /S /GoTo /D (#1) >> >>}% }% \setcolor{\linkcolor}% #2% \endlink% }The above code is steal from the latest texinfo.tex. Any suggestion will be really appreciated.
BTW, is it possible to create a cross-reference without pages. The @ref, @xref, or @pxref all have pages in the final output. I just hope to cross refer to a node with color pdf links.
Best, Jinsong
[Prev in Thread] | Current Thread | [Next in Thread] |