1

I am working with a template that uses the package subfigure, as I understand that it is outdated (and also because I have problem understanding how to place to figures side by side using this package), I try to change into subcaption package, but it gives me the following error:

Package caption Error: The `subcaption' package does not work correctly(caption) in compatibility mode. \begin{document}

Anyone knows this problem?

The packages that I use are:

\usepackage{jcappub}
\usepackage{dcolumn}% Align table columns on decimal point
%\usepackage[reqno]{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{bm}% bold math
\usepackage{hyperref}
\usepackage{url}
\usepackage[sort&compress]{natbib}
\usepackage{txfonts}
\usepackage{color}
\usepackage{epstopdf}
\usepackage{enumerate}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{caption}
\usepackage{subcaption}
% \usepackage{subfigure}
\usepackage{verbatim}
\usepackage{amsmath}
\usepackage{wasysym}
  • 1
    Have you seen this? tex.stackexchange.com/questions/144782/… maybe it will help? It is hard for people to answer the question without knowing what class document and other packages you are using. – FionaSmith Apr 30 '14 at 13:11
  • The two packages have different syntaxes for subfigures, if you could show us your code we would be able to see what you've done wrong. – Torbjørn T. May 1 '14 at 8:10
  • Strange, on a different computer it does not gives me this same error and work with subcaption package.. – Ohm May 2 '14 at 14:22
  • Did you empty all temp files before re-compiling? – Trefex May 2 '14 at 14:28

Your Answer

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

Browse other questions tagged or ask your own question.