![某些页面带有浮动,但无页码](https://linux22.com/image/421214/%E6%9F%90%E4%BA%9B%E9%A1%B5%E9%9D%A2%E5%B8%A6%E6%9C%89%E6%B5%AE%E5%8A%A8%EF%BC%8C%E4%BD%86%E6%97%A0%E9%A1%B5%E7%A0%81.png)
我想抑制某个浮动页面的登录页上的页码 - 但页眉应该出现在那里。
我的 MWE 显示,如何抑制页码和运行头thisfloatpagestyle{empty}
。但我希望运行头位于题为“问题”的部分。
我是不是放\ofoot
错了地方?或者有更干净的解决方案吗?
谢谢!
梅威瑟:
\documentclass[headings=optiontohead]{scrbook}
\usepackage{scrlayer-scrpage}
\pagestyle{headings}
\usepackage{floatpag}
\usepackage{graphicx}
\title{TestHeadingsFigure}
\author{Test}
\date{September 2020}
\begin{document}
\maketitle
\chapter{test}
\section{Everything is ok}
%Float appears on whole page, no running head and no page number (works)
\begin{figure}[p]
\thisfloatpagestyle{empty}
\includegraphics[height=0.3\textheight]{example-image-a}
\caption{Test}
\end{figure}
\clearpage
\section{Problem}
\vfill
%Float appears on lower part of page, runnig head should exist, but page number should not exist (but it does!, so it's not working)
\begin{figure}[!h]
\ofoot{}
\thisfloatpagestyle{scrheadings}
\includegraphics[width=\paperwidth]{example-image-a}\caption{Test}
\end{figure}
\clearpage
\section{It's ok}
%Float should be a normal float, runnig head and page number as on normal pages (works)
\begin{figure}[!h]
\includegraphics{example-image-a}
\caption{Test}
\end{figure}
\end{document}