ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* urls longer than 57 characters fail in the bibliography
@ 2010-05-27 20:27 Michael Saunders
  2010-05-27 20:40 ` taco
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Saunders @ 2010-05-27 20:27 UTC (permalink / raw)
  To: ntg-context

\usemodule[bib]

\newcommand{\myurl}[2]{\useURL[#1][#2][][\hyphenatedurl{#2}]{\ss\from[#1]}}

\starttext
\cite[test]
\placepublications[criterium=all]
\stoptext

works with:

@BOOK{test,
  title = {test title},
  publisher = {test title},
  year = {2010},
  author = {test author},
  note = {\myurl{testurl}{123456789012345678901234567890123456789012345678901234567}}
}


but fails with:

note = {\myurl{testurl}{1234567890123456789012345678901234567890123456789012345678}}

however, this \myurl statement works in the body.
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: urls longer than 57 characters fail in the bibliography
  2010-05-27 20:27 urls longer than 57 characters fail in the bibliography Michael Saunders
@ 2010-05-27 20:40 ` taco
  2010-05-29 22:52   ` Martin Schröder
  0 siblings, 1 reply; 4+ messages in thread
From: taco @ 2010-05-27 20:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Michael Saunders wrote:
> \usemodule[bib]
> 
> \newcommand{\myurl}[2]{\useURL[#1][#2][][\hyphenatedurl{#2}]{\ss\from[#1]}}
> 
> \starttext
> \cite[test]
> \placepublications[criterium=all]
> \stoptext
> 
> works with:
> 
> @BOOK{test,
>   title = {test title},
>   publisher = {test title},
>   year = {2010},
>   author = {test author},
>   note = {\myurl{testurl}{123456789012345678901234567890123456789012345678901234567}}
> }
> 
> 
> but fails with:
> 
> note = {\myurl{testurl}{1234567890123456789012345678901234567890123456789012345678}}
> 
> however, this \myurl statement works in the body.

this is a bibtex bug (just look at the generated bbl file and you will 
see what happened). I don't think there is anything that can be done
about the bibtex output, so you will probably have to define the url
as a macro outside of the bib file

Best wishes,
Taco
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: urls longer than 57 characters fail in the bibliography
  2010-05-27 20:40 ` taco
@ 2010-05-29 22:52   ` Martin Schröder
  2010-05-30  6:48     ` Taco Hoekwater
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Schröder @ 2010-05-29 22:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2010/5/27 taco <taco@elvenkind.com>:
> this is a bibtex bug (just look at the generated bbl file and you will see

Which may be fixed in BibTeX 0.99d (included in TL2010).

Best
    Martin
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: urls longer than 57 characters fail in the bibliography
  2010-05-29 22:52   ` Martin Schröder
@ 2010-05-30  6:48     ` Taco Hoekwater
  0 siblings, 0 replies; 4+ messages in thread
From: Taco Hoekwater @ 2010-05-30  6:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Martin Schröder wrote:
> 2010/5/27 taco <taco@elvenkind.com>:
>> this is a bibtex bug (just look at the generated bbl file and you will see
> 
> Which may be fixed in BibTeX 0.99d (included in TL2010).

What's more: TeXLive will also include 'bibtexu' which supports utf-8,
solving the 'invalid UTF-8 character'  error you can get with normal
bibtex when using non-ascii characters in names.

I haven't tested that yet, but it sounds promising.

Best wishes,
Taco


___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2010-05-30  6:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-27 20:27 urls longer than 57 characters fail in the bibliography Michael Saunders
2010-05-27 20:40 ` taco
2010-05-29 22:52   ` Martin Schröder
2010-05-30  6:48     ` Taco Hoekwater

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