ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Internal clickable links
@ 2014-09-02 21:49 Keith McKay
  2014-09-02 21:54 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Keith McKay @ 2014-09-02 21:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Colleagues

I'm setting up a document which at the end of each chapter will have a 
Glossary of word definitions.  To get to these definitions one would 
click on the word in the chapter which would take them to the page where 
the definition of the word is in the Glossary.  Once the user has done 
this, they could then click on the definition to go back to the original 
word in the chapter.  \footnote works after a fashion, however I would 
like the word to be clickable and the definition not to appear at the 
bottom of the page.  It's not really what I want.

Is there another way to get the functionality I'm looking for?

Thanks

Best Wishes
Keith McKay
___________________________________________________________________________________
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: Internal clickable links
  2014-09-02 21:49 Internal clickable links Keith McKay
@ 2014-09-02 21:54 ` Wolfgang Schuster
  2014-09-03  9:13   ` Keith McKay
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2014-09-02 21:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 02.09.2014 um 23:49 schrieb Keith McKay <mckaymeister@gmail.com>:

> Colleagues
> 
> I'm setting up a document which at the end of each chapter will have a Glossary of word definitions.  To get to these definitions one would click on the word in the chapter which would take them to the page where the definition of the word is in the Glossary.  Once the user has done this, they could then click on the definition to go back to the original word in the chapter.  \footnote works after a fashion, however I would like the word to be clickable and the definition not to appear at the bottom of the page.  It's not really what I want.
> 
> Is there another way to get the functionality I'm looking for?

The placement of footnotes at the bottom of the page can be disabled to flush them at another position, e.g. at the end of a chapter. Instead of footnotes you can use endnotes which are configures in this way or create your own note command.

Wolfgang
___________________________________________________________________________________
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: Internal clickable links
  2014-09-02 21:54 ` Wolfgang Schuster
@ 2014-09-03  9:13   ` Keith McKay
  2014-09-03  9:24     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Keith McKay @ 2014-09-03  9:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Thanks for the advice Wolfgang.
I went back to the wiki and found \setupfootnotes, \placefootnotes and 
\setupfootnotedefinition.  Playing around with these I almost get what I 
want.  What I don't get is two way interaction i.e. clicking on the 
superscript in the text doesn't take me to the footnote (or endnote in 
this case), but clicking on the superscript of the footnote takes me 
back to the word in the text.  I would really prefer to be able to click 
on a word to take me to the definition and click on the definition to 
take me back to the word.

Here is a test file to show the effect I found above:

\setupinteraction[state=start,
color=black]

\setupfootnotes[location=text,
interaction=yes,
bodyfont=11pt]

\setupfootnotedefinition

[headstyle=italic,

location=top,

color=red,

headcolor=blue]

\starttext

barley \footnote{barley used to make beer} hops

filter chocolate\footnote{chocolate used to make chocolate bars} malt

secondary fermentation\footnote{fermentation the process of beer making} 
adjunct

\page

Lorem\footnote{ipsum}

\page

\placefootnotes

\stoptext



Thanks and best wishes
Keith Mckay

On 02/09/2014 22:54, Wolfgang Schuster wrote:
> Am 02.09.2014 um 23:49 schrieb Keith McKay <mckaymeister@gmail.com>:
>
>> Colleagues
>>
>> I'm setting up a document which at the end of each chapter will have a Glossary of word definitions.  To get to these definitions one would click on the word in the chapter which would take them to the page where the definition of the word is in the Glossary.  Once the user has done this, they could then click on the definition to go back to the original word in the chapter.  \footnote works after a fashion, however I would like the word to be clickable and the definition not to appear at the bottom of the page.  It's not really what I want.
>>
>> Is there another way to get the functionality I'm looking for?
> The placement of footnotes at the bottom of the page can be disabled to flush them at another position, e.g. at the end of a chapter. Instead of footnotes you can use endnotes which are configures in this way or create your own note command.
>
> Wolfgang
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


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

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Internal clickable links
  2014-09-03  9:13   ` Keith McKay
@ 2014-09-03  9:24     ` Wolfgang Schuster
  2014-09-03  9:54       ` Keith McKay
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2014-09-03  9:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


Am 03.09.2014 um 11:13 schrieb Keith McKay <mckaymeister@gmail.com>:

> Thanks for the advice Wolfgang.
> I went back to the wiki and found \setupfootnotes, \placefootnotes and \setupfootnotedefinition.  Playing around with these I almost get what I want.  What I don't get is two way interaction i.e. clicking on the superscript in the text doesn't take me to the footnote (or endnote in this case), but clicking on the superscript of the footnote takes me back to the word in the text.  I would really prefer to be able to click on a word to take me to the definition and click on the definition to take me back to the word.

I can’t reproduce this behavior, both links from the footnote marker in the text and back from the footnote to the reference work for me.

\setupinteraction[state=start]

\setupnote[footnote][location=text]

\starttext

barley\footnote{barley} chocolate\footnote{chocolate}

\page

\placenotes[footnote]

\stoptext

Wolfgang

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

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Internal clickable links
  2014-09-03  9:24     ` Wolfgang Schuster
@ 2014-09-03  9:54       ` Keith McKay
  0 siblings, 0 replies; 5+ messages in thread
From: Keith McKay @ 2014-09-03  9:54 UTC (permalink / raw)
  To: ntg-context


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

I'm running ConText through TeXworks on my mac mini.  The console shows 
that I running Context Mkiv

This is LuaTeX, Version beta-0.76.0-2013061817 (rev 4627)

\write18 enabled.

(/usr/local/texlive/2013/texmf-dist/tex/context/base/cont-yes.mkiv


ConTeXt ver: 2013.05.28 00:36 MKIV current fmt: 2014.9.3 int: 
english/english


However, when I change the typesetting engine to Context(pdftex) or 
Context(XeTex) it works as you said it should.

I think I should maybe upgrade to the latest version of Context. :-[

Thanks for help

Best Wishes
Keith McKay

On 03/09/2014 10:24, Wolfgang Schuster wrote:
>
> Am 03.09.2014 um 11:13 schrieb Keith McKay <mckaymeister@gmail.com 
> <mailto:mckaymeister@gmail.com>>:
>
>> Thanks for the advice Wolfgang.
>> I went back to the wiki and found \setupfootnotes, \placefootnotes 
>> and \setupfootnotedefinition.  Playing around with these I almost get 
>> what I want.  What I don't get is two way interaction i.e. clicking 
>> on the superscript in the text doesn't take me to the footnote (or 
>> endnote in this case), but clicking on the superscript of the 
>> footnote takes me back to the word in the text.  I would really 
>> prefer to be able to click on a word to take me to the definition and 
>> click on the definition to take me back to the word.
>
> I can't reproduce this behavior, both links from the footnote marker 
> in the text and back from the footnote to the reference work for me.
>
> \setupinteraction[state=start]
>
> \setupnote[footnote][location=text]
>
> \starttext
>
> barley\footnote{barley} chocolate\footnote{chocolate}
>
> \page
>
> \placenotes[footnote]
>
> \stoptext
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


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

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2014-09-03  9:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-02 21:49 Internal clickable links Keith McKay
2014-09-02 21:54 ` Wolfgang Schuster
2014-09-03  9:13   ` Keith McKay
2014-09-03  9:24     ` Wolfgang Schuster
2014-09-03  9:54       ` Keith McKay

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