I want to have a float which covers an entire page, but with a table and two figures inside. From https://tex.stackexchange.com/a/111121 I figured (no pun indented) I need to write (using the caption and the subcaption package)






    \captionof{table}{My table text}
    this & and & that

    \includegraphics [width=\textwidth] {fig1.pdf}
    \captionof{figure}{My fig 1 text}

    \includegraphics [width=\textwidth] {fig2.pdf}
    \caption{figure}{My fig 2 text}


(Please find the class at ftp://ftp.springernature.com/cs-proceeding/llncs/llncs2e.zip)

But now I get the warnings

The caption type was already set to 'figure'(caption) on input line 27

The caption type was already set to 'table'(caption) on input line 36

Otherwise this is exactly what I want. What can I do?


The springer class has its own caption handling. Define a \captionof which do not needs a package:


\captionof{table}{My table text}\label{tab:nmi}
    this & and & that

\caption{My fig 1 text}\label{fig:nmi_alldatasets}

\caption{My fig 2 text}\label{fig:nmil_perdatasets}


enter image description here

It can be a simple definition if you use inside a figure or table environment always \captionof and not a mix of \caption and \captionof

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.