0

enter image description here

Please, where is the problem?!

  • 3
    Please not add a picture or fragment. Instead put your complete code. Thanks. – Sebastiano Dec 25 '18 at 10:48
  • 3
    caption can be used inside the float (i.e., Figure, Table). \begin{table} .. \end{table} for Table. – Saravanan Dec 25 '18 at 10:50
  • 2
    You did exactly what the error message said you did: use \caption outside of a floating environment. There are many similar posts on this site. – TeXnician Dec 25 '18 at 10:50
  • 2
    Your tabular sis not included in a floating environment (table in the place of center would be OK). – Bernard Dec 25 '18 at 10:51
  • 1
    Without table environment, use \captionof{table}{Empirical...} instead of \caption{Empirical...}... you need the caption package for that, however. And please do not post screen shots of code only – user31729 Dec 25 '18 at 10:52
5

Well, a little christmas gift for you ...

Please see the following MWE (please add such an minimal working example to your next question! It is easier to help you then):

\documentclass{article}

\usepackage{caption} % <================================================

\begin{document}

\begin{center}
\begin{tabular}{ll}
  test & test
\end{tabular}
\captionof{table}{caption of table} % <=================================
\end{center}

\end{document}

With command \captionof (you need to load package caption for it) you can add an caption for a table or figure (second option) without using a floating table or figure ...

The result of the given MWE:

enter image description here

Your Answer

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