如何在一个参考文献中引用多个表格?

如何在一个参考文献中引用多个表格?

我遇到了一个简单的问题。我想在一个引用中引用多个表。我的代码如下。我从之前的线程中学到的“在一个引用中引用多个表“。但它仍然出错,出现“?????”这样的错误。如果我使用命令,\crefrange{test1}{test3}。它会正确显示。但我想显示像“Figs.”这样的标签,而不是“figs”。有人可以帮我吗?谢谢!

`\documentclass[12pt,a4paper]{article}`
\usepackage{microtype}
\usepackage{sectsty}
\usepackage{fontspec,cleveref}
\usepackage{xeCJK}
\allsectionsfont{\centering}
\usepackage{indentfirst,amsmath,multicol,amssymb,booktabs,threeparttable,tabularx}
\usepackage[font=small,format=plain,labelfont=bf,up,textfont=normal,up,justification=justified,singlelinecheck=false]{caption}
\usepackage{geometry}
\geometry{top=1.4in,bottom=1.in,left=1in,right=1in}
\numberwithin{equation}{section}
\newcommand{\crefrangeconjunction}{to~}
\usepackage{graphicx,subfig} 
\graphicspath{{F:/}}
\begin{document}
\cref{test1, test2,test3 }

\begin{figure}[htb]
    \includegraphics[width=4.2in]{test1}\label{test1}}
 \end{figure}
\begin{figure}[htb]
    \includegraphics[width=4.2in]{test2}\label{test2}}
 \end{figure}
\begin{figure}[htb]
    \includegraphics[width=5in]{test3}\label{test3}} 
\end{figure}
\end{document}

答案1

chyh参考表

\documentclass[12pt,a4paper]{article}
\newcommand{\crefrangeconjunction}{~to~}
\usepackage[capitalize]{cleveref}
%\usepackage{mwepage}% 4 line local package to get a yellow page
\begin{document}
\begin{figure}
    \caption{Wombat}\label{wombat}
    \caption{Capybara}\label{capy}
    \caption{Mara}\label{mara}
\end{figure}
\Crefrange{wombat}{mara} and alternatively
\crefrange{wombat}{mara}
\end{document}

相关内容