ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Deactivate (back)links of the bibliography
@ 2024-10-06  2:37 Gerion Entrup
  2024-10-06 11:34 ` [NTG-context] " Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Gerion Entrup @ 2024-10-06  2:37 UTC (permalink / raw)
  To: ntg-context


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

Hi,

when typesetting bibliographies, ConTeXt seems to link back to the (first?) citation within the text.
A side effect is that the whole reference entry is colored in the link color.

Is there a possibility to deactivate the back linking or limit it to the key?
This is also relevant, when the bibliography contains additional URLs or DOIs that link to external resources but are not highlighted since all surrounding text is colored in the same way.

Here is a MWE:
```
\setupinteraction[state=start, color=red]

\startbuffer[testdata]
@Book{knuth1,
        author = {Donald E. Knuth},
        title = {TEX and METAFONT. New directions in typesetting},
        year = {1979},
        publisher = {Addison-Wesley},
}
@Article{someother,
        author = {Some Person and Some Otherperson},
        title = {Another title},
        year = {1900},
}
\stopbuffer

\usebtxdataset[main][testdata.buffer]
\usebtxdefinitions[aps]
\setupbtx[dataset=main]
\definebtxrendering[bibrendering][aps][dataset=main]

\starttext

Knuth developed \TeX \cite[knuth1].
Several persons said something \cite[someother].

\placelistofpublications[bibrendering]

\stoptext
```
(The whole bibliography entry is red here.)

Gerion

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 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] 5+ messages in thread

* [NTG-context] Re: Deactivate (back)links of the bibliography
  2024-10-06  2:37 [NTG-context] Deactivate (back)links of the bibliography Gerion Entrup
@ 2024-10-06 11:34 ` Pablo Rodriguez via ntg-context
  2024-10-06 15:38   ` Gerion Entrup
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2024-10-06 11:34 UTC (permalink / raw)
  To: ntg-context; +Cc: Pablo Rodriguez

On 10/6/24 04:37, Gerion Entrup wrote:
> Hi,
> > when typesetting bibliographies, ConTeXt seems to link back to the
> (first?) citation within the text.
> A side effect is that the whole reference entry is colored in the
> link color.>
> Is there a possibility to deactivate the back linking or limit it to
> the key?
Hi Gerion,

\setupbtx[interaction=stop] disables all interaction.

Other values are: number text page all (according to
https://www.pragma-ade.com/general/manuals/mkiv-publications.pdf#page=17).

Just in case it might help,

Pablo
___________________________________________________________________________________
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] 5+ messages in thread

* [NTG-context] Re: Deactivate (back)links of the bibliography
  2024-10-06 11:34 ` [NTG-context] " Pablo Rodriguez via ntg-context
@ 2024-10-06 15:38   ` Gerion Entrup
  2024-10-07  1:12     ` Alan Braslau via ntg-context
  2024-10-07 23:53     ` Bruce Horrocks
  0 siblings, 2 replies; 5+ messages in thread
From: Gerion Entrup @ 2024-10-06 15:38 UTC (permalink / raw)
  To: ntg-context; +Cc: Pablo Rodriguez


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

Am Sonntag, 6. Oktober 2024, 13:34:19 MESZ schrieb Pablo Rodriguez via ntg-context:
> On 10/6/24 04:37, Gerion Entrup wrote:
> > Hi,
> > > when typesetting bibliographies, ConTeXt seems to link back to the
> > (first?) citation within the text.
> > A side effect is that the whole reference entry is colored in the
> > link color.>
> > Is there a possibility to deactivate the back linking or limit it to
> > the key?
> Hi Gerion,
> 
> \setupbtx[interaction=stop] disables all interaction.
> 
> Other values are: number text page all (according to
> https://www.pragma-ade.com/general/manuals/mkiv-publications.pdf#page=17).

Thank you, but it disables the interaction at all. I would like to have the citation linked to its bibliography entry but not the other way around.
I also tested the other values without any visible change.

Gerion

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 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] 5+ messages in thread

* [NTG-context] Re: Deactivate (back)links of the bibliography
  2024-10-06 15:38   ` Gerion Entrup
@ 2024-10-07  1:12     ` Alan Braslau via ntg-context
  2024-10-07 23:53     ` Bruce Horrocks
  1 sibling, 0 replies; 5+ messages in thread
From: Alan Braslau via ntg-context @ 2024-10-07  1:12 UTC (permalink / raw)
  To: Gerion Entrup; +Cc: mailing list for ConTeXt users, Alan Braslau

On Sun, 06 Oct 2024 17:38:25 +0200
Gerion Entrup <gerion.entrup@flump.de> wrote:

> Am Sonntag, 6. Oktober 2024, 13:34:19 MESZ schrieb Pablo Rodriguez
> via ntg-context:
> > On 10/6/24 04:37, Gerion Entrup wrote:
> > > Hi,
> > > > when typesetting bibliographies, ConTeXt seems to link back to
> > > > the
> > > (first?) citation within the text.
> > > A side effect is that the whole reference entry is colored in the
> > > link color.>
> > > Is there a possibility to deactivate the back linking or limit it
> > > to the key?
> > Hi Gerion,
> > 
> > \setupbtx[interaction=stop] disables all interaction.
> > 
> > Other values are: number text page all (according to
> > https://www.pragma-ade.com/general/manuals/mkiv-publications.pdf#page=17).
> 
> Thank you, but it disables the interaction at all. I would like to
> have the citation linked to its bibliography entry but not the other
> way around. I also tested the other values without any visible change.
> 
> Gerion

I use

\setupinteraction
  [state=start,
   color=,
   contrastcolor=,
  ]

for colored links are kind-of pedestrian anyways, a MS/Word-like habit.

Alan
___________________________________________________________________________________
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] 5+ messages in thread

* [NTG-context] Re: Deactivate (back)links of the bibliography
  2024-10-06 15:38   ` Gerion Entrup
  2024-10-07  1:12     ` Alan Braslau via ntg-context
@ 2024-10-07 23:53     ` Bruce Horrocks
  1 sibling, 0 replies; 5+ messages in thread
From: Bruce Horrocks @ 2024-10-07 23:53 UTC (permalink / raw)
  To: ntg-context mailing list

On 6 Oct 2024, at 16:38, Gerion Entrup <gerion.entrup@flump.de> wrote:
> 
> Thank you, but it disables the interaction at all. I would like to have the citation linked to its bibliography entry but not the other way around.

Hi Gerion,

You can make a change to your local version of Context to deactivate the back linking.

1) Goto the home directory where Context is installed (the one with “install.sh" in it)

2) Edit the file tex/texmf-context/tex/context/base/mkiv/publ-ini.lua

3) Goto line 2313 which should read:

     local interactive = not rendering.collected

4) Immediately after it, add the line:

     interactive = false

5) Close and save the file

6) Re-make Context using the command

     context —-make

Now generate your document again: the back linking should be disabled but the forward links should still work.

Caveats:
- only tested on your MWE - a longer document may reveal problems with this hack
- remember that if you install a Context update then you will lose the change and will need to do it again.

Regards,
—
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2024-10-07 23:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-06  2:37 [NTG-context] Deactivate (back)links of the bibliography Gerion Entrup
2024-10-06 11:34 ` [NTG-context] " Pablo Rodriguez via ntg-context
2024-10-06 15:38   ` Gerion Entrup
2024-10-07  1:12     ` Alan Braslau via ntg-context
2024-10-07 23:53     ` Bruce Horrocks

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