提问
问1:ctexbook环境章节前一页(空白页)的页码错位,标准解决方法是什么?是否应该在每章前手动设置\cleardoublepage?
问2:在lscape宏包landscape环境下,设置\cleardoublepage无法纠正页码错位,应该如何解决该问题?
问3:是否有比较简单可靠的方法实现切换到landscape环境后,页眉页脚也旋转90°?
WME
\documentclass[12pt,UTF8, scheme=chinese]{ctexbook}%ctexbook问题依旧
\usepackage{tabularray,appendix,lscape,geometry, zhlipsum}
\usepackage{fancyhdr}
\begin{document}
\pagestyle{fancy}
\setlength{\headheight}{15pt}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\fancyfoot[C]{\thepage}
\fancyhead[LE]{\bfseries \leftmark}
\fancyhead[RO]{\bfseries \rightmark}
\renewcommand{\headrulewidth}{0.4pt}
\tableofcontents{}
\mainmatter{}
\chapter{章节1标题}
\section{第二层标题}
\zhlipsum[1-5]
\cleardoublepage
%现象:第4页,不设置/cleardoublepage,页码位置不正常。设置则正常
%问题1:新章节前手动增加\cleardoublepage是标准做法吗?
\begin{landscape}
\chapter{章节2标题}
\zhlipsum[1]
\cleardoublepage
%问题2:第6页,无论是否设置\cleardoublepage:页码位置均不正常。应如何解决?
\appendix
%问题3:是否有简单的方法,在长边设置页眉页脚?(页眉页脚旋转90°)
\chapter{附录1标题}
\zhlipsum[1]
\begin{longtblr} [caption = {表格标题}, ]{ rowhead = 1,
colspec = {XXX}, hlines, }
c1&c2&c3\\
1&2&3\\
1&2&3\\
1&2&3\\
1&2&3\\
1&2&3\\
1&2&3\\
\end{longtblr}
\chapter{附录2标题}
\zhlipsum[2]
\end{landscape}
\end{document}
附图
问1~2附图
问3附图
预先感谢各位老师的解答