On Mon, 2017-05-08 at 16:27 -0600, Alan Braslau wrote:
Of course, you have to escape the percent character if you do not want it to be interpreted as a comment... however, in the example below, the URL does not get rendered properly, nor does using \letterpercent, so there is something that we need to fix in our treatment of URLs.
That is easily fixed by making \hyphenatedurl aware of \% being \letterpercent. \appendtoks \let\%\letterpercent \to \everyhyphenatedurl However, I wonder whether the treatment of % in bib files is correct, as regular BibTeX does treat the % verbatim. Because the following LaTeX example works just fine, with unescaped %. In my opinion this behaviour should be adopted by ConTeXt. \begin{filecontents*}{\jobname.bib} @misc{kraft, author = "Kraft, Nathan", title = "Mr Kraft's Virtual Filing Cabinet", year = "2015", url = "http://mrkraft.wikispaces.com/Mr+Kraft%27s+Virtual+Filing+Cabi net" } \end{filecontents*} \documentclass{article} \usepackage{apacite,url} \begin{document} \nocite{kraft} \bibliographystyle{apacite} \bibliography{\jobname.bib} \end{document}
\startbuffer[references]
@misc{kraft, author = "Kraft, Nathan", title = "Mr Kraft's Virtual Filing Cabinet", year = "2015", url = "http://mrkraft.wikispaces.com/Mr+Kraft\%27s+Virtual+Filing+C abinet" }
\stopbuffer
\usebtxdefinitions[apa] \usebtxdataset[references.buffer]
\starttext
\nocite[kraft]
\placelistofpublications
\showbtxdatasetcompleteness
\stoptext
On Tue, 9 May 2017 09:44:01 +1200 Henri Menke
wrote: Dear list,
The percent character in btx field is taken as a comment characters which leads to the rest of the field being discarded. In the MWE below, the URL is cut off at the % sign and everything after it is lost.
Cheers, Henri
---
\startbuffer[references] @misc{kraft, author = "Kraft, Nathan", title = "Mr Kraft's Virtual Filing Cabinet", year = "2015", url = "http://mrkraft.wikispaces.com/Mr+Kraft%27s+Virtual+Filing+Cabi net" } \stopbuffer
\usebtxdataset[references.buffer] \usebtxdefinitions[apa]
\starttext
\nocite[kraft] \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 ___________________________________________________________________ ________________