Wiley NJD 期刊的类文件图表引用中有额外空格

Wiley NJD 期刊的类文件图表引用中有额外空格

基于这个模板,使用 Overleaf,我不知道如何在引用图形后删除空格。

无论我怎么尝试,它都会编译为“引用图形的示例文本(图 1)。如图 2 a 和图 2 b 所示。”

目标是“引用图形(图 1)的示例文本。如图 2A 和图 2B 所示。”

\documentclass[STIX1COL]{WileyNJD-v2}
\usepackage{graphicx}
\usepackage{subcaption}
\DeclareCaptionLabelFormat{subparens}{[\Alph{subfigure}]}
\captionsetup[sub]{
  labelformat=subparens, 
  position=top,
  justification=raggedright,
  singlelinecheck=false,
  skip = -0.25cm,
  font=normalsize}

\begin{document}

Preferred Figure Setup
\begin{figure}[htbp]
    \centering
    \subfloat[]{% 
        \label{fig:testsub1}
        \hspace{.4cm}
        \includegraphics[height=2cm]{Pictures/test.png}}
    \hspace{1cm} 
    \subfloat[]{%
        \label{fig:testsub2}\hspace{.4cm}
        \includegraphics[height=2cm]{Pictures/test.png}} 
    \caption{test caption\label{F2}}     
\end{figure}
    
Alternative Figure setup
\begin{figure}[htbp]
\centering
\begin{subfigure}[b]{0.45\textwidth}
    \centering
    \caption{}
    \includegraphics[height=2cm]{Pictures/test.png}    
    \label{fig:sub1}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.45\textwidth}
    \centering
    \caption{}
    \includegraphics[height=2cm]{Pictures/test.png}    
    \label{fig:sub2}
\end{subfigure}
\caption{Main Figure Caption}
\label{fig:main}
\end{figure}    

Figure setup from template
\begin{figure}[htbp]
\centering
\includegraphics[height=2cm]{Pictures/test.png}
\caption{Figure caption\label{F6}}
\end{figure}

sample text to reference a figure (Fig. \ref{F2}). As seen in Figure~\ref{fig:sub1} and Figure~\ref{fig:sub2}. 
sample text to reference a figure (Fig.~\ref{F2}). As seen in Figure~\ref{fig:sub1} and Figure~\ref{fig:sub2}.


\end{document}

相关内容