Skip to content

Instantly share code, notes, and snippets.

@shuntaroy
Last active January 31, 2024 21:03
Show Gist options
  • Save shuntaroy/3a9de31ce57b19338e18 to your computer and use it in GitHub Desktop.
Save shuntaroy/3a9de31ce57b19338e18 to your computer and use it in GitHub Desktop.
cleveref 和文論文向け設定
\usepackage[noabbrev]{cleveref}
\crefformat{chapter}{第#2#1#3章}
\crefformat{section}{#2#1#3節}
\crefformat{subsection}{#2#1#3節}
\crefname{figure}{図}{図}
\crefname{table}{表}{表}
\crefname{equation}{式}{式}
\crefname{appendix}{付録}{付録}
\newcommand{\crefrangeconjunction}{--}
\newcommand{\crefpairconjunction}{, }
\newcommand{\crefmiddleconjunction}{, }
\newcommand{\creflastconjunction}{, }
@shuntaroy
Copy link
Author

\ref{labelname} の代わりに \cref{labelname} とすると自動で「第1章」などと変換してくれる cleveref パッケージを日本語化するスタイルファイルの見本です。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment