ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* interaction in a chapter footer
@ 2016-03-03 21:12 Alan BRASLAU
  2016-03-03 21:42 ` Hans Hagen
  2016-03-03 21:43 ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Alan BRASLAU @ 2016-03-03 21:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

Is it possible (without being too cleaver) to include interaction (a
hyperlink) in a chapter footer?

Alan

M(non-)WE:

\setupinteraction [state=start]

\definetext
  [chapterfooter]
  [footer]
  [{\goto{\CONTEXT\ garden}[url(http://http://wiki.contextgarden.net)]}]

\setuphead [chapter]
  [footer=chapterfooter]

\starttext

\startchapter [title=A chapter]

\input knuth

\stopchapter

\stoptext
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: interaction in a chapter footer
  2016-03-03 21:12 interaction in a chapter footer Alan BRASLAU
@ 2016-03-03 21:42 ` Hans Hagen
  2016-03-03 22:45   ` Alan BRASLAU
  2016-03-03 21:43 ` Hans Hagen
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2016-03-03 21:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 3/3/2016 10:12 PM, Alan BRASLAU wrote:
> Hello,
>
> Is it possible (without being too cleaver) to include interaction (a
> hyperlink) in a chapter footer?
>
> Alan
>
> M(non-)WE:
>
> \setupinteraction [state=start]
>
> \definetext
>    [chapterfooter]
>    [footer]
>    [{\goto{\CONTEXT\ garden}[url(http://http://wiki.contextgarden.net)]}]
>
> \setuphead [chapter]
>    [footer=chapterfooter]
>
> \starttext
>
> \startchapter [title=A chapter]
>
> \input knuth
>
> \stopchapter
>
> \stoptext

(partly-)MWE

\startsetups chapter:footer
     {\goto{\CONTEXT\ garden}[url(http://http://wiki.contextgarden.net)]}
\stopsetups

\definetext
   [chapterfooter]
   [footer]
   [\setups{chapter:footer}]


> ___________________________________________________________________________________
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: interaction in a chapter footer
  2016-03-03 21:12 interaction in a chapter footer Alan BRASLAU
  2016-03-03 21:42 ` Hans Hagen
@ 2016-03-03 21:43 ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2016-03-03 21:43 UTC (permalink / raw)
  To: ntg-context

On 3/3/2016 10:12 PM, Alan BRASLAU wrote:
> Hello,
>
> Is it possible (without being too cleaver) to include interaction (a
> hyperlink) in a chapter footer?
>
> Alan
>
> M(non-)WE:
>
> \setupinteraction [state=start]
>
> \definetext
>    [chapterfooter]
>    [footer]
>    [{\goto{\CONTEXT\ garden}[url(http://http://wiki.contextgarden.net)]}]
>
> \setuphead [chapter]
>    [footer=chapterfooter]
>
> \starttext
>
> \startchapter [title=A chapter]
>
> \input knuth
>
> \stopchapter
>
> \stoptext

(also-)MWE

   [{{\goto{\CONTEXT\ garden}[url(http://http://wiki.contextgarden.net)]}}]


> ___________________________________________________________________________________
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: interaction in a chapter footer
  2016-03-03 21:42 ` Hans Hagen
@ 2016-03-03 22:45   ` Alan BRASLAU
  2016-03-03 23:15     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Alan BRASLAU @ 2016-03-03 22:45 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

On Thu, 3 Mar 2016 22:42:22 +0100
Hans Hagen <pragma@wxs.nl> wrote:

> \startsetups chapter:footer
>      {\goto{\CONTEXT\
> garden}[url(http://http://wiki.contextgarden.net)]} \stopsetups
> 
> \definetext
>    [chapterfooter]
>    [footer]
>    [\setups{chapter:footer}]

Thanks,

I believe that the use of setups is the most simple and elegant
solution, rather than nesting additional grouping {} that leads to
messy source style.

Alan
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: interaction in a chapter footer
  2016-03-03 22:45   ` Alan BRASLAU
@ 2016-03-03 23:15     ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2016-03-03 23:15 UTC (permalink / raw)
  To: Alan BRASLAU; +Cc: mailing list for ConTeXt users

On 3/3/2016 11:45 PM, Alan BRASLAU wrote:
> On Thu, 3 Mar 2016 22:42:22 +0100
> Hans Hagen <pragma@wxs.nl> wrote:
>
>> \startsetups chapter:footer
>>       {\goto{\CONTEXT\
>> garden}[url(http://http://wiki.contextgarden.net)]} \stopsetups
>>
>> \definetext
>>     [chapterfooter]
>>     [footer]
>>     [\setups{chapter:footer}]
>
> Thanks,
>
> I believe that the use of setups is the most simple and elegant
> solution, rather than nesting additional grouping {} that leads to
> messy source style.

btw, you don't need the extra {} in the setup


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2016-03-03 23:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-03 21:12 interaction in a chapter footer Alan BRASLAU
2016-03-03 21:42 ` Hans Hagen
2016-03-03 22:45   ` Alan BRASLAU
2016-03-03 23:15     ` Hans Hagen
2016-03-03 21:43 ` 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).