喂养pdflatex
\documentclass{article}
\pagestyle{empty}
\usepackage{mathtools}
\usepackage[capitalize]{cleveref}
%% customizing: “Formula” instead of “Eq.”, “Formulas” instead of “Eqs.”, and allow for line breaks wherever we can.
\crefname{equation}{Formula}{Formulas}
\Crefname{equation}{Formula}{Formulas}
\crefformat{equation}{Formula (#2#1#3)}
\Crefformat{equation}{Formula (#2#1#3)}
\creflabelformat{equation}{(#2#1#3)}
\crefrangeformat{equation}{Formulas (#3#1#4) to (#5#2#6)}
\Crefrangeformat{equation}{Formulas (#3#1#4) to (#5#2#6)}
\crefrangelabelformat{equation}{(#3#1#4) to (#5#2#6)}
\crefmultiformat{equation}{Formulas (#2#1#3)}{ and (#2#1#3)}{, (#2#1#3)}{ and (#2#1#3)}
\Crefmultiformat{equation}{Formulas (#2#1#3)}{ and (#2#1#3)}{, (#2#1#3)}{ and (#2#1#3)}
\labelcrefmultiformat{equation}{(#2#1#3)}{ and (#2#1#3)}{, (#2#1#3)}{ and (#2#1#3)}
\crefrangemultiformat{equation}{Formulas (#2#1#3)}{ and (#2#1#3)}{, (#2#1#3)}{ and (#2#1#3)}
\Crefrangemultiformat{equation}{Formulas (#2#1#3)}{ and (#2#1#3)}{, (#2#1#3)}{ and (#2#1#3)}
\labelcrefrangemultiformat{equation}{(#2#1#3)}{ and (#2#1#3)}{, (#2#1#3)}{ and (#2#1#3)}
\begin{document}
\begin{equation}
1\label{one}
\end{equation}
\begin{equation}
2\label{two}
\end{equation}
\begin{equation}
3\label{three}
\end{equation}
References with the name: \cref{one,two,three}.\\
References without the name: \labelcref{one,two,three}.
\end{document}
产量
我们如何在序言中设置 cleveref 来获得
(1)至(3)
代替
1 至 3
对于没有交叉引用名称的引用范围(此处为“公式”)也是如此吗?请注意,我们确实希望在“公式”和“公式”之后直接允许换行。