Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bibtex: errors using urls in bibitems

3,040 views
Skip to first unread message

Michael Friendly

unread,
May 4, 2007, 9:03:32 AM5/4/07
to
I have a bibliography that has urls pointing to online publications.
When I use a bibliography style (based on plain, generated by merlin.mbs)
that includes the URL, I get errors
on a few entries:

Runaway argument?
Funkhouser, H.~Gray (1936). \newblock A note on a tenth century grap\ETC.
! Paragraph ended before \BR@@bibitem was complete.
<to be read again>
\par
l.593

The .bbl file looks like this:

\bibitem{Funkhouser:1936}
Funkhouser, H.~Gray (1936).
\newblock A note on a tenth century graph.
\newblock \emph{Osiris}, \emph{1}:260--262.
\newblock

\urlprefix\url{http://links.jstor.org/sici?sici=0369-7827%28193601%291%3A1%3%
C260%3AANOATC%3E2.0.CO%3B2-W}.

\bibitem{Funkhouser:1937}
Funkhouser, H.~Gray (1937).
\newblock Historical development of the graphical representation of
statistical
data.
\newblock \emph{Osiris}, \emph{3}(1):269--405.
\newblock

\urlprefix\url{http://links.jstor.org/sici?sici=0369-7827%281937%291%3A3%3C2%
69%3AHDOTGR%3E2.0.CO%3B2-T}.
\newblock Reprinted Brugge, Belgium: St. Catherine Press, 1937.

The corresponding .bib entries are:


@ARTICLE{Funkhouser:1936,
author = {Funkhouser, H. Gray},
title = {A Note on a Tenth Century Graph},
journal = {Osiris},
year = {1936},
volume = {1},
pages = {260--262},
oldnum = {95},
url =
{http://links.jstor.org/sici?sici=0369-7827%28193601%291%3A1%3C260%3AANOATC%3E2.0.CO%3B2-W}
}

@ARTICLE{Funkhouser:1937,
author = {Funkhouser, H. Gray},
title = {Historical Development of the Graphical Representation of
Statistical
Data},
journal = {Osiris},
year = {1937},
volume = {3},
pages = {269--405},
number = {1},
month = nov,
note = {reprinted Brugge, Belgium: St. Catherine Press, 1937},
oldnum = {96},
url =
{http://links.jstor.org/sici?sici=0369-7827%281937%291%3A3%3C269%3AHDOTGR%3E2.0.CO%3B2-T}
}

What is wrong? How can I fix this?

thanks,
-Michael


--
Michael Friendly Email: frie...@yorku.ca
Professor, Psychology Dept.
York University Voice: 416 736-5115 x66249 Fax: 416 736-5814
4700 Keele Street http://www.math.yorku.ca/SCS/friendly.html
Toronto, ONT M3J 1P3 CANADA

Michael Friendly

unread,
May 4, 2007, 9:48:23 AM5/4/07
to
The problem was related to the % characters in the URLs.
I fixed this by replacing them with the result from tinyurl.com,
but there should be a simpler way.

Robin Fairbairns

unread,
May 4, 2007, 3:18:57 PM5/4/07
to
Michael Friendly <frie...@yorku.ca> writes:
>Michael Friendly wrote:
>> I have a bibliography that has urls pointing to online publications.
>> When I use a bibliography style (based on plain, generated by merlin.mbs)
>> that includes the URL, I get errors
>> on a few entries:
>>
>> Runaway argument?
>> Funkhouser, H.~Gray (1936). \newblock A note on a tenth century grap\ETC.
>> ! Paragraph ended before \BR@@bibitem was complete.
>> <to be read again>
>> \par
>> l.593

and then

>The problem was related to the % characters in the URLs.
>I fixed this by replacing them with the result from tinyurl.com,
>but there should be a simpler way.

but the url package isn't bothered by % characters in its arguments
(it even deals with the line-broken-by-bibtex effect your sample
showed).

my crystal ball suggests you've got some dud definition of \url, but
since you didn't bother with a minimum failing document, it's not
possible to be sure.
--
Robin Fairbairns, Cambridge

Michael Friendly

unread,
May 7, 2007, 5:32:45 PM5/7/07
to

Robin Fairbairns wrote:
> Michael Friendly <frie...@yorku.ca> writes:
>> Michael Friendly wrote:
>>> I have a bibliography that has urls pointing to online publications.
>>> When I use a bibliography style (based on plain, generated by merlin.mbs)
>>> that includes the URL, I get errors
>>> on a few entries:
>>>
>>> Runaway argument?
>>> Funkhouser, H.~Gray (1936). \newblock A note on a tenth century grap\ETC.
>>> ! Paragraph ended before \BR@@bibitem was complete.
>>> <to be read again>
>>> \par
>>> l.593
>
>

> but the url package isn't bothered by % characters in its arguments
> (it even deals with the line-broken-by-bibtex effect your sample
> showed).
>
> my crystal ball suggests you've got some dud definition of \url, but
> since you didn't bother with a minimum failing document, it's not
> possible to be sure.

Sorry for not being more explicit. Below is a minimal document and .bib
file that exhibits the same behavior. The definition of \url comes from
the hyperref package, and, as I can now see from the errors may be
related to the use of the backref option.

I can post my rev-plain-url.bst file if necessary, but to save bandwidth
here is the header indicating the merlin.mbs options:
%%
%% This is file `rev-plain-url.bst',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% merlin.mbs (with options:
`nm-revf,jnrlst,dt-beg,yr-par,xmth,vol-it,num-xser
,add-pub,isbn,issn,doi,pp,ed,abr,ord,and-xcom,url,url-blk,nfss,')


--- start: timetest.tex ---
\documentclass{article}

\bibliographystyle{rev-plain-url}
\usepackage[dvips,bookmarks,hyperindex,%
% linkcolor=red,urlcolor=red,%
% colorlinks=false,% for printed version
pagebackref]{hyperref}
\hyperbaseurl{http://www.math.yorku.ca}

\begin{document}
Let's cite some things from JSTOR:
There is \cite{Funkhouser:1936,Funkhouser:1937},
and \cite{Robinson:1955},
and finally \cite{Boyer:1947}.
\bibliography{timetest}

\end{document}
--- end: timetest.tex ---

--- start: timetest.bib ---


@ARTICLE{Funkhouser:1936,
author = {Funkhouser, H. Gray},
title = {A Note on a Tenth Century Graph},
journal = {Osiris},
year = {1936},
volume = {1},
pages = {260--262},
oldnum = {95},
url =

{http://links.jstor.org/sici?sici=0369-7827%28193601%291%3A1%3C260%3AANOATC%3E2.0.CO%3B2-W},
tinyurl = {http://tinyurl.com/2czmqc},
}

@ARTICLE{Funkhouser:1937,
author = {Funkhouser, H. Gray},
title = {Historical Development of the Graphical Representation of
Statistical
Data},
journal = {Osiris},
year = {1937},
volume = {3},
pages = {269--405},
number = {1},
month = nov,
note = {reprinted Brugge, Belgium: St. Catherine Press, 1937},
oldnum = {96},
url =

{http://links.jstor.org/sici?sici=0369-7827%281937%291%3A3%3C269%3AHDOTGR%3E2.0.CO%3B2-T},
tinyurl = {http://tinyurl.com/32ema9},
}

@ARTICLE{Robinson:1955,
author = {Robinson, Arthur H.},
title = {The 1837 Maps of {Henry Drury Harness}},
journal = {Geographical Journal},
year = {1955},
volume = {121},
pages = {440--450},
url =
{http://links.jstor.org/sici?sici=0016-7398%28195512%29121%3A4%3C440%3AT1MOHD%3E2.0.CO%3B2-M},
tinyurl = {http://tinyurl.com/ys8eds},
}

@article{Boyer:1947,
ISSN = {0021-1753},
author = {Boyer, Carl B.},
journal = {Isis},
month = {jul},
number = {3/4},
pages = {148--149},
publisher = {The University of Chicago Press},
title = {Note on an Early Graph of Statistical Data (Huygens 1669)},
url =
{http://links.jstor.org/sici?sici=0021-1753%28194707%2937%3A3%2F4%3C148%3ANOAEGO%3E2.0.CO%3B2-G},
alturl = {http://www.jstor.org/view/00211753/ap010065/01a00060/0},
volume = {37},
year = {1947},
}

--- end: timetest.bib ---

--
Michael Friendly Email: friendly AT yorku DOT ca

0 new messages