On 2017/1/20 14:13, Gunter Königsmann wrote:
One thing mmref for some reason cannot do is to make pdf links to
commands work whose names contain an underscore ("_"). If anybody has an
idea how to fix that this idea is welcome, too.
I have got a solution. And, after putting the definition of mmref into category-macros.texi, then mmref.tex and maxima_pdf.texi could be removed from info directory. Please find the patch to mmref. Note that, the patch depends on the version of texinfo.tex, here, the one stored in the info directory.
However, I don't understand the Makefile and friends, so I don't touch them.
--- info.old/category-macros.texi 2016-04-03 05:42:45.000000000 +0800
+++ info/category-macros.texi 2019-04-23 08:35:04.989170900 +0800
@@ -163,4 +163,25 @@
@tex
\global\def\linkcolor{0 .5 0}
\global\def\urlcolor{0 0 .5}
+
+\global\def\setpdfdestname#1{%
Tested the patch with the current release of texinfo and it works there, too => good work! Thanks a lot!
I have seen the patch is commit to the source code. In such case, the mmref.tex and maxima_pdf.texi in the info directory should be removed. Furthermore, the Makefile and friends also need to change correspondingly. However, I don't I don't understand them.
Best,
Jinsong
See commit 942fc018e.