Deactivate (back)links of the bibliography
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
On 10/6/24 04:37, Gerion Entrup wrote:
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
Hi, 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
Am Sonntag, 6. Oktober 2024, 13:34:19 MESZ schrieb Pablo Rodriguez via ntg-context:
On 10/6/24 04:37, Gerion Entrup wrote:
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
Hi, 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
On Sun, 06 Oct 2024 17:38:25 +0200
Gerion Entrup
Am Sonntag, 6. Oktober 2024, 13:34:19 MESZ schrieb Pablo Rodriguez via ntg-context:
On 10/6/24 04:37, Gerion Entrup wrote:
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
Hi, 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
On 6 Oct 2024, at 16:38, Gerion Entrup
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
participants (4)
-
Alan Braslau
-
Bruce Horrocks
-
Gerion Entrup
-
Pablo Rodriguez