ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Alan Stone" <software.list.1es9s@gmail.com>
To: ntg-context@ntg.nl
Subject: interactive reference in footer
Date: Sun, 6 Jul 2008 16:43:43 +0200	[thread overview]
Message-ID: <326847810807060743q2a56748geef8e1641924db74@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2166 bytes --]

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 ?

[-- Attachment #1.2: Type: text/html, Size: 5271 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

             reply	other threads:[~2008-07-06 14:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-06 14:43 Alan Stone [this message]
2008-07-06 22:53 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=326847810807060743q2a56748geef8e1641924db74@mail.gmail.com \
    --to=software.list.1es9s@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).