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
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
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¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply