I am using numberwithin to number my figures within their section. For example, I have figures 1.1, 1.2, and 1.3 in section 1 and figures 2.1 and 2.2 in section 2. What I want to do is reference just the figure number, and not the section. For example, I want a reference to read "figures 1.1-3". Is there any way to do this?
Here is what I believe to be the relevant part of the preamble in my document:
\documentclass[runningheads]{llncs}
\let\proof\relax
\let\endproof\relax
\usepackage{amsthm}
\usepackage{amssymb}
\setcounter{tocdepth}{3}
\usepackage{graphicx}
\usepackage{mathtools}
\usepackage{listings}
\usepackage{verbatim}
\usepackage{epsfig}
\usepackage[linesnumbered,ruled,vlined]{algorithm2e}
\usepackage{todonotes}
\usepackage[normalem]{ulem}
\usepackage{proof}
\usepackage{ragged2e}
\usepackage{enumitem}
\usepackage{syntax}
\usepackage{mathpartir}
\numberwithin{figure}{section}
The following is a small example with respect to the above preamble:
\begin{document}
\title{Example}
\titlerunning{Example}
\author{Me}
\maketitle
\section{First Section}
\begin{figure}[htbp]
\caption{First Figure}
\label{fig:1.1}
This is a figure.
\end{figure}
\begin{figure}[htbp]
\caption{Second Figure}
\label{fig:1.2}
This is another figure.
\end{figure}
\begin{figure}[htbp]
\caption{Third Figure}
\label{fig:1.3}
This is yet another figure.
\end{figure}
\section{Second Section}
\begin{figure}[htbp]
\caption{Fourth Figure}
\label{fig:2.1}
This is a figure in the second section.
\end{figure}
\begin{figure}[htbp]
\caption{Fifth Figure}
\label{fig:2.2}
This is another figure in the second section.
\end{figure}
\section{Conclusion}
As you can see in figures \ref{fig:1.1}-\ref{fig:1.3}, the numbering is not what I'd like. I want it to read "figures 1.1-3".
\end{document}




graphicxpackage, there's no need for theepsfigpackage. None. – Mico Jan 03 '21 at 22:38