From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42162 Path: news.gmane.org!not-for-mail From: "Alan Stone" Newsgroups: gmane.comp.tex.context Subject: interactive reference in footer Date: Sun, 6 Jul 2008 16:43:43 +0200 Message-ID: <326847810807060743q2a56748geef8e1641924db74@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1063169684==" X-Trace: ger.gmane.org 1215355527 22526 80.91.229.12 (6 Jul 2008 14:45:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Jul 2008 14:45:27 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 06 16:46:13 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KFVVD-0000FY-Au for gctc-ntg-context-518@m.gmane.org; Sun, 06 Jul 2008 16:46:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 64CEA1FB3C; Sun, 6 Jul 2008 16:45:14 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30829-02; Sun, 6 Jul 2008 16:44:26 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4FA321FD54; Sun, 6 Jul 2008 16:44:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CDFE51FD54 for ; Sun, 6 Jul 2008 16:44:20 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30318-02-2 for ; Sun, 6 Jul 2008 16:43:46 +0200 (CEST) Original-Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.179]) by ronja.ntg.nl (Postfix) with ESMTP id 0717A1FC90 for ; Sun, 6 Jul 2008 16:43:44 +0200 (CEST) Original-Received: by ik-out-1112.google.com with SMTP id c21so839387ika.2 for ; Sun, 06 Jul 2008 07:43:43 -0700 (PDT) Original-Received: by 10.210.122.5 with SMTP id u5mr2186385ebc.73.1215355423725; Sun, 06 Jul 2008 07:43:43 -0700 (PDT) Original-Received: by 10.210.136.3 with HTTP; Sun, 6 Jul 2008 07:43:43 -0700 (PDT) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:42162 Archived-At: --===============1063169684== Content-Type: multipart/alternative; boundary="----=_Part_7778_17772223.1215355423727" ------=_Part_7778_17772223.1215355423727 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, How do you set an interactive link (hyperlink) to the table of contents in a footer ? I tried with \setupfootertexts[-1-][\but[toctoc]][-4-][-3-] and \reference[toctoc] % \ref[toctoc] gives the same error \placecontent This gives the following compile error: ! Undefined control sequence. \but [toctoc{}{}{} \firstoftwoarguments #1#2->#1 \doattributes ...sname #1#2\@EA \endcsname \fi {#4 }\dostopattributes \dosingletexts ...atetexts {#1#2#5}{#6{}{}{}}}}}}} \egroup ...?tk \v!footer \v!text \c!righttext } \@@nmpos {\getvalue {\??tk... \dododoplacelayouttextline ...#2 #3}\hbox to #1{#4 }\stoplayoutcomponent \get... ... l.45 \chapter{Chapter Testing} ? ! Emergency stop. \but [toctoc{}{}{} \firstoftwoarguments #1#2->#1 \doattributes ...sname #1#2\@EA \endcsname \fi {#4 }\dostopattributes \dosingletexts ...atetexts {#1#2#5}{#6{}{}{}}}}}}} \egroup ...?tk \v!footer \v!text \c!righttext } \@@nmpos {\getvalue {\??tk... \dododoplacelayouttextline ...#2 #3}\hbox to #1{#4 }\stoplayoutcomponent \get... ... l.45 \chapter{Chapter Testing} ! ==> Fatal error occurred, no output PDF file produced! Alan P.S. The "TeX for the Impatient" book mentions... an undefined control sequence, is one of the most common ones you can get. If you respond to the prompt with another '?', TEX will display the following message: Type to proceed, S to scroll future error messages, R to run without stopping, Q to run quietly, I to insert something, E to edit your file, 1 or ... or 9 to ignore the next 1 to 9 tokens of input, H for help, X to quit. sciTE exits the code after an emergency stop, so how do you enable it to accept the above mentioned '?' prompt response ? ------=_Part_7778_17772223.1215355423727 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

How do you set an interactive link (hyperlink) to the table of contents in a footer ?

I tried with

\setupfootertexts[-1-][\but[toctoc]][-4-][-3-]

and

\reference[toctoc]    % \ref[toctoc] gives the same error
\placecontent

This gives the following compile error:


! Undefined control sequence.
<argument> \but
                [toctoc{}{}{}
\firstoftwoarguments #1#2->#1
                            
\doattributes ...sname #1#2\@EA \endcsname \fi {#4
                                                  }\dostopattributes
\dosingletexts ...atetexts {#1#2#5}{#6{}{}{}}}}}}}
                                                  \egroup
<argument> ...?tk \v!footer \v!text \c!righttext }
                                                  \@@nmpos {\getvalue {\??tk...

\dododoplacelayouttextline ...#2 #3}\hbox to #1{#4
                                                  }\stoplayoutcomponent \get...
...
l.45 \chapter{Chapter Testing}
                             
?
! Emergency stop.
<argument> \but
                [toctoc{}{}{}
\firstoftwoarguments #1#2->#1
                            
\doattributes ...sname #1#2\@EA \endcsname \fi {#4
                                                  }\dostopattributes
\dosingletexts ...atetexts {#1#2#5}{#6{}{}{}}}}}}}
                                                  \egroup
<argument> ...?tk \v!footer \v!text \c!righttext }
                                                  \@@nmpos {\getvalue {\??tk...

\dododoplacelayouttextline ...#2 #3}\hbox to #1{#4
                                                  }\stoplayoutcomponent \get...
...
l.45 \chapter{Chapter Testing}
                             
!  ==> Fatal error occurred, no output PDF file produced!


Alan

P.S. The "TeX for the Impatient" book mentions...

an undefined control sequence, is one of the most
common ones you can get. If you respond to the prompt with another '?',
TEX will display the following message:
Type <return> to proceed, S to scroll future error messages,
R to run without stopping, Q to run quietly,
I to insert something, E to edit your file,
1 or ... or 9 to ignore the next 1 to 9 tokens of input,
H for help, X to quit.

sciTE exits the code after an emergency stop, so how do you enable
it to accept the above mentioned '?' prompt response ?

------=_Part_7778_17772223.1215355423727-- --===============1063169684== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1063169684==--