已编辑
我对 LaTeX 还很陌生,我刚刚用 twoside 编写了我的论文(之前是 oneside)。在一些随机的水平页面上,章节标题(已使用 \chaptermark{} 缩短)偏移并超出了侧面。
下面是一些可编译的代码,并附上了我使用的图像:
\documentclass[12pt,twoside]{book} %,PageStyleII,times,numbering,print,custombib
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{a4paper} % ... or a4paper or a5paper or ...
\usepackage{floatrow}
\usepackage{setspace}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{graphicx}
\usepackage{lscape}
%\usepackage{float}
\usepackage{booktabs}
\captionsetup[figure]{font={small}, skip=1pt, singlelinecheck=false}
\captionsetup[subfigure]{font={small}, skip=1pt, singlelinecheck=false}
\captionsetup{labelfont=bf}
\captionsetup[table]{font={small}, skip=1pt, singlelinecheck=false}
\raggedbottom
\usepackage{lineno}
\usepackage{mathtools}
\usepackage[all]{nowidow}
\usepackage{tocloft}
\usepackage{xpatch}
\usepackage{enumitem}
%\usepackage{amssymb}
\usepackage{cite}
\usepackage{natbib}
\renewcommand\bibname{References}
\usepackage[nottoc]{tocbibind}
\usepackage{appendix}
\usepackage{chngcntr}
\usepackage{longtable}
\usepackage{color, colortbl}
\definecolor{lightgray}{gray}{0.9}
\floatsetup[table]{capposition=top}
\usepackage{makecell}
\begin{document}
% ******************************** Main Matter *********************************
\mainmatter
\chapter{Assessing the evidence for microenvironments in craters}
\label{chap:micro}
\chaptermark{Microenvironments in craters}
%********************************** %5th Section **************************************
\section{The environment at Kaiser crater}
Blah blah blah
\subsection{Surface temperature}
The blah blah blah
\newpage
blah blah
\newpage
\begin{landscape}
\begin{figure}[H]
\begin{center}
\includegraphics[width=0.95\hsize]{Micro/windsx4_Kaiser_ls110.png}
\caption{one page horizontal which plots ok.}
\label{fig:ktsurf}
\end{center}
\end{figure}
\newpage
\begin{figure}[H]
\begin{center}
\begin{subfigure}{0.95\hsize}
\subcaption{\bf SH mid-summer}
\label{fig:ktsurf_110}
\includegraphics[width=0.95\hsize]{Micro/windsx4_Kaiser_ls110.png}
\end{subfigure}
\caption{This plots chapter header offset.}
\label{fig:ktsurf_winds}
\end{center}
\end{figure}
\begin{figure}[H]\ContinuedFloat
\begin{center}
\begin{subfigure}{0.95\hsize}
\subcaption{\bf SH late autumn}
\label{fig:ktsurf_230}
\includegraphics[width=0.95\hsize]{Micro/windsx4_Kaiser_ls110.png}
\end{subfigure}
\captionsetup{justification=centering}
\caption[]{This plots OK}
\end{center}
\end{figure}
\begin{figure}[H]\ContinuedFloat
\begin{center}
\begin{subfigure}{0.95\hsize}
\subcaption{\bf SH early spring}
\label{fig:ktsurf_350}
\includegraphics[width=0.95\hsize]{Micro/windsx4_Kaiser_ls110.png}
\end{subfigure}
\captionsetup{justification=centering}
\caption[]{This plots OK}
\end{center}
\end{figure}
\end{landscape}
\end{document}
只有当第二个水平页面在右侧/页码为偶数时才会发生这种情况。当我编译它并且第一个水平页面在右侧时,其余一切都正常。