
我想隱藏某個浮動的登陸頁面上的頁碼 - 但運行的標題應該出現在那裡。
我的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}