ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* interactive reference in footer
@ 2008-07-06 14:43 Alan Stone
  2008-07-06 22:53 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Stone @ 2008-07-06 14:43 UTC (permalink / raw)
  To: ntg-context


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: interactive reference in footer
  2008-07-06 14:43 interactive reference in footer Alan Stone
@ 2008-07-06 22:53 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2008-07-06 22:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Alan Stone wrote:
> 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-]

\setupfootertexts
   [-1-]
   [{\button{somesymbol}[toctoc]}]
   [-4-]
   [-3-]

watch the {} around the command (else we get problems with [])

   [{\button{somesymbol}[toctoc]}]

   [{\goto{somesymbol}[toctoc]}]

the \but is only usable in menus

Hans

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-06 22:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-06 14:43 interactive reference in footer Alan Stone
2008-07-06 22:53 ` Hans Hagen

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).