Re: [NTG-context] interaction in a chapter footer

2016-03-03 Thread Hans Hagen

On 3/3/2016 11:45 PM, Alan BRASLAU wrote:

On Thu, 3 Mar 2016 22:42:22 +0100
Hans Hagen  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
___

Re: [NTG-context] interaction in a chapter footer

2016-03-03 Thread Alan BRASLAU
On Thu, 3 Mar 2016 22:42:22 +0100
Hans Hagen  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
___

Re: [NTG-context] interaction in a chapter footer

2016-03-03 Thread Hans Hagen

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
___

Re: [NTG-context] interaction in a chapter footer

2016-03-03 Thread Hans Hagen

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
___

[NTG-context] interaction in a chapter footer

2016-03-03 Thread Alan BRASLAU
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
___