ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* URL styling in btx bibliography
@ 2017-02-03 22:26 Rik Kabel
  2017-02-04 16:10 ` Alan Braslau
  0 siblings, 1 reply; 3+ messages in thread
From: Rik Kabel @ 2017-02-03 22:26 UTC (permalink / raw)
  To: ntg-context


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

ConTeXters,

Is there a user-level control for the styling of urls in the new 
bibliography system? I use

    \setupurl[style=\addff{f:ns}\ss]

(where f:ns is a fontfeature definition for lining/new style numerals) 
for the rest of the document. The bibliography honors this formatting 
for urls present in bibtex note entries, but persists in serif and 
oldstyle (the document defaults) for urls provided by bibtex url entries.

-- 
Rik


[-- Attachment #1.2: Type: text/html, Size: 748 bytes --]

[-- Attachment #2: 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] 3+ messages in thread

* Re: URL styling in btx bibliography
  2017-02-03 22:26 URL styling in btx bibliography Rik Kabel
@ 2017-02-04 16:10 ` Alan Braslau
  2017-02-04 16:15   ` Alan Braslau
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Braslau @ 2017-02-04 16:10 UTC (permalink / raw)
  To: Rik Kabel; +Cc: mailing list for ConTeXt users

On Fri, 3 Feb 2017 17:26:35 -0500
Rik Kabel <context@rik.users.panix.com> wrote:

> Is there a user-level control for the styling of urls in the new 
> bibliography system? I use
> 
>     \setupurl[style=\addff{f:ns}\ss]
> 
> (where f:ns is a fontfeature definition for lining/new style
> numerals) for the rest of the document. The bibliography honors this
> formatting for urls present in bibtex note entries, but persists in
> serif and oldstyle (the document defaults) for urls provided by
> bibtex url entries.

The bibliography specifications use the command \hyphenatedurl{} to
flush the url (or doi) field.

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

* Re: URL styling in btx bibliography
  2017-02-04 16:10 ` Alan Braslau
@ 2017-02-04 16:15   ` Alan Braslau
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Braslau @ 2017-02-04 16:15 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

On Sat, 4 Feb 2017 09:10:33 -0700
Alan Braslau <alan.braslau@cea.fr> wrote:

> On Fri, 3 Feb 2017 17:26:35 -0500
> Rik Kabel <context@rik.users.panix.com> wrote:
> 
> > Is there a user-level control for the styling of urls in the new 
> > bibliography system? I use
> > 
> >     \setupurl[style=\addff{f:ns}\ss]
> > 
> > (where f:ns is a fontfeature definition for lining/new style
> > numerals) for the rest of the document. The bibliography honors this
> > formatting for urls present in bibtex note entries, but persists in
> > serif and oldstyle (the document defaults) for urls provided by
> > bibtex url entries.
> 
> The bibliography specifications use the command \hyphenatedurl{} to
> flush the url (or doi) field.
> 
> Alan

Hans,

This should probably be replaced by \url[]?

Alan

\unexpanded\def\url[#label]% move \hyphenatedurl to lua end (is already lua)
{\dontleavehmode
   \begingroup
   \useurlstyleandcolor\c!style\c!color
   \hyphenatedurl{\clf_geturl{#label}}%
   \endgroup}
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2017-02-04 16:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-03 22:26 URL styling in btx bibliography Rik Kabel
2017-02-04 16:10 ` Alan Braslau
2017-02-04 16:15   ` Alan Braslau

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