4

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

  • 3
    I don't think caption is compatible with svmono. – egreg Oct 28 '16 at 22:10
  • 1
    If not, is there any other option for the numbering of tables and figures to disappear? – kuuhkuuh Oct 28 '16 at 22:14
  • 2
    Why don't you simply write the text without the caption command? – Ulrike Fischer Oct 28 '16 at 22:30
6

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

  • In principle, this appears to work. Thanks! However, what does the \vspace{\abovecaptionskip} do? I am asking, as now the margin between the figure and the text is too wide and I need to manually reduce it only for this single figure. Any idea as to how? – kuuhkuuh Oct 29 '16 at 15:02
  • 1
    @kuuhkuuh It's the standard space preceding a caption. – egreg Oct 29 '16 at 15:06
  • It appears, the the space following the figure/table and preceding the text is by default too wide (i.e. wider than for a caption) and I need to further reduce it to make the text look like a caption. Do you have a suggestion for that? – kuuhkuuh Oct 29 '16 at 15:09
  • 1
    @kuuhkuuh It is \tabcapgap; I changed the example to show that the spacing is the same in both cases. – egreg Oct 29 '16 at 15:15
  • Strange, it does not work for me. Is there a different way to change the margin once? – kuuhkuuh Oct 29 '16 at 15:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.