Christopher Creutzig wrote:
Christopher Creutzig wrote:
Taco Hoekwater wrote:
Is this not the same problem as the one that was mentioned last week (the one that requires the core-lst.tex that Hans posted as attachment)?
As a short term measure, I have included
\def\linklisttoelement#1#2#3#4#5% % list location format page data {\gotonextinternal\currentlist{#2}{#4}{#5}}
into my document and got the menu I wanted – no spurious numbers any more and the hyperlinks do work. YMMV.
Technical discussion (probably should go to the dev-list):
Since I have no clear view of where else the code is used, I'm not sure whichplace to fix, but the definition (and comment) of \linklisttoelement and \gotonextinternal do not agree on what to print:
Note that the comment here refers to a fifth argument which does not exist:
\def\linklisttoelement#1#2#3#4% % list location format page data {\gotonextinternal\currentlist{#1}{#3}{#4}}
Therefore, \gotonextinternal in its fourth argument gets the page number. It expects “text” in there and dutifully passes it to \gotorealpage, where it is printed.
your patch will break the list handler; a quick glance learns me that in the following case we have one arg too much (some time ago i cleaned up part of the list macros and it seems that this indirect call was not done). (core-int.tex:) \def\dodomenulistelement#1#2#3#4#5#6#7% {\setbox0=\hbox {\let\gotolocation\gobbleoneargument % hack to catch last [] % \locationclickfalse % ipv ^ \docheckrealreferencepage{#7}% \setlocationboxyes {\??am#1}% % needed ! []% no settings {\limitatetext{#5}{\getvalue{\??li#2\c!maxwidth}}{\unknown}}% % needed ! []}% normally the destination, catch by gobble \@@amboxcommand\do@@amposition{#1}{#7}% beware, we pass the pagenumber {\ignorespaces\linklisttoelement{#3}{#6}{#7}{\box0}\unskip}\\} ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------