When I try to typeset with both the packages subcaption and breqn, I get the following error:
! Package caption Error: The `subcaption' package does not work correctly(caption) in compatibility mode.See the caption package documentation for explanation.Type H for immediate help.... \begin{document}
However, if I deactivate either package, the document can typeset.
My preamble is as follows
\documentclass[a4paper]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{graphicx}
\usepackage{float}
\graphicspath{{figures/}}
\includeonly{intro}
\usepackage{pstool}
\usepackage{epstopdf}
\usepackage{subcaption}
\usepackage{breqn}
\listfiles
\epstopdfDeclareGraphicsRule{.gif}{png}{.png}{%
convert #1 \OutputFile
}
\AppendGraphicsExtensions{.gif}
\newcommand{\vect}[1]{\boldsymbol{#1}}
\newcommand{\vectornorm}[1]{\left|\left|#1\right|\right|}
\newcommand{\pic}[5]{
\begin{figure}[H]
\centering
\includegraphics[width=#2\textwidth]{#1}
\caption[#3]{#4}
\label{#5}
\end{figure}
}
\title{\textbf{report\newline}}
\author{
\begin{tabular}{l c r}
First Middle Surname
\end{tabular}
}
\date{\today}
\setcounter{secnumdepth}{-1}
\begin{document}
\maketitle
\newpage
\begin{dmath}
x=5
\end{dmath}
\end{document}
Let me know if you wanna see file listing