如何標記章節/註釋/等。帶符號

如何標記章節/註釋/等。帶符號

我正在報告課上寫一篇論文,我想要類似以下格式的內容。

目錄

第一部分:簡介

第一章:一些歷史

第 2 章:一些文獻

第 3 章:一些更奇怪的東西

章節$\spadesuit$:主要結果的陳述

第二部分:肉食

第 4 章:定理證明 $\spadesuit$.1

等等等等

有人知道如何創建一個包含透過符號標記的章節的章節,例如 $\spadesuit$ 符號,因此 Chapter $\spadesuit$ 與部分 $\spadesuit$.1、部分 $\spadesuit$.2 等定理$\spadesuit$ .1 等並使本章出現在目錄中?

非常感謝! A。

答案1

\thechapter您可以在特殊章節中重新定義章節計數器的列印方式(即巨集),並在之後恢復。請注意,計數器本身仍然是數字,因此如果您想在上一個正常章節之後繼續編號,則需要將章節計數器減一。

微量元素:

\documentclass{report}
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}[chapter]
\begin{document}
\tableofcontents
\part{Introduction}
\chapter{Some history}
\chapter{Some literature}
\chapter{Some more waffly stuff}

\let\theoldchapter\thechapter
\def\thechapter{$\spadesuit$}
\chapter{Statement of the main results}
\section{Result section}
\begin{theorem}
Waffles are tasty
\label{thm:waffles}
\end{theorem}
\let\thechapter\theoldchapter
\addtocounter{chapter}{-1}

\part{The meaty stuff}
\chapter{Proof of Theorem \ref{thm:waffles}}
\end{document}

結果:

在此輸入影像描述 在此輸入影像描述

相關內容