natbib: Error with citation having multiple authors `Undefined control sequence. cite{citationkey}`
up vote
2
down vote
favorite
I am trying to cite a reference using the informs2014
bibliography style, but I keep getting the Undefined control sequence
error when there is more than one author in a citation. MWE:
main.tex
:
documentclass{scrartcl}
usepackage{natbib}
begin{document}
cite{citationkey}
bibliographystyle{informs2014}
bibliography{references}
end{document}
references.bib
:
@article{citationkey,
title={Something important},
author={Big Guy and Another Big Guy},
journal={Prestigious Journal},
volume={47},
number={7},
pages={966--978},
year={2001},
publisher={Institute}
}
Errors:
Undefined control sequence. cite{citationkey}
Undefined control sequence. ... protectBIBand{} Guy(2001)}]{citationkey}
What confuses me is that I have been using the bibliography style file for a while without encountering this issue before.
bibliographies bibtex natbib
|
show 3 more comments
up vote
2
down vote
favorite
I am trying to cite a reference using the informs2014
bibliography style, but I keep getting the Undefined control sequence
error when there is more than one author in a citation. MWE:
main.tex
:
documentclass{scrartcl}
usepackage{natbib}
begin{document}
cite{citationkey}
bibliographystyle{informs2014}
bibliography{references}
end{document}
references.bib
:
@article{citationkey,
title={Something important},
author={Big Guy and Another Big Guy},
journal={Prestigious Journal},
volume={47},
number={7},
pages={966--978},
year={2001},
publisher={Institute}
}
Errors:
Undefined control sequence. cite{citationkey}
Undefined control sequence. ... protectBIBand{} Guy(2001)}]{citationkey}
What confuses me is that I have been using the bibliography style file for a while without encountering this issue before.
bibliographies bibtex natbib
1
This could help to find the problem. Replacingcite{citationkey}
bynocite{*}
produces the errorUndefined control sequence. ...tem[{Guy protectBIBand{} Guy(2001)}]{citationkey}
. I think the problem is related toBIBand
.
– Sigur
Nov 16 at 19:20
When we runbibtex
, editbbl
to removeprotectBIBand{}
, save it, and compile twice, it works. After runningbibtex
again, thebbl
will be wrong again.
– Sigur
Nov 16 at 19:22
@Sigur Yes, I also suspect it is related toBIBand{}
; in fact that's how I realized it has to do with multiple authors. But I don't really understand the mechanism behind well.
– Fang Jing
Nov 16 at 19:23
I am not sure if the commandBIBand{}
should be defined on the style or if it is standard fromnatbib
.
– Sigur
Nov 16 at 19:27
1
If you define it on preamble withprovidecommand{BIBand}{and}
it works. Of course, you have to know what the style wants to use asand
separator for authors.
– Sigur
Nov 16 at 19:30
|
show 3 more comments
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am trying to cite a reference using the informs2014
bibliography style, but I keep getting the Undefined control sequence
error when there is more than one author in a citation. MWE:
main.tex
:
documentclass{scrartcl}
usepackage{natbib}
begin{document}
cite{citationkey}
bibliographystyle{informs2014}
bibliography{references}
end{document}
references.bib
:
@article{citationkey,
title={Something important},
author={Big Guy and Another Big Guy},
journal={Prestigious Journal},
volume={47},
number={7},
pages={966--978},
year={2001},
publisher={Institute}
}
Errors:
Undefined control sequence. cite{citationkey}
Undefined control sequence. ... protectBIBand{} Guy(2001)}]{citationkey}
What confuses me is that I have been using the bibliography style file for a while without encountering this issue before.
bibliographies bibtex natbib
I am trying to cite a reference using the informs2014
bibliography style, but I keep getting the Undefined control sequence
error when there is more than one author in a citation. MWE:
main.tex
:
documentclass{scrartcl}
usepackage{natbib}
begin{document}
cite{citationkey}
bibliographystyle{informs2014}
bibliography{references}
end{document}
references.bib
:
@article{citationkey,
title={Something important},
author={Big Guy and Another Big Guy},
journal={Prestigious Journal},
volume={47},
number={7},
pages={966--978},
year={2001},
publisher={Institute}
}
Errors:
Undefined control sequence. cite{citationkey}
Undefined control sequence. ... protectBIBand{} Guy(2001)}]{citationkey}
What confuses me is that I have been using the bibliography style file for a while without encountering this issue before.
bibliographies bibtex natbib
bibliographies bibtex natbib
asked Nov 16 at 19:05
Fang Jing
5691612
5691612
1
This could help to find the problem. Replacingcite{citationkey}
bynocite{*}
produces the errorUndefined control sequence. ...tem[{Guy protectBIBand{} Guy(2001)}]{citationkey}
. I think the problem is related toBIBand
.
– Sigur
Nov 16 at 19:20
When we runbibtex
, editbbl
to removeprotectBIBand{}
, save it, and compile twice, it works. After runningbibtex
again, thebbl
will be wrong again.
– Sigur
Nov 16 at 19:22
@Sigur Yes, I also suspect it is related toBIBand{}
; in fact that's how I realized it has to do with multiple authors. But I don't really understand the mechanism behind well.
– Fang Jing
Nov 16 at 19:23
I am not sure if the commandBIBand{}
should be defined on the style or if it is standard fromnatbib
.
– Sigur
Nov 16 at 19:27
1
If you define it on preamble withprovidecommand{BIBand}{and}
it works. Of course, you have to know what the style wants to use asand
separator for authors.
– Sigur
Nov 16 at 19:30
|
show 3 more comments
1
This could help to find the problem. Replacingcite{citationkey}
bynocite{*}
produces the errorUndefined control sequence. ...tem[{Guy protectBIBand{} Guy(2001)}]{citationkey}
. I think the problem is related toBIBand
.
– Sigur
Nov 16 at 19:20
When we runbibtex
, editbbl
to removeprotectBIBand{}
, save it, and compile twice, it works. After runningbibtex
again, thebbl
will be wrong again.
– Sigur
Nov 16 at 19:22
@Sigur Yes, I also suspect it is related toBIBand{}
; in fact that's how I realized it has to do with multiple authors. But I don't really understand the mechanism behind well.
– Fang Jing
Nov 16 at 19:23
I am not sure if the commandBIBand{}
should be defined on the style or if it is standard fromnatbib
.
– Sigur
Nov 16 at 19:27
1
If you define it on preamble withprovidecommand{BIBand}{and}
it works. Of course, you have to know what the style wants to use asand
separator for authors.
– Sigur
Nov 16 at 19:30
1
1
This could help to find the problem. Replacing
cite{citationkey}
by nocite{*}
produces the error Undefined control sequence. ...tem[{Guy protectBIBand{} Guy(2001)}]{citationkey}
. I think the problem is related to BIBand
.– Sigur
Nov 16 at 19:20
This could help to find the problem. Replacing
cite{citationkey}
by nocite{*}
produces the error Undefined control sequence. ...tem[{Guy protectBIBand{} Guy(2001)}]{citationkey}
. I think the problem is related to BIBand
.– Sigur
Nov 16 at 19:20
When we run
bibtex
, edit bbl
to remove protectBIBand{}
, save it, and compile twice, it works. After running bibtex
again, the bbl
will be wrong again.– Sigur
Nov 16 at 19:22
When we run
bibtex
, edit bbl
to remove protectBIBand{}
, save it, and compile twice, it works. After running bibtex
again, the bbl
will be wrong again.– Sigur
Nov 16 at 19:22
@Sigur Yes, I also suspect it is related to
BIBand{}
; in fact that's how I realized it has to do with multiple authors. But I don't really understand the mechanism behind well.– Fang Jing
Nov 16 at 19:23
@Sigur Yes, I also suspect it is related to
BIBand{}
; in fact that's how I realized it has to do with multiple authors. But I don't really understand the mechanism behind well.– Fang Jing
Nov 16 at 19:23
I am not sure if the command
BIBand{}
should be defined on the style or if it is standard from natbib
.– Sigur
Nov 16 at 19:27
I am not sure if the command
BIBand{}
should be defined on the style or if it is standard from natbib
.– Sigur
Nov 16 at 19:27
1
1
If you define it on preamble with
providecommand{BIBand}{and}
it works. Of course, you have to know what the style wants to use as and
separator for authors.– Sigur
Nov 16 at 19:30
If you define it on preamble with
providecommand{BIBand}{and}
it works. Of course, you have to know what the style wants to use as and
separator for authors.– Sigur
Nov 16 at 19:30
|
show 3 more comments
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
As the error says, the problem is in the undefined command BIBand
to be used for multiple authors citation.
In the informs2014.bst
file from here we can find
FUNCTION {bbl.and}
{ "protectBIBand{}"}
and so the command BIBand
is in use. So it should be defined somewhere.
In the Management-Science-template.tex
file (also from here) we can find
% Natbib setup for author-year style
usepackage{natbib}
bibpunct[, ]{(}{)}{,}{a}{}{,}%
defbibfont{small}%
defbibsep{smallskipamount}%
defbibhang{24pt}%
defnewblock{ }%
defBIBand{and}%?
So, if you are not going to use their template, you have to copy the commands above to your preamble and everything should work and formated as expected.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
As the error says, the problem is in the undefined command BIBand
to be used for multiple authors citation.
In the informs2014.bst
file from here we can find
FUNCTION {bbl.and}
{ "protectBIBand{}"}
and so the command BIBand
is in use. So it should be defined somewhere.
In the Management-Science-template.tex
file (also from here) we can find
% Natbib setup for author-year style
usepackage{natbib}
bibpunct[, ]{(}{)}{,}{a}{}{,}%
defbibfont{small}%
defbibsep{smallskipamount}%
defbibhang{24pt}%
defnewblock{ }%
defBIBand{and}%?
So, if you are not going to use their template, you have to copy the commands above to your preamble and everything should work and formated as expected.
add a comment |
up vote
2
down vote
accepted
As the error says, the problem is in the undefined command BIBand
to be used for multiple authors citation.
In the informs2014.bst
file from here we can find
FUNCTION {bbl.and}
{ "protectBIBand{}"}
and so the command BIBand
is in use. So it should be defined somewhere.
In the Management-Science-template.tex
file (also from here) we can find
% Natbib setup for author-year style
usepackage{natbib}
bibpunct[, ]{(}{)}{,}{a}{}{,}%
defbibfont{small}%
defbibsep{smallskipamount}%
defbibhang{24pt}%
defnewblock{ }%
defBIBand{and}%?
So, if you are not going to use their template, you have to copy the commands above to your preamble and everything should work and formated as expected.
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
As the error says, the problem is in the undefined command BIBand
to be used for multiple authors citation.
In the informs2014.bst
file from here we can find
FUNCTION {bbl.and}
{ "protectBIBand{}"}
and so the command BIBand
is in use. So it should be defined somewhere.
In the Management-Science-template.tex
file (also from here) we can find
% Natbib setup for author-year style
usepackage{natbib}
bibpunct[, ]{(}{)}{,}{a}{}{,}%
defbibfont{small}%
defbibsep{smallskipamount}%
defbibhang{24pt}%
defnewblock{ }%
defBIBand{and}%?
So, if you are not going to use their template, you have to copy the commands above to your preamble and everything should work and formated as expected.
As the error says, the problem is in the undefined command BIBand
to be used for multiple authors citation.
In the informs2014.bst
file from here we can find
FUNCTION {bbl.and}
{ "protectBIBand{}"}
and so the command BIBand
is in use. So it should be defined somewhere.
In the Management-Science-template.tex
file (also from here) we can find
% Natbib setup for author-year style
usepackage{natbib}
bibpunct[, ]{(}{)}{,}{a}{}{,}%
defbibfont{small}%
defbibsep{smallskipamount}%
defbibhang{24pt}%
defnewblock{ }%
defBIBand{and}%?
So, if you are not going to use their template, you have to copy the commands above to your preamble and everything should work and formated as expected.
answered Nov 16 at 19:42
Sigur
23.3k354135
23.3k354135
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460362%2fnatbib-error-with-citation-having-multiple-authors-undefined-control-sequence%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
This could help to find the problem. Replacing
cite{citationkey}
bynocite{*}
produces the errorUndefined control sequence. ...tem[{Guy protectBIBand{} Guy(2001)}]{citationkey}
. I think the problem is related toBIBand
.– Sigur
Nov 16 at 19:20
When we run
bibtex
, editbbl
to removeprotectBIBand{}
, save it, and compile twice, it works. After runningbibtex
again, thebbl
will be wrong again.– Sigur
Nov 16 at 19:22
@Sigur Yes, I also suspect it is related to
BIBand{}
; in fact that's how I realized it has to do with multiple authors. But I don't really understand the mechanism behind well.– Fang Jing
Nov 16 at 19:23
I am not sure if the command
BIBand{}
should be defined on the style or if it is standard fromnatbib
.– Sigur
Nov 16 at 19:27
1
If you define it on preamble with
providecommand{BIBand}{and}
it works. Of course, you have to know what the style wants to use asand
separator for authors.– Sigur
Nov 16 at 19:30