ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Links
@ 2024-01-08 13:10 Ursula Hermann
  2024-01-08 14:59 ` [NTG-context] Links Henning Hraban Ramm
  0 siblings, 1 reply; 3+ messages in thread
From: Ursula Hermann @ 2024-01-08 13:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Dear List,
Is this the right way?
I want to use linked bibliography numbers, linked Chapter, section subsection, linked margin numbers, in the text.

\setupinteraction[state=start]
\starttext
Der Wert von \m{y = f(x)} ist unabhängig von der Wahl\par von \m{x\doubleprime} ist gleichbedeutend mit \m{∃y : ∀x : f(x) = y} \par (Beutelspacher [\hyphenatedurl {10},S.54]).
\stoptext

Many thanks
Uschi

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Links
  2024-01-08 13:10 [NTG-context] Links Ursula Hermann
@ 2024-01-08 14:59 ` Henning Hraban Ramm
  2024-01-09  9:29   ` Ursula Hermann
  0 siblings, 1 reply; 3+ messages in thread
From: Henning Hraban Ramm @ 2024-01-08 14:59 UTC (permalink / raw)
  To: ntg-context

Am 08.01.24 um 14:10 schrieb Ursula Hermann:
> Dear List,
> 
> Is this the right way?
> 
> I want to use linked bibliography numbers, linked Chapter, section 
> subsection, linked margin numbers, in the text.
> 
> \setupinteraction[state=start]

This is essential.

> 
> \starttext
> 
> Der Wert von \m{y = f(x)} ist unabhängig von der Wahl\par von 
> \m{x\doubleprime} ist gleichbedeutend mit \m{∃y : ∀x : f(x) = y} \par 
> (Beutelspacher [\hyphenatedurl {10},S.54]).
> 
> \stoptext

\hyphenatedurl only changes the hyphenation of its content, it doesn’t 
create a link. In your example it makes no sense.

Generally, you need an anchor (link target) to link to, e.g.

\startchapter[title={My chapter},reference=chap:first]
or
\chapter[chap:first]{My chapter}

This works the same for other structure levels. I’m not sure about 
bibliography, but I think you must use the bib entry code.

You can also set anchors manually using \textreference and \pagereference.

Then you can use \in[chap:first], \about[chap:first] or \at[chap:first].

For external links, you use \goto (it’s a bit extensive).

Please look up the syntax reference in the wiki.

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Links
  2024-01-08 14:59 ` [NTG-context] Links Henning Hraban Ramm
@ 2024-01-09  9:29   ` Ursula Hermann
  0 siblings, 0 replies; 3+ messages in thread
From: Ursula Hermann @ 2024-01-09  9:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear Henning, 

Many thanks .

Uschi 

-----Ursprüngliche Nachricht-----
Von: Henning Hraban Ramm <texml@fiee.net> 
Gesendet: Montag, 08. Jänner 2024 16:00
An: ntg-context@ntg.nl
Betreff: [NTG-context] Re: Links

Am 08.01.24 um 14:10 schrieb Ursula Hermann:
> Dear List,
> 
> Is this the right way?
> 
> I want to use linked bibliography numbers, linked Chapter, section 
> subsection, linked margin numbers, in the text.
> 
> \setupinteraction[state=start]

This is essential.

> 
> \starttext
> 
> Der Wert von \m{y = f(x)} ist unabhängig von der Wahl\par von 
> \m{x\doubleprime} ist gleichbedeutend mit \m{∃y : ∀x : f(x) = y} \par 
> (Beutelspacher [\hyphenatedurl {10},S.54]).
> 
> \stoptext

\hyphenatedurl only changes the hyphenation of its content, it doesn’t create a link. In your example it makes no sense.

Generally, you need an anchor (link target) to link to, e.g.

\startchapter[title={My chapter},reference=chap:first] or \chapter[chap:first]{My chapter}

This works the same for other structure levels. I’m not sure about bibliography, but I think you must use the bib entry code.

You can also set anchors manually using \textreference and \pagereference.

Then you can use \in[chap:first], \about[chap:first] or \at[chap:first].

For external links, you use \goto (it’s a bit extensive).

Please look up the syntax reference in the wiki.

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive  : https://github.com/contextgarden/context
wiki     : https://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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2024-01-09  9:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-08 13:10 [NTG-context] Links Ursula Hermann
2024-01-08 14:59 ` [NTG-context] Links Henning Hraban Ramm
2024-01-09  9:29   ` Ursula Hermann

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