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!
Document Classes ⇒ undefined control sequence \captionsetup
- localghost
- Site Moderator
- Posts: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
undefined control sequence \captionsetup
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¹
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
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1