功能实现---页眉页脚的问题
leec456 opened this issue · 3 comments
leec456 commented
想要将单页页眉显示为章名并靠右,双页页眉显示为书名并靠左,页码也单页靠右,双页靠左显示
sikouhjw commented
\documentclass[twoside]{elegantbook}
\title{test}
\makeatletter
\fancyhf{}
\fancyhead[OR]{\leftmark}
\fancyhead[EL]{\@title}
\fancyfoot[OR]{\thepage}
\fancyfoot[EL]{\thepage}
\makeatother
\usepackage{lipsum}
\begin{document}
\chapter{test}
\lipsum[1-20]
\end{document}
leec456 commented
请问一下,用了twoside之后出现了很多的空白页,这个怎么解决啊?
sikouhjw commented
请问一下,用了twoside之后出现了很多的空白页,这个怎么解决啊?
openright, openany
指定新的一章 \chapter
是在奇数页(右侧)开始,还是直接紧跟着上一页开始. report 默认为 openany
,book 默认为 openright
.对 article 无效.