我希望该图的参考编号指向图号 (1),而不是小节号 (1.1)。我该怎么做?
输出如下:
以下是代码:
\documentclass[a4paper, 10pt]{article}
\usepackage{float}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{xcolor}
\usepackage[colorlinks]{hyperref}
\usepackage{lipsum}
\renewcommand{\familydefault}{\sfdefault}
\hypersetup{
colorlinks,
filecolor=magenta,
linkcolor=blue,
citecolor=blue,
urlcolor=cyan,
final
}
\definecolor{myblue}{RGB}{0, 32, 255}
\usepackage{caption}
\usepackage{xurl}
\usepackage{multirow}
\usepackage{multicol}
\begin{document}
\title{\vspace{-2.0cm}
blabla
}
\author{\small Name of author}
\date{\vspace{-3ex}}
\maketitle
\begin{multicols}{2}
\vspace{-1cm}
\section{section 1}
\subsection{subsection 1}%\label{Complexity_of_MR}
\vspace{-0.2cm}
(figure reference
\ref{example-image-a}).
\begin{figure}[H]
\vspace{-0.4cm}
\begin{center}
% \includegraphics[width=0.48\textwidth]{figures/MR_mechanisms_01.png}
\includegraphics[width=0.48\textwidth]{example-image-a}
\end{center}
\caption{caption}
\end{figure}\label{example-image-a}
\noindent
\end{multicols}
\end{document}