Document Classesundefined control sequence \captionsetup

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
alehambre
Posts: 1
Joined: Thu Apr 03, 2008 7:44 pm

undefined control sequence \captionsetup

Post by alehambre »

Can someone please help me understand how the caption package is successfully loaded, but \captionsetup is an undefined control sequence?

This is TeX, Version 3.14159 (Web2C 7.4.5)...
(/usr/share/texmf/tex/latex/caption/caption.sty)
! Undefined control sequence.
<recently read> \captionstyle...

test.tex:
\documentclass{article}
\usepackage{caption}
\usepackage{graphicx}
\captionsetup[figure]{labelformat=empty,labelsep=none}
\begin{document}

\begin{figure}
\centering
\includegraphics{../image/eps/nihms14629f1.eps}
\caption{This is a figure caption without a label}
\end{figure}

\begin{figure}
\centering
\includegraphics{../image/eps/nihms14629f2.eps}
\end{figure}

\end{document}

Thanks!

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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

undefined control sequence \captionsetup

Post by localghost »

Your LaTeX system seems a little bit outdated. Put a \listfiles command in the first line of your code and start a new run. Search the log file for a section called *File List* and post this list of used packages here. In the case that your version of caption is too old, you can update it from CTAN.


Best regards
Thorsten¹
Post Reply