我正在使用带有巴西选项的 cleveref 包。我想将原有的巴西范围连词(如“Figuras 1 a 3”)更改为新的巴西范围连词(如“Figuras 1 à 3”)。我该怎么做?
我的 MWE 尝试:
\documentclass[brazil]{article}
\usepackage{babel}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[brazilian]{cleveref}
\crefname{figure}{Figura}{Figuras}
\makeatletter
\def\crefrangeconjunction@preamble{ \`{a}\nobreakspace}%
\makeatother
\begin{document}
Estas são as \cref{here:one,here:two,here:three,here:four}.
\begin{figure}[!ht]
\caption{Caption 01}
\label{here:one}
\end{figure}
\begin{figure}[!ht]
\caption{Caption 02}
\label{here:two}
\end{figure}
\begin{figure}[!ht]
\caption{Caption 03}
\label{here:three}
\end{figure}
\begin{figure}[!ht]
\caption{Caption 04}
\label{here:four}
\end{figure}
\end{document}
根据下图,该 MWE 的结果如下:
答案1
使用
\newcommand{\crefrangeconjunction}{ \`{a}\nobreakspace}
\documentclass[brazil]{article}
\usepackage{babel}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[brazilian]{cleveref}
\crefname{figure}{Figura}{Figuras}
%\makeatletter
% \def\crefrangeconjunction@preamble{\"{a}\nobreakspace}%
%\makeatother
\newcommand{\crefrangeconjunction}{ \`{a}\nobreakspace}
\begin{document}
Estas são as \cref{here:one,here:two,here:three,here:four}.
\begin{figure}[!ht]
\caption{Caption 01}
\label{here:one}
\end{figure}
\begin{figure}[!ht]
\caption{Caption 02}
\label{here:two}
\end{figure}
\begin{figure}[!ht]
\caption{Caption 03}
\label{here:three}
\end{figure}
\begin{figure}[!ht]
\caption{Caption 04}
\label{here:four}
\end{figure}
\end{document}