BibTeX, biblatex and bibercaption and citation with natbib and caption packages

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
kmcfarlane
Posts: 7
Joined: Fri Jan 25, 2008 8:20 pm

caption and citation with natbib and caption packages

Post by kmcfarlane »

I am using natbib with plainnat, and caption.
\usepackage[numbers]{natbib}
\usepackage[format=hang,hangindent=0pt]{caption}
.
.
.
\bibliographystyle{plainnat}
\bibliography{MS}

I have problems with citations in captions. This code works some of the time:
\begin{table}[ht]
\caption[Standard model fundamental particles]%
{Standard model fundamental particles~\protect\citep{PDG:2008}}

However, sometimes it breaks after I have edited files and gives me an 'undefined command' message pointing to that line. When it does break, I cannot 'heal' it. I have tried deleting all the aux files. Sometimes getting out of MikTeX and coming back in works.

Any ideas why this combination should be unreliable?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: caption and citation with natbib and caption packages

Post by sommerfee »

Could you please post a complete example? (*) Using this I would be able to reproduce and hopefully fix the problem.

Axel

(*) http://www.minimalbeispiel.de/mini-en.html
Post Reply