[Tex/LaTex] Caption-package: caption* does not work

captionsnumberingsv-classes

I have a chapter in which I need for tables and figures to exceptionally not be numbered. Caption package apparently provides for this by using \caption*{title} . However, this does not seem to work for me. Any idea why?

\documentclass[graybox,envcountchap,sectrefs]{svmono}
\usepackage{lipsum}
\usepackage{graphicx}   
\usepackage[labelfont=bf,justification=justified,singlelinecheck=false]{caption}
\usepackage{booktabs,tabularx}
\graphicspath{{Figures/}}

\begin{document}

\begin{table}[]
\begin{tabular}{@{}lll@{}}
\toprule
Title of Table \\ \midrule
\end{tabular}
\caption*{Captiontext}
\end{table}

\end{document}

This is the result: enter image description here

Best Answer

Running LaTeX on your document produces the following warning:

Package caption Warning: \caption will not be redefined since it's already
(caption)                redefined by a document class or package which is
(caption)                unknown to the caption package.

This means you can't use caption with the svmono class.

In your case, just adding the text will do.

\RequirePackage{fix-cm}
\documentclass[graybox,envcountchap,sectrefs]{svmono}
\usepackage{lipsum}
\usepackage{graphicx}   
\usepackage{booktabs,tabularx}
\graphicspath{{Figures/}}

\begin{document}

\begin{table}[htp]
\begin{tabular}{@{}lll@{}}
\toprule
Title of Table \\ \midrule
\end{tabular}

\caption{\protect\lipsum*[2]}

\end{table}

\begin{table}[htp]
\begin{tabular}{@{}lll@{}}
\toprule
Title of Table \\ \midrule
\end{tabular}

\vspace{\tabcapgap}

\lipsum[2]

\end{table}

\end{document}

enter image description here