如何从某个精确页面中删除某个标题?

如何从某个精确页面中删除某个标题?

在此处输入图片描述今天我想问如何从确切的页面中删除小节标题,同时保留页码?我旋转了页面并放了一张图片,你可以看到页面上显示为“4.4 ALB”。我试过 \pagestyle{plain}\setcounter{25}(25 是页面),但没有用。实际上它删除了从第 24 页到第 27 页的内容(因为这是章节的结尾)。我试过 \thispagestyle,但都没有用。所以我希望有人能帮助我。

\begin{sidewaysfigure}
    \includegraphics[scale=0.7,keepaspectratio]{plot/ctree.png}
\end{sidewaysfigure}
    \pagestyle{plain}\setcounter{25}

答案1

使用landscape环境(因为它不是浮动环境,因此是简单的添加\thispagestyle{empty}sidewaysfigure

\documentclass{article}
\usepackage{pdflscape}   % <--- added
\usepackage{afterpage}
\usepackage{graphicx}
\usepackage{lipsum}

\begin{document}
\lipsum[1-2]
\afterpage{\clearpage\thispagestyle{empty}
\begin{landscape}
    \begin{figure}
    \centering
\includegraphics{example-image}
    \caption{my figure}
    \label{fig:landscape}
    \end{figure}
\end{landscape}
}
\lipsum
\end{document}

在此处输入图片描述

相关内容