我现在的标题是这样的。标题的第二行触及了分隔线。我的问题是如何将文本向上移动或将分隔线向下移动,以使格式看起来更美观。
主文件中的代码是
\documentclass{book}
\usepackage{fancyhdr}
\pagestyle{fancy} %set header type
\setlength{\headheight}{28pt}
\fancyhead[R]{\leftmark}
\fancyhead[L]{}
\begin{document}
\chapter{Open Top Frustum Shells under Vertical Uniform Load}
\chaptermark{\protect\parbox{.55\textwidth}{Open Top Frustum Shells under Vertical Uniform Load\strut}}
\end{document}
答案1
这是因为parbox
。解决方案是添加\strut
\documentclass{book}
\usepackage{fancyhdr}
\pagestyle{fancy} %set header type
\setlength{\headheight}{28pt}
\fancyhead[R]{\leftmark}
\fancyhead[L]{}
\begin{document}
\chapter{Open Top Frustum Shells under Vertical Uniform Load}
\chaptermark{\protect\parbox{.55\textwidth}{Open Top Frustum Shells under Vertical Uniform Load\strut}}
\chapter{Open Top Frustum Shells under Vertical Uniform Load}
\chaptermark{\protect\parbox{.55\textwidth}{Open Top Frustum Shells under Vertical Uniform Load\strut}}
\end{document}