ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* BUG: Colour spilling in btxrendering
@ 2017-05-07 21:43 Henri Menke
  2017-08-08  6:04 ` Henri
  0 siblings, 1 reply; 7+ messages in thread
From: Henri Menke @ 2017-05-07 21:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: BUG: Colour spilling in btxrendering
  2017-05-07 21:43 BUG: Colour spilling in btxrendering Henri Menke
@ 2017-08-08  6:04 ` Henri
  2017-08-08 15:31   ` Pablo Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Henri @ 2017-08-08  6:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1313 bytes --]

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

[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 13053 bytes --]

[-- Attachment #3: Type: text/plain, Size: 492 bytes --]

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: BUG: Colour spilling in btxrendering
  2017-08-08  6:04 ` Henri
@ 2017-08-08 15:31   ` Pablo Rodriguez
  2017-08-08 21:02     ` Henri
  0 siblings, 1 reply; 7+ messages in thread
From: Pablo Rodriguez @ 2017-08-08 15:31 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: BUG: Colour spilling in btxrendering
  2017-08-08 15:31   ` Pablo Rodriguez
@ 2017-08-08 21:02     ` Henri
  2017-08-08 21:33       ` Pablo Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Henri @ 2017-08-08 21:02 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: BUG: Colour spilling in btxrendering
  2017-08-08 21:02     ` Henri
@ 2017-08-08 21:33       ` Pablo Rodriguez
  2017-08-09 17:08         ` Alan Braslau
  0 siblings, 1 reply; 7+ messages in thread
From: Pablo Rodriguez @ 2017-08-08 21:33 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: BUG: Colour spilling in btxrendering
  2017-08-08 21:33       ` Pablo Rodriguez
@ 2017-08-09 17:08         ` Alan Braslau
  2017-08-09 17:21           ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Braslau @ 2017-08-09 17:08 UTC (permalink / raw)
  To: Pablo Rodriguez; +Cc: mailing list for ConTeXt users

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 <oinos@gmx.es> wrote:

> 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

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: BUG: Colour spilling in btxrendering
  2017-08-09 17:08         ` Alan Braslau
@ 2017-08-09 17:21           ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2017-08-09 17:21 UTC (permalink / raw)
  To: ntg-context

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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2017-08-09 17:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-07 21:43 BUG: Colour spilling in btxrendering Henri Menke
2017-08-08  6:04 ` Henri
2017-08-08 15:31   ` Pablo Rodriguez
2017-08-08 21:02     ` Henri
2017-08-08 21:33       ` Pablo Rodriguez
2017-08-09 17:08         ` Alan Braslau
2017-08-09 17:21           ` Hans Hagen

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