I am using the elsarticle document class. When I compile using \bibliographystyle{plain}, all goes well. However, I want to use \bibliographystyle{model1a-num-names}. If I compile with this style I get the following kind of errors:
! Paragraph ended before \@@bibpages was complete.
<to be read again>
\par
l.171
and
Package natbib Warning: Citation `Frary2003' on page 1 undefined on input line
159.
I have narrowed down the problem to a single reference in my bibtex library (.bib file):
@article{Frary2003,
author = {Frary, Megan E and Schuh, Christopher A},
doi = {10.1063/1.1624490},
file = {:C$\backslash$:/Users/Ollie/Documents/Mendeley Desktop/Frary, Schuh/Frary, Schuh - Nonrandom percolation behavior of grain boundary networks in high-Tsub c superconductors - 2003.pdf:pdf},
issn = {00036951},
journal = {Applied Physics Letters},
keywords = {Nonrandom,Triple junction,percolation threshold,superconductivity},
mendeley-tags = {Nonrandom,Triple junction,percolation threshold,superconductivity},
number = {18},
pages = {3755},
title = {{Nonrandom percolation behavior of grain boundary networks in high-T[sub c] superconductors}},
url = {http://link.aip.org/link/APPLAB/v83/i18/p3755/s1\&Agg=doi},
volume = {83},
year = {2003}
}
What about this reference could be causing a problem with \bibliographystyle{model1a-num-names}, but not with \bibliographystyle{plain}?
I have tried commenting out the title and url fields, but the problem remains.
Here is a minimal working example:
\documentclass[preprint,12pt]{elsarticle}
\usepackage[nodots]{numcompress}
\biboptions{sort&compress}
\journal{A Journal}
\begin{document}
\begin{frontmatter}
\title{My Title}
\author[myaddr]{Author 1}
\author[myaddr]{Author 2}
\address[myaddr]{An Address}
\begin{abstract}
Here's an abstract.
\end{abstract}
\begin{keyword}
keyword1 \sep keyword2 \sep keyword3
\end{keyword}
\end{frontmatter}
\section{Introduction}
\label{intro}
I would like to cite~\cite{Frary2003}.
\bibliographystyle{model1a-num-names}
%\bibliographystyle{plain}
\bibliography{MyReferences}
\end{document}
And here is the log file when I try to use \bibliographystyle{model1a-num-names}:
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded format=pdflatex 2012.11.19) 19 NOV 2012 16:32
entering extended mode
**C:/Users/Ollie/Desktop/MWE/Main.tex
(C:/Users/Ollie/Desktop/MWE/Main.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
("C:\Local TeX Files\tex\latex\misc\elsarticle\elsarticle.cls"
Document Class: elsarticle 2009/09/17, 1.20b: Elsevier Ltd
\@bls=\dimen102
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size12.clo"
File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen103
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty"
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: pdftex.def on input line 91.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"
File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"
Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
)
\Gread@gobject=\count87
))
\Gin@req@height=\dimen104
\Gin@req@width=\dimen105
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\pifont.sty"
Package: pifont 2005/04/12 PSNFSS-v9.2a Pi font support (SPQR)
LaTeX Font Info: Try loading font information for U+pzd on input line 63.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\upzd.fd"
File: upzd.fd 2001/06/04 font definitions for U/pzd.
)
LaTeX Font Info: Try loading font information for U+psy on input line 64.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\upsy.fd"
File: upsy.fd 2001/06/04 font definitions for U/psy.
))
\c@tnote=\count88
\c@fnote=\count89
\c@cnote=\count90
\c@ead=\count91
\c@author=\count92
\@eadauthor=\toks15
\c@affn=\count93
\absbox=\box26
\keybox=\box27
\Columnwidth=\dimen106
\space@left=\dimen107
\els@boxa=\box28
\els@boxb=\box29
\leftMargin=\dimen108
\@enLab=\toks16
\@sep=\skip43
\@@sep=\skip44
(C:\Users\Ollie\Desktop\MWE\Main.spl)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\natbib\natbib.sty"
Package: natbib 2010/09/13 8.31b (PWD, AO)
\bibhang=\skip45
\bibsep=\skip46
LaTeX Info: Redefining \cite on input line 694.
\c@NAT@ctr=\count94
)
\splwrite=\write3
\appnamewidth=\dimen109
)
("C:\Local TeX Files\tex\latex\misc\elsarticle\numcompress.sty"
\xx=\write4
)
(C:\Users\Ollie\Desktop\MWE\Main.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 9.
LaTeX Font Info: ... okay on input line 9.
("C:\Program Files (x86)\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count95
\scratchdimen=\dimen110
\scratchbox=\box30
\nofMPsegments=\count96
\nofMParguments=\count97
\everyMPshowfont=\toks17
\MPscratchCnt=\count98
\MPscratchDim=\dimen111
\MPnumerator=\count99
\makeMPintoPDFobject=\count100
\everyMPtoPDFconversion=\toks18
)
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <12> on input line 27.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <8> on input line 27.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <6> on input line 27.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <7> on input line 27.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 27.
Package natbib Warning: Citation `Frary2003' on page 1 undefined on input line
31.
(C:\Users\Ollie\Desktop\MWE\Main.bbl
Runaway argument?
3755\@nil \else \ifx \next \@@@au \bibauthor {3755}\else 3755\fi \fi \ETC.
! Paragraph ended before \@@bibpages was complete.
<to be read again>
\par
l.10
?
! Emergency stop.
<to be read again>
\par
l.10
End of file on the terminal!
Here is how much of TeX's memory you used:
1784 strings out of 494045
22207 string characters out of 3145968
75434 words of memory out of 3000000
5091 multiletter control sequences out of 15000+200000
8714 words of font info for 30 fonts, out of 3000000 for 9000
715 hyphenation exceptions out of 8191
34i,4n,30p,261b,181s stack positions out of 5000i,500n,10000p,200000b,50000s
! ==> Fatal error occurred, no output PDF file produced!
plaintomodel1a-num-names), it's frequently -- though not always -- necessary to delete all .aux, .bbl, and other auxiliary files in order to be able to (re)compile the document successfully. You may want to see if this solves your problem. – Mico Nov 20 '12 at 0:08Main.tex, andMyReferences.bib, and the problem remains. Another strange thing that I noted above is that each time I compile (regardless of the bibliography style) an empty file calledtmpbib.texis created (this only happens to me when using the elsarticle document class). Any other suggestions? – okj Nov 20 '12 at 16:52\usepackage[nodots]{numcompress}, it compiles fine. Why would there be a conflict between the numcompress package andmodel1a-num-names.bst? (Also, how is it that @egreg didn't seem to run into the same issue?) – okj Nov 20 '12 at 17:33