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.










share|improve this question


















  • 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










  • 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












  • 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




    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















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.










share|improve this question


















  • 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










  • 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












  • 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




    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













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.










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 16 at 19:05









Fang Jing

5691612




5691612








  • 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










  • 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












  • 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




    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














  • 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










  • 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












  • 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




    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








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










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.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    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

























    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.






    share|improve this answer

























      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.






      share|improve this answer























        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.






        share|improve this answer












        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 16 at 19:42









        Sigur

        23.3k354135




        23.3k354135






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?