ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bib module and urls
@ 2007-07-04 16:25 Michael Green
  2007-07-05  7:14 ` Taco Hoekwater
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Green @ 2007-07-04 16:25 UTC (permalink / raw)
  To: ntg-context

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


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

* Re: bib module and urls
  2007-07-04 16:25 bib module and urls Michael Green
@ 2007-07-05  7:14 ` Taco Hoekwater
  0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 2007-07-05  7:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

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


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

end of thread, other threads:[~2007-07-05  7:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-04 16:25 bib module and urls Michael Green
2007-07-05  7:14 ` 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).