参考章节

参考章节

通过在此网页中搜索有关论文参考章节的帖子,我找到了以下解决方案编码:

\documentclass{article}
\usepackage{xparse,nameref}
\usepackage{cleveref}
\usepackage{filecontents}
\usepackage[nokeyprefix]{refstyle}

\begin{document}

In this section, we will explain the method used to tackle this
problem but the actual calculation and results will appear later on in
\chapref{chap:3}, \chapref{chap:4} and \chapref{chap:5}. The main
theorem is as follows.

\end{document}

问题如图所示,chapter 中的 C 是小写字母,如何将其改为大写字母? 在此处输入图片描述

答案1

使用文档第一页上所示的大写版本的命令。

sharinaismailCleverref

\documentclass{report}
%\usepackage{xparse,nameref}% unneded
%\usepackage{cleveref}% unneded
%\usepackage{filecontents}% Load this only if you know what it is doing
\usepackage[nokeyprefix]{refstyle}

\begin{document}
\chapter{Wombat}\label{wombat}
\chapter{Capybara}\label{capybara}
\chapter{Duck}\label{duck}

In this section, we will explain the method used to tackle this problem but the actual
calculation and results will appear later on in \Chapref{duck}, \Chapref{wombat} and
\Chapref{capybara}. The main theorem is as follows.

\end{document}

答案2

该包cleveref有以下选项capitalise

\documentclass{book}
\usepackage[capitalise]{cleveref}

\begin{document}

In this section, we will explain the method used to tackle this
problem but the actual calculation and results will appear later on in
\cref{bla}, \cref{blub}. The main
theorem is as follows.

\chapter{bla}
\label{bla}

\chapter{blub}
\label{blub}

\end{document}

在此处输入图片描述

相关内容