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}