Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using the following bibliography style for my journal article: https://github.com/bopaper/bopaper/blob/master/bmc_article.bst

I want to be able to use \citeauthor. If I use is just like that it gives me an error saying !Undefined control sequence

If I do \usepackage{natbib}, it gives me some more errors;

Runaway argument?
]{author2007}
! Paragraph ended before \@citex was complete

How can I use \citeauthor for my current bibliography style?

share|improve this question

1 Answer 1

The header of the file bmc_article.bst states that it's based on the style file unsrt.bst. As such, it's probably meant for numeric rather than author-year (or author-only, in your case!) citation styles. You don't reproduce the errors you say you get if you load the natbib package; please read these error messages for potential clues regarding a potential imcompatibility between the bmc_article style file and author-year citation styles.

Addendum 9/29: The bibtex style file, such as bmc_article.bst, defines both the appearance of the citation(s) in the body of the paper -- such as numeric or author-year style -- as well as the appearance of the entries in the bibliography -- e.g., sorted or not, show full first names or only initials, italicization of journal names, etc. If you're not happy with some aspects of the output of the .bst file you're working with, you should either choose a different existing .bst file or create a new one with the makebst utility. To run the latter, just type latex makebst at the command line and follow the detailed instructions. One of the questions you'll be asked in the process is whether you want numeric or author-year citations (and some other options): choose "author-year with some modifications". A piece of good news: your newly-created .bst file is fully compatible with natbib and its \citeauthor command. :-)

share|improve this answer
    
I don't understand the LaTeX build errors that well. I have edited my question to add the error that I get. –  y2p Sep 26 '11 at 22:01
    
Thanks. Could you also post the sentence or two around the point in the input file where the error is being generated? –  Mico Sep 26 '11 at 22:38
    
\citeauthor{wassermann2010} have identified......cliffs \cite{wassermann2010}. This is one sentence. Another would be; ...with the presence of such cliffs. \citeauthor{sisay2009} have explained what activity cliffs mean structurally \cite{sisay2009}. The dots(...) is just plain text. –  y2p Sep 27 '11 at 1:06
    
Is it only the \citeauthor command that's causing an error message, or do the other \cite commands do so as well? –  Mico Sep 27 '11 at 2:39
    
\cite also causes error, but only if I do \usepackage{natbib} –  y2p Sep 27 '11 at 3:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.