# Tag Info

## Hot answers tagged natbib

13

The natbib option for biblatex causes the blx-natbib.def file to be loaded and not much else. There may be some styles that do different things depending on if the natbib option has been used, but the authoryear style does not seem to care. The blx-natbib.def file defines a handful of macros to recreate natbib citation commands, but it does not disable any ...

8

If you don't need to have natbib=true then the command \citeauthor* does exactly that. \documentclass{article} \usepackage[style=authoryear-comp, backend=biber, sorting=nyt, autolang=hyphen]{biblatex} \begin{filecontents}{literature.bib} @ARTICLE{ref1, AUTHOR = {AuthorA, A. and AuthorB, B.}, JOURNALTITLE = {{Journal of Testing}}, PAGES = {1--2}, ...

5

There are two errors in your MWE. \bibliography{mybib.bib} should be \bibliography{mybib} otherwise BibTeX looks for the file mybib.bib.bib instead of mybib.bib. \bibliographystyle{apa} should be \bibliographystyle{apalike}. The bibliography style apa.bst is not compatible with bibentry. So, delete your .aux and .bbl file, and retry with the following ...

5

The way described in Ingmar's answer is the preferred one, but you don't get a separating comma between authors when you have only two of them. I would follow that way, but if you really want a comma to separate them, you have to enclose the comma in braces, so that BibTeX considers it as normal text, i.e. @Book{williamson, author={David P Williamson{,} ...

4

The conjunctions used between author names are defined by the bibliography style in use -- in your case, plainnat. Fortunately, changing "and" to "&" (or "en") isn't too difficult: Locate the file plainnat.bst in your TeX distribution and make a copy of that file. Call this copy, say, myplainnat.bst. (Don't edit an original file of the TeX distribution ...

4

With biblatex and its natbib compatibility option, you may use \citep for "standard" citations in parentheses. For the case specified in your question, you have to resort to \parencites. See section 3.7.3 of the biblatex manual for details. \documentclass{article} \usepackage[style=authoryear,natbib=true]{biblatex} \usepackage{filecontents} ...

3

The revtex class loads the natbib package with sort&compress option, that is for numerical citations. If you want an author-year citation in a revtex document, you need to set the citation style for natbib, this can be done adding \setcitestyle{authoryear}, using this command also you can set the whole style of a citation. ...

2

I originally thought you could change the formatting by patching the \NAT@split macro where the \NAT@date macro is set. The problem with this is that the \NAT@date macro is used in conditionals so it doesn't have the right form if you patch it. This means you need to patch where the \NAT@date macro is used. the \NAT@date macro is used in a number of places ...

1

You seem to be having trouble in compiling a latex file with bibliography using natbib. IF this is the real issue, then please note the following: 1) With your current MWE example, please keep the file myrefbibfile.bib in the same folder as your manuscript .tex file 2) To compile, follow this sequence: Run latex, the run bibtex and then run latex twice. So ...

Only top voted, non community-wiki answers of a minimum length are eligible