On Mon, Apr 22, 2019 at 10:17:28PM +0800, Jinsong Zhao wrote:

[...]

> I got the solution. Now the command defined as:

Glad you did :-)

> 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%
> }

I barely understand your code, but I seem to get that it helps
to stash the first arg #1 in a (special?) macro \pdfdestname.

Cheers
-- t

Attachment: signature.asc
Description: Digital signature

Reply via email to