
Cleveref capitalize
옵션을 사용할 때 모든 참조는 대문자로 표시되어야 합니다. 하지만 이것은 새로운 번역을 추가하지 않는 경우에만 작동합니다 babel
.
다음 예제를 실행하면 다음이 figura
대신 발생합니다 Figura
.
그리고 내 줄을 주석 처리하면 \addto\captionsbrazil{\crefname{figure}{figura}{figuras}}
옵션 capitalize
이 다시 작동하기 시작합니다.
capitalize
babel 패키지와 함께 사용할 때 Cleveref 옵션을 수정하는 방법은 무엇입니까 ?
이것을 Cleveref 패키지 관리자에게 버그로 보고하려면 어떻게 해야 합니까?
\documentclass[english,12pt,a4paper,twoside]{abntex2}
\usepackage{listings}
\usepackage[nameinlink,capitalise]{cleveref}
\addto\captionsbrazil{\crefname{figure}{figura}{figuras}}
\addto\captionsbrazil{\Crefname{figure}{Figura}{Figuras}}
\begin{document}
\chapter{Hi}
See the \Cref{acode,afigure}.
\Cref{afigure}.
\Cref{acode}.
\begin{lstlisting}[caption=Code,label=acode]
Code
\end{lstlisting}
\begin{figure}[!htb]
\caption{Figure}
\label{afigure}
Figure
\end{figure}
Something...
\end{document}
관련 질문:
업데이트
수행원@미코\addto\captionsbrazil
기본적으로 Figura
쇼를 표시하는 대신 이 약어를 재정의하는 데 Fig.
사용해야 하기 때문에 사용하지 말라는 제안은 작동하지 않습니다 .\addto\captionsbrazil
Fig.
\documentclass[english,12pt,a4paper,twoside]{abntex2}
\usepackage{listings}
\renewcommand\lstlistingname{Listagem}
\usepackage[nameinlink,capitalise,brazilian]{cleveref}
\begin{document}
\chapter{Hi}
See the \Cref{acode,afigure}.
\Cref{afigure}.
\Cref{acode}.
\begin{lstlisting}[caption=Code,label=acode]
Code
\end{lstlisting}
\begin{figure}[!htb]
\caption{Figure}
\label{afigure}
Figure
\end{figure}
Something...
\end{document}
답변1
brazilian
패키지 를 로드할 때 사용되는 옵션 목록에 해당 옵션을 추가하는 것이 좋습니다 cleveref
. 즉, 다음과 같습니다.
\documentclass[english,12pt,a4paper,twoside]{abntex2}
\usepackage{listings}
\renewcommand\lstlistingname{Listagem}
\usepackage[nameinlink,capitalise,brazilian]{cleveref}
"Fig." 대신 "Figura"를 얻으려면 noabbrev
패키지를 로드하는 옵션 목록에 해당 옵션을 추가하기만 하면 됩니다 cleveref
.
\addto\captionsbrazil
이 설정을 사용하면 코드에 표시된 두 가지 지침이 필요하지 않은 것 같습니다.