
我正在寫一篇博士論文,其中包含一個很長的章節標題:
序貫 P 系統的通用性邊緣
當我使用標準標題頁面樣式時,標題中的標題會溢出並且看起來很難看:
\documentclass[a4paper,12pt,oneside,openany,pagenumber=footcenter]{book}
\pagestyle{headings}
\begin{document}
\chapter{On the edge of universality of sequential P systems}
\section{Active membranes}
\pagebreak
second page
\end{document}
還有其他選項,例如將長標題換行到下一行。它稍微好一些,但仍然很難讀:
\documentclass[a4paper,12pt,oneside,openany,pagenumber=footcenter]{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\begin{document}
\chapter{On the edge of universality of sequential P systems}
\section{Active membranes}
\pagebreak
second page
\end{document}
另一種選擇是在標題中顯示較短版本的章節標題:
\documentclass[a4paper,12pt,oneside,openany,pagenumber=footcenter]{book}
\begin{document}
\chapter[On the edge of universality of seq\dots]{On the edge of universality of sequential P systems}
\section{Active membranes}
\pagebreak
second page
\end{document}
我想,一切都有可能。但這些長標題的最佳做法是什麼?我的部門沒有這方面的規定,即使是這樣手動的沒有提及它。我要求一般性建議:你會做什麼?
答案1
我會將標題縮寫為完整的短語,而不僅僅是用 截斷它\ldots
另外,我會將預設標記更改為不大寫。在預設設定中,章節標題可能會更短,並且每個頁面只有一個章節或一個節標題,而不是兩者都有。
\documentclass[a4paper,12pt,oneside]{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength\headheight{15pt}
\makeatletter
\renewcommand\chaptermark[1]{%
\markboth{\if@mainmatter
\@chapapp\ \thechapter. \ %
\fi #1}{}}
\renewcommand\sectionmark[1]{%
\markright {%
\thesection. \ %
#1}}
\makeatother
\begin{document}
\chapter[edge of universality]
{On the edge of universality of sequential P systems}
\section{Active membranes}
\pagebreak
second page
\end{document}