Hey,
I’m trying to put together a document containing citations as well as a 
publication list. I would like to have the text for the citation black and the 
hyperlink in blue. Similar as suggested in 
https://wiki.contextgarden.net/References_notes_and_floats/Bibliography_and_citations#Colored_links_in_bibliography_entries
So for the main text, I do
\setupinteraction[
    state=start,
    color=blue,
    contrastcolor=,
    click=yes,
    style=,
]

And for the bibliography and publications

\setupinteraction[color=blue, contrastcolor=black]

This works well with context 2023.03.10 12:15, however, in more recent versions 
2024.06.21 23:45 and 2026.01.08 23:30, this stopped working and parts of the 
bibliography are all blue.
I tried to put together a minimal working example below.

Any ideas how to fix this?

Thank you very much in advance

Ben


\enableregime[utf]

% buffer for publications
\startbuffer[testdata]
@Article{Abbe:AmA9:413,
  author       = {Abbe, E.},
  title        = {Beitr{\"a}ge zur {T}heorie des {M}ikroskops und der 
mikroskopischen {W}ahrnehmung},
  journal      = {Arch. Mikrosk. Anat.},
  year         = 1873,
  volume       = 9,
  number       = 1,
  pages        = {413--418},
  ISSN         = {0176-7364},
  doi          = {10.1007/BF02956173},
  url          = {http://dx.doi.org/10.1007/BF02956173},
}

@Article{AbdElRahim:JPCA109:8507,
  author       = {{Abd El Rahim}, M and Antoine, R and Broyer, M and Rayane, D 
and Dugourd, Ph},
  title        = {Asymmetric top rotors in electric fields: influence of chaos 
and collisions in
                  molecular beam deflection experiments.},
  year         = 2005,
  month        = sep,
  journal      = {J. Phys. Chem. A},
  volume       = 109,
  number       = 38,
  pages        = {8507--8514},
  doi          = {10.1021/jp053127p},
  url          = {http://www.ncbi.nlm.nih.gov/pubmed/16834247},
}

@Article{Ablikim:PCCP19:13419,
  author       = {Ablikim, Utuq and Bomme, C{\'e}dric and Savelyev, Evgeny and 
Xiong, Hui and
                  Kushawaha, Rajesh and Boll, Rebecca and Amini, Kasra and 
Osipov, Timur and
                  Kilcoyne, David and Rudenko, Artem and Berrah, Nora and 
Rolles, Daniel},
  title        = {Isomer-dependent fragmentation dynamics of inner-shell 
photoionized
                  difluoroiodobenzene},
  journal      = {Phys. Chem. Chem. Phys.},
  year         = 2017,
  volume       = 19,
  number       = 21,
  pages        = {13419--13431},
  month        = may,
  url          = {http://dx.doi.org/10.1039/C7CP01379E},
  doi          = {10.1039/C7CP01379E},
}

@Article{Ablikim:RSI90:055103,
  author       = {Ablikim, Utuq and Bomme, Cédric and Osipov, Timur and Xiong, 
Hui and Obaid, Razib
                  and Bilodeau, René C. and Kling, Nora G. and Dumitriu, Ileana 
and Augustin, Sven
                  and Pathak, Shashank and Schnorr, Kirsten and Kilcoyne, David 
and Berrah, Nora and
                  Rolles, Daniel },
  title        = {A coincidence velocity map imaging spectrometer for ions and 
high-energy electrons
                  to study inner-shell photoionization of gas-phase molecules},
  journal      = {Rev. Sci. Instrum.},
  year         = 2019,
  volume       = 90,
  number       = 5,
  pages        = 055103,
  url          = {https://doi.org/10.1063/1.5093420},
  doi          = {10.1063/1.5093420},
}

@Article{AboRiziq:2011jy,
  author       = {Abo-Riziq, Ali and Grace, Louis and Crews, Bridgit and 
Callahan, Michael P and van
                  Mourik, Tanja and Vries, Mattanjah S de},
  title        = {Conformational Structure of Tyrosine, Tyrosyl-glycine, and 
Tyrosyl-glycyl-glycine
                  by Double Resonance Spectroscopy},
  journal      = {J. Phys. Chem. A},
  year         = 2011,
  volume       = 115,
  number       = 23,
  pages        = {6077--6087},
  month        = jun,
  doi          = {10.1021/jp110601w},
}

@Article{AboRiziq:acie45:5166,
  title        = {Spectroscopy of Isolated Gramicidin Peptides},
  author       = {Abo-Riziq, Ali and Crews, Bridgit O. and Callahan, Michael P. 
and Grace, Louis and
                  de Vries, Mattanjah S.},
  journal      = {Angew. Chem. Int. Ed.},
  volume       = 45,
  number       = 31,
  pages        = {5166–5169},
  year         = 2006,
  doi          = {10.1002/anie.200601516},
  url          = 
{http://onlinelibrary.wiley.com/doi/10.1002/anie.200601516/full},
}

@Article{Abouafmarguin:CPL447:232,
  title        = {Nuclear spin conversion of water diluted in solid argon at 
4.2 {K}: {E}nvironment
                  and atmospheric impurities effects},
  author       = {L. Abouaf-Marguin and A.-M. Vasserot and C. Pardanaud and X. 
Michaut},
  journal      = {Chem. Phys. Lett.},
  volume       = 447,
  number       = 4,
  pages        = {232–235},
  year         = 2007,
  doi          = {10.1016/j.cplett.2007.09.014},
  url          = 
{http://www.sciencedirect.com/science/article/pii/S0009261407012377},
}

@InProceedings{Abouali:IEEEconf2007:1076-1080,
  author       = {O. {Abouali} and G. {Ahmadi}},
  booktitle    = {2007 2nd IEEE International Conference on Nano/Micro 
Engineered and Molecular
                  Systems},
  title        = {An Axisymmetric Model for Diffusion of Nano-Particles},
  doi          = {10.1109/NEMS.2007.352204},
  url          = {https://doi.org/10.1109/NEMS.2007.352204},
  year         = 2007,
  pages        = {1076--1080},
  keywords     = {Brownian motion;diffusion;nanoparticles;axisymmetric
                  model;diffusion;nanoparticles;Eulerian approach;concentration 
distribution
                  equation;mean square radial displacements;Cartesian 
directions;Langevin
                  equation;Brownian motion;radial direction;Lagrangian particle 
trajectory
                  analysis;one-way coupling model;particle equation of
                  motion;Equations;Computational modeling;Predictive 
models;Lagrangian
                  functions;Systems engineering and theory;Mechanical 
engineering;USA
                  Councils;Performance analysis;Analysis of variance;Numerical
                  simulation;nano;micro;diffusion;axi-symmetric},
}

@Article{Abraham:AO37:1762,
  author       = {Eric R.I. Abraham and Eric A. Cornell},
  journal      = {Applied Optics},
  number       = 10,
  pages        = {1762--1763},
  publisher    = {OSA},
  title        = {Teflon feedthrough for coupling optical fibers into ultrahigh 
vacuum systems},
  volume       = 37,
  month        = {Apr},
  year         = 1998,
  doi          = {10.1364/AO.37.001762},
}

@Article{Abraham:RCMP28:1,
  title        = {Zur elektrodynamik bewegter k{\"o}rper},
  author       = {Abraham, Max},
  journal      = {Rendiconti del Circolo Matematico di Palermo (1884-1940)},
  volume       = 28,
  number       = 1,
  pages        = {1--28},
  year         = 1909,
  publisher    = Springer,
}
\stopbuffer

% buffer for bibliography
\startbuffer[testbib]
@Article{Akkerman:JChemCryst33:969,
  abstract     = {A single crystal of phase 1 of 1,2-difluoroethane was grown 
from the melt directly
                  on an X-ray diffractometer close to the melting point of 169 
K. It crystallizes in
                  the monoclinic space group C2/c with lattice parameters a = 
7.775(4), b =
                  4.4973(7), c = 9.024(3) Angstrom, beta = 101.73(1)degrees, V 
= 308.9(2)
                  Angstrom(3), d(calc) = 1.420 g cm(-3) for Z = 4. A second 
phase of
                  1,2-difluoroethane was obtained under similar conditions 
which crystallizes in the
                  orthorhombic space group P2(1)2(1)2(1) with the unit cell 
parameters a =
                  8.0467(16), b = 4.5086(9), c = 8.279(2) Angstrom, V = 
300.36(11) Angstrom(3),
                  d(calc) = 1.461 g cm(-3) for Z = 4. In both phases the 
1,2-difluoroethane
                  molecules adopt the gauche conformation with F - C - C - F 
torsion angles close to
                  68degrees. Crystals of 1,2-diiodoethane C2H4I2 were grown 
from pentane at
                  -30degreesC. A platelet single crystal of the size 0.35 X 
0.25 X 0.03 mm was
                  measured with Mo Kalpha-radiation at 153 K. 1,2-Diiodoethane 
crystallizes in the
                  monoclinic space group P2(1)/n with a unit cell of a = 
4.6051(7), b = 12.939(2), c
                  = 4.7318(7) Angstrom, c = 4.7318(7) Angstrom, beta = 
104.636(3)degrees, V =
                  272.79(7) Angstrom(3). Z = 2, d(calc) = 3.431 g cm(-3), 
mu(MoKalpha) = 11.353
                  mm(-1). In the molecule the two neighboring iodine atoms are 
positioned anti. The
                  shortest intermolecular contacts occur via iodine-iodine 
interactions resulting in
                  layers of molecules in the crystal.},
  author       = {F Akkerman and J Buschmann and D Lentz and P Luger and E 
Rodel},
  journal      = {J Chem Crystallogr},
  month        = {Jan},
  number       = 12,
  pages        = {969--975},
  title        = {Crystal and molecular structure of 1,2-difluoroethane and 
1,2-diiodoethane},
  volume       = 33,
  year         = 2003,
}

@Article{Akre:2001,
  author       = {Akre, R and Bentson, L and Emma, P and Krejcik, P},
  journal      = {Conf.Proc.},
  pages        = {2353--2355},
  reportnumber = {SLAC-PUB-8864, PAC-2001-WPAH116, LCLS-TN-00-12},
  title        = {A transverse RF deflecting structure for bunch length and 
phase space diagnostics},
  volume       = {C0106181},
  year         = 2001,
}

@Article{Aksakal:NIMPRS600:155,
  author       = {Hüsnü Aksakal and Ertan Arıkan},
  title        = {A feasibility study of TAC IR-FEL project },
  journal      = {Nuclear Instruments and Methods in Physics Research Section 
A: Accelerators, Spectrometers,
                  Detectors and Associated Equipment},
  volume       = 620,
  number       = {2–3},
  pages        = {155--158},
  year         = 2010,
  ISSN         = {0168-9002},
  doi          = {10.1016/j.nima.2010.04.016},
  url          = 
{http://www.sciencedirect.com/science/article/pii/S0168900210008168},
}

@Article{Al-Refaie:MNRAS448:1704,
  title        = {{ExoMol} line lists --- {VIII}. A variationally computed line 
list for
                  hot formaldehyde},
  author       = {Al-Refaie, Ahmed F and Yachmenev, Andrey and Tennyson, 
Jonathan and Yurchenko,
                  Sergei N},
  journal      = {Monthly Notices of the Royal Astronomical Society},
  volume       = 448,
  number       = 2,
  pages        = {1704--1714},
  year         = 2015,
  publisher    = {Oxford University Press},
  doi          = {10.1093/mnras/stv091},
}


@Article{Al-Refaie:MNRAS461:1012,
  doi          = {10.1093/mnras/stw1295},
  url          = {https://doi.org/10.1093\%2Fmnras\%2Fstw1295},
  year         = 2016,
  month        = {may},
  publisher    = {Oxford University Press ({OUP})},
  volume       = 461,
  number       = 1,
  pages        = {1012--1022},
  author       = {Ahmed F. Al-Refaie and Oleg L. Polyansky and Roman I. 
Ovsyannikov and Jonathan
                  Tennyson and Sergei N. Yurchenko},
  title        = {{ExoMol} line lists --- {XV}. A new hot line list for 
hydrogen peroxide},
  journal      = {Monthly Notices of the Royal Astronomical Society}
,
}

@Article{AlAmiedy:JPD16:1429,
  abstract     = {A novel type of electrostatic state selector for molecules 
has been devised which
                  has a high transparency to rejected molecules and permits 
focusing of molecules
                  with mu eff<0. The electrode geometry is that of a 
single-wire helix placed
                  concentrically within a coaxial outer electrode, which may be 
the vacuum chamber
                  itself. Theoretical analysis of the electrostatic potential 
within the helix
                  reveals that the device has the characteristics of a 'leaky' 
potential well for a
                  molecular beam passing through it. An optimal electrode 
geometry of a helix pitch
                  three to four times the helix radius is calculated. 
Experimental results are
                  obtained for the unifilar helix focuser in a molecular beam 
maser oscillator and
                  spectrometer, the latter being used as a beam detector. 
Whilst the state selector
                  in its present form appears to have state selection 
properties somewhat inferior
                  to existing electrostatic focusers, it is unique in respect 
of its simplicity of
                  construction},
  author       = {Al-{A}miedy, D. H. H. and Dugdale, D. E. and Lain\'e, D. C.},
  journal      = {J. Phys. D: Appl. Phys.},
  pages        = {1429--1438},
  title        = {Single-wire helical state selector for molecular-beam masers},
  volume       = 16,
  year         = 1983,
}

@Article{AlAmiedy:PL66A:94,
  author       = {Al-{A}miedy, D. H. H. and Lain\'e, D. C.},
  doi          = {10.1016/0375-9601(78)90005-1},
  journal      = {Physics Letters A},
  number       = 2,
  pages        = {94--96},
  title        = {Ring-type state selector and space focuser for molecules with 
a positive induced
                  dipole moment},
  volume       = 66,
  year         = 1978,
}

@Article{AlRefaie:JINST14:P10003,
  author       = {Ahmed Al-Refaie and Melby Johny and Jonathan Correa and David 
Pennicard and Peter
                  Svihra and Andrei Nomerotski and Sebastian Trippel and Jochen 
Küpper},
  title        = {{PymePix}: A {P}ython library for {SPIDR} readout of 
{T}imepix3},
  year         = 2019,
  journal      = {Journal of Instrumentation},
  volume       = 14,
  number       = 10,
  pages        = {P10003},
  doi          = {10.1088/1748-0221/14/10/P10003},
  url          = 
{https://iopscience.iop.org/article/10.1088/1748-0221/14/10/P10003/meta},
  archiveprefix= {arXiv},
  eprint       = {1905.07999},
  primaryclass = {physics},
}


@Article{AlRefaie:MNRAS448:1704,
  year         = 2015,
  month        = feb,
  publisher    = OUP,
  volume       = 448,
  number       = 2,
  pages        = {1704--1714},
  author       = {A. F. Al-Refaie and A. Yachmenev and J. Tennyson and S. N. 
Yurchenko},
  title        = {{ExoMol} line lists - {VIII}. {A} variationally computed line 
list for hot
                  formaldehyde},
  journal      = {Monthly Notices of the Royal Astronomical Society},
  doi          = {10.1093/mnras/stv091},
  url          = {https://doi.org/10.1093/mnras/stv091},
}

@Article{Alauddin:PCCP17:2169,
  author       = {Alauddin, Mohammad and Biswal, Himansu S. and Gloaguen, Eric 
and Mons, Michel},
  title        = {Intra-residue interactions in proteins: interplay between 
serine or cysteine side
                  chains and backbone conformations{,} revealed by laser 
spectroscopy of isolated
                  model peptides},
  journal      = {Physical Chemistry Chemical Physics},
  year         = 2015,
  volume       = 17,
  issue        = 3,
  pages        = {2169--2178},
  publisher    = {The Royal Society of Chemistry},
  doi          = {10.1039/C4CP04449E},
  url          = {http://dx.doi.org/10.1039/C4CP04449E},
  abstract     = {Intra-residue interactions play an important role in proteins 
by influencing local
                  folding of the backbone. Taking advantage of the capability 
of gas phase
                  experiments to provide relevant information on the intrinsic 
H-bonding pattern of
                  isolated peptide chains{,} the intra-residue interactions of 
serine and cysteine
                  residues{,} i.e.{,} OH/SH[three dots{,} centered]OC(i) C6 and 
NH(i)[three dots{,}
                  centered]O/S C5 interactions in Ser/Cys residues{,} are 
probed by laser
                  spectroscopy of isolated peptides. The strength of these 
local side chain-main
                  chain interactions{,} elegantly documented from their IR 
spectral features for
                  well-defined conformations of the main chain{,} demonstrates 
that a subtle
                  competition exists between the two types of intra-residue 
bond: the C6 H-bond is
                  the major interaction with Ser{,} in contrast to Cys where C5 
interaction takes
                  over. The restricted number of conformers observed in the gas 
phase experiment
                  with Ser compared to Cys (where both extended and folded 
forms are observed) also
                  suggests a significant mediation role of these intra-residue 
interactions on the
                  competition between the several main chain folding patterns.},
}

@InBook{Albert:HRS,
  author       = {Albert, Sieghard and Albert, Karen Keppler and Quack, Martin},
  publisher    = Wiley,
  ISBN         = 9780470749593,
  title        = {High-Resolution {F}ourier Transform Infrared Spectroscopy},
  booktitle    = {Handbook of High‐resolution Spectroscopy},
  doi          = {10.1002/9780470749593.hrs042},
  url          = 
{https://onlinelibrary.wiley.com/doi/abs/10.1002/9780470749593.hrs042},
  year         = 2011,
}

@Article{Albert:PRX10:031050,
  doi          = {10.1103/physrevx.10.031050},
  url          = {https://doi.org/10.1103/physrevx.10.031050},
  year         = 2020,
  month        = sep,
  publisher    = {American Physical Society},
  volume       = 10,
  pages        = 031050,
  number       = 3,
  author       = {Victor V. Albert and Jacob P. Covey and John Preskill},
  title        = {Robust Encoding of a Qubit in a Molecule},
  journal      = {Physical Review X},
}

@Book{Alberts:Routledge:2002,
  author       = {Alberts, B. and Johnson, A. and Lewis, J. and Walter, P. and 
Raff, M. and Roberts,
                  K.},
  title        = {Molecular Biology of the Cell 4th Edition: International 
Student Edition},
  year         = 2002,
  publisher    = {Routledge},
  ISBN         = 9780815332886,
  url          = {https://books.google.de/books?id=ozigkQEACAAJ}
,
}

@Article{Ali:NIMB149:490,
  author       = {I. Ali and R. Dörner and O. Jagutzki and S. Nüttgens and V. 
Mergel and L.
                  Spielberger and Kh. Khayyat and T. Vogt and H. Bräuning and 
K. Ullmann and R.
                  Moshammer and J. Ullrich and S. Hagmann and K.-O. Groeneveld 
and C.L. Cocke and H.
                  Schmidt-Böcking},
  title        = {Multi-hit detector system for complete momentum balance in 
spectroscopy in
                  molecular fragmentation processes},
  journal      = {Nuclear Instruments and Methods in Physics Research Section 
B: Beam Interactions with Materials
                  and Atoms},
  volume       = 149,
  number       = 4,
  pages        = {490--500},
  year         = 1999,
  ISSN         = {0168-583X},
  doi          = {10.1016/S0168-583X(98)00916-1},
  url          = {http://dx.doi.org/10.1016/S0168-583X(98)00916-1},
}
\stopbuffer

\setupinteraction[
    state=start,
    color=blue,
    contrastcolor=,
    click=yes,
    style=,
]
\placebookmarks[chapter,section,subsection,subsubsection][chapter,section]
\setupinteractionscreen[option=bookmark]

% enable tracing
\enabletrackers[publications, publications.crossref, publications.details, 
publications.cite, publications.strings]

\usebtxdataset[testbib.buffer]
\usebtxdefinitions[aps]
\setupbtx[dataset=main]
\definebtxrendering[bibrendering][aps][dataset=main]
\usebtxdefinitions[aps]
\setupbtx[aps][etallimit=30]
\setupbtx[aps:cite:num][separator:2={\btxcomma}]
\setupbtx[default:cite][alternative=authoryear]
\setupbtxrendering[aps][repeat=yes, continue=yes, method=global]

\starttext

\section{Text}
Some person said something \cite[Alberts:Routledge:2002]

\placefigure[here][fig:test]{A figure}{\externalfigure[cornell.jpg][width=5cm]}

A~\cite[Albert:PRX10:031050] lot~\in{Figure}[fig:test]
of~\cite[Alauddin:PCCP17:2169]  random~\cite[AlAmiedy:PL66A:94, 
Al-Refaie:MNRAS448:1704] 
text \cite[Ali:NIMB149:490] with not sense~\cite[Al-Refaie:MNRAS461:1012].



\section{Bibliography}
\setupinteraction[state=start, color=blue, contrastcolor=black, click=yes]
\placelistofpublications

\section{Publications}
\usebtxdataset[ancient philosophy][testdata.buffer]
\usebtxdefinitions[apa]
\definebtxrendering[ancient philosophy][apa][
  dataset=ancient philosophy,
  specification=apa,
  sorttype=list,
  etallimit=30, % Doesn't work for some reason
]
%\setupbtx[apa][etallimit=30] Doesn't work for some reason

\placebtxrendering[ancient philosophy][method=dataset]

\stoptext




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

maillist : [email protected] / 
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
___________________________________________________________________________________

Reply via email to