我尝试subcaption
在代码中使用该包,但它会引发错误。这是我的代码的序言:
\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[LGR,T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{microtype}
\usepackage{upgreek}
\usepackage[misc]{ifsym}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{subcaption}
%%% Maths and science packages
\usepackage{amsmath,amsthm,amssymb}
\usepackage{pgfplots}
\usetikzlibrary{
calc,
patterns,
positioning
}
\pgfplotsset{
compat=1.16,
samples=200,
clip=false,
my axis style/.style={
axis x line=middle,
axis y line=middle,
legend pos=outer north east,
x axis line style={
->,
},
y axis line style={
<->,
},
legend style={
font=\footnotesize
},
label style={
font=\footnotesize
},
tick label style={
font=\footnotesize
},
xlabel style={
at={
(ticklabel* cs:1)
},
anchor=west,
font=\footnotesize,
},
ylabel style={
at={
(ticklabel* cs:1)
},
anchor=west,
font=\footnotesize,
},
xlabel=$X$,
ylabel=$Y$
},
}
\tikzset{
>=stealth
}
%%% Tables and figures packages
\usepackage{float}
\usepackage{caption}
\captionsetup{
format=plain,
labelfont=bf,
font=small,
justification=centering
}
%%% Numbers and sets
\newcommand{\E}{\mathrm{e}}
\title{Monthly report May 2022}
\author{kashwin975 }
\date{May 2022}
\begin{document}
\maketitle