bib module and urls
The bib module has a problem with processing my bibliography files. Here is my amateur diagnosis. There are hundreds of entries in my bibliography file in which the % character is part of the url. When the bib module comes across a %, it ignores everything else on the line, including the closing brace, }. Bad things follow. Here's some evidence for my diagnosis. I tried editing the urls by replacing "%" with "\%". When the urls are written that way, everything works smoothly. But that is an undesirable solution. Among other things, it renders the url inaccurate. So, I have two questions: 1. Is that diagnosis correct? 2. What can I do about it (short of deleting the url field)? Thank you! Here is a minimal example (1 and 2) followed by the log entry (3). 1. The test document \usemodule[bib] \setupbibtex[database=biblio] \setuppublications[alternative=apa] \starttext Adamson wrote an important paper \cite[Adamson:1987yq]. \completepublications \stoptext 2. The BibTeX entry %% Saved with string encoding Unicode (UTF-8) @article{Adamson:1987yq, Author = {Adamson, J. S. A.}, Date-Added = {2007-07-04 08:47:37 -0700}, Date-Modified = {2007-07-04 09:11:17 -0700}, Endnotereftype = {Journal Article}, Journal = {The Historical Journal}, Note = {0018-246X Article type: Full Length Article / Full publication date: Sep., 1987 (198709). / Copyright 1987 Cambridge University Press}, Number = {3}, Pages = {567-602}, Title = {The English Nobility and the Projected Settlement of 1647}, Url = {http://links.jstor.org/sici?sici=0018-246X%28198709%2930%3A3% 3C567%3ATENATP%3E2.0.CO%3B2-X}, Volume = {30}, Year = {1987}} 3. The relevant part of the log system : module bib loaded (/usr/local/texlive/2007/texmf-dist/tex/context/bib/t-bib.tex \etallimitcounter=\count214 \etaldisplaycounter=\count215 \todocounter=\count216 \bibitemcounter=\count217 \bibitemwanted=\count218 publications : loading formatting style from bibl-apa (/usr/local/texlive/2007/texmf-dist/tex/context/bib/bibl-apa.tex)) publications : loading formatting style from bibl-apa (/usr/local/texlive/2007/texmf-dist/tex/context/bib/bibl-apa.tex) (./URLinBib.tuo) (./URLinBib.tuo) (./URLinBib.tuo) (./URLinBib.tuo) (./URLinBib.tuo) (./URLinBib.tuo) (./URLinBib.tuo) (./URLinBib.tuo) (./URLinBib.tuo) (./URLinBib.tuo) (/usr/local/texlive/2007/texmf-dist/tex/context/base/sort-def.tex) (/usr/local/texlive/2007/texmf-dist/tex/context/base/sort-lan.tex) (./URLinBib.tuo) (./URLinBib.tuo) publications : loading database from URLinBib.bbl (./URLinBib.bbl) Runaway argument? k=Adamson:1987yq,t=article, a={{Adamson}},y=1987, u={http://links.jst \ETC. ! File ended while scanning use of \dostartpublication. <inserted text> \par <to be read again> \relax \dodoreadfile ...\preprocesssuffix \or \fi \relax \the \everyafterreadfile \doateverystarttext ->\the \everystarttext \global \everystarttext \emptytoks \starttext ->\doatever
Michael Green wrote:
So, I have two questions:
1. Is that diagnosis correct? 2. What can I do about it (short of deleting the url field)?
You found a bug. Try this fix, just after \usemodule[bib] % start fix \unprotect \def\dousepublications#1% {\doonlyonce {#1.\f!bibextension} {\readfile{#1.\f!bibextension} {\catcode`\%=12 \showmessage\m!bib{4}{#1.\f!bibextension}} {\showmessage\m!bib{2}{#1.\f!bibextension}}}} \protect % end fix Best wishes, Taco
participants (2)
-
Michael Green
-
Taco Hoekwater