BUG: Colour spilling in btxrendering
Dear list, I reported this already some time ago but apparently it went unnoticed. https://mailman.ntg.nl/pipermail/ntg-context/2016/086227.html When you place hyperlinks in the bibliography the colour »spills over«, see MWE below. The link is only on the string `Phys. Rev. 140 A1133–A1138 (1965)` but the whole line is coloured. Cheers, Henri --- \startbuffer[references] @article{Kohn1965, title = {Self-Consistent Equations Including Exchange and Correlation Effects}, author = {Kohn, W. and Sham, L. J.}, journal = {Phys. Rev.}, volume = {140}, issue = {4A}, pages = {A1133--A1138}, numpages = {0}, year = {1965}, month = {Nov}, publisher = {American Physical Society}, doi = {10.1103/PhysRev.140.A1133}, url = {https://link.aps.org/doi/10.1103/PhysRev.140.A1133} } \stopbuffer \setupinteraction[state=start] \usebtxdataset[references.buffer] \usebtxdefinitions[aps] \starttext \nocite{Kohn1965} \placelistofpublications \stoptext
This problem is still present in latest beta (see attached). I was unable to identify the cause. Please fix this. Bibliographies are somewhat unusable with coloured links right now. On Mon, 2017-05-08 at 09:43 +1200, Henri Menke wrote:
Dear list,
I reported this already some time ago but apparently it went unnoticed.
https://mailman.ntg.nl/pipermail/ntg-context/2016/086227.html
When you place hyperlinks in the bibliography the colour »spills over«, see MWE below. The link is only on the string `Phys. Rev. 140 A1133–A1138 (1965)` but the whole line is coloured.
Cheers, Henri
---
\startbuffer[references] @article{Kohn1965, title = {Self-Consistent Equations Including Exchange and Correlation Effects}, author = {Kohn, W. and Sham, L. J.}, journal = {Phys. Rev.}, volume = {140}, issue = {4A}, pages = {A1133--A1138}, numpages = {0}, year = {1965}, month = {Nov}, publisher = {American Physical Society}, doi = {10.1103/PhysRev.140.A1133}, url = {https://link.aps.org/doi/10.1103/PhysRev.140.A1133} } \stopbuffer
\setupinteraction[state=start]
\usebtxdataset[references.buffer] \usebtxdefinitions[aps]
\starttext
\nocite{Kohn1965} \placelistofpublications
\stoptext
On 08/08/2017 08:04 AM, Henri wrote:
This problem is still present in latest beta (see attached). I was unable to identify the cause. Please fix this. Bibliographies are somewhat unusable with coloured links right now.
Hi Henri, I don’t think there is a problem with the bibliographies. It is only how you set up interaction in the document: \setupinteraction[state=start, style=, color=, contrastcolor=] \enabledirectives[references.border] The directive only creates a gray border (which won’t be printed) to see where you may click. This fixes in my computer what I guess is your problem. I hope it helps, Pablo -- http://www.ousia.tk
On Tue, 2017-08-08 at 17:31 +0200, Pablo Rodriguez wrote:
On 08/08/2017 08:04 AM, Henri wrote:
This problem is still present in latest beta (see attached). I was unable to identify the cause. Please fix this. Bibliographies are somewhat unusable with coloured links right now.
Hi Henri,
I don’t think there is a problem with the bibliographies.
It is only how you set up interaction in the document:
\setupinteraction[state=start, style=, color=, contrastcolor=] \enabledirectives[references.border]
The directive only creates a gray border (which won’t be printed) to see where you may click.
This fixes in my computer what I guess is your problem.
I would call this a workaround. What I want are coloured links. Usually only the clickable area is coloured but in the bibliography it somehow "spills" over to the surrounding text as well.
I hope it helps,
Pablo
On 08/08/2017 11:02 PM, Henri wrote:
On Tue, 2017-08-08 at 17:31 +0200, Pablo Rodriguez wrote:
[...] This fixes in my computer what I guess is your problem.
I would call this a workaround. What I want are coloured links. Usually only the clickable area is coloured but in the bibliography it somehow "spills" over to the surrounding text as well.
You are right, Henri. My guess was wrong. Link is in both cases the same field (doi). But the color is spilled over the whole reference. Pablo -- http://www.ousia.tk
Hans has made changes to interaction in the latest beta, that I am only
now starting to test. Indeed, using the APS specification in
bibliographies, interaction was not limited to specific fields such as
titles or urls as is intended. This will be fixed.
Alan
On Tue, 8 Aug 2017 23:33:19 +0200
Pablo Rodriguez
On 08/08/2017 11:02 PM, Henri wrote:
On Tue, 2017-08-08 at 17:31 +0200, Pablo Rodriguez wrote:
[...] This fixes in my computer what I guess is your problem.
I would call this a workaround. What I want are coloured links. Usually only the clickable area is coloured but in the bibliography it somehow "spills" over to the surrounding text as well.
You are right, Henri. My guess was wrong.
Link is in both cases the same field (doi). But the color is spilled over the whole reference.
Pablo
On 8/9/2017 7:08 PM, Alan Braslau wrote:
Hans has made changes to interaction in the latest beta, that I am only now starting to test. Indeed, using the APS specification in bibliographies, interaction was not limited to specific fields such as titles or urls as is intended. This will be fixed. beware: there is two kinds o finteraction ... go to the outside world (url or doi), and go to the place where that citation takes place in the text
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (5)
-
Alan Braslau
-
Hans Hagen
-
Henri
-
Henri Menke
-
Pablo Rodriguez