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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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