子图的页码位置问题

子图的页码位置问题

我正在一页上制作三个子图,一个接一个。我设法让这些图看起来像我想要的那样,但页码从其默认位置(页脚中央)移到了页面的右上方,我无法将其恢复到页脚。我更改了文档中的 footskip 和 textheight,但这没有帮助。如果我的文档中有这个图,则所有其他页面的页码位置都是正确的,但只有包含该图的页面的页码位于右上方。您知道如何让页码出现在页脚中央吗?代码:

\documentclass[a4paper,11pt]{article}
\usepackage[cp1250]{inputenc} 
\usepackage{setspace}
\usepackage{graphicx}
\usepackage{amsmath, amsthm, amssymb, bm} %better typesetting of mathematical expressions, theorems, additional symbols
\usepackage{booktabs}%fixltx2e}
\usepackage{makecell}
\usepackage[flushleft]{threeparttable}
\usepackage[
singlelinecheck=false % <-- important
]{caption}
\usepackage{subcaption}
\usepackage{epstopdf}
\usepackage{rotating}
\usepackage{fullpage}
\usepackage{enumerate}
\usepackage{setspace}
\usepackage{authblk}
\usepackage[round]{natbib}
\usepackage{natbib} %standard package for bibliography
\usepackage{hyperref} %hyperlink support


\usepackage{dcolumn}
\usepackage[detect-all]{siunitx}
\captionsetup[table]{skip=4pt} 
\usepackage{multirow} 
\usepackage{textcomp}
\usepackage{threeparttable}
\usepackage{floatpag}
\usepackage[textheight=700pt]{geometry}
\usepackage{fancyhdr}





\graphicspath{ {"some path"} }

\newenvironment{spmatrix}[1]
 {\def\mysubscript{#1}\mathop\bgroup\begin{bmatrix}}
 {\end{bmatrix}\egroup_{\textstyle\mathstrut\scriptstyle\mysubscript}}


\hypersetup{pdfstartview={XYZ null null 1.00},bookmarksnumbered,hypertexnames=false} %zoom: default screen; numbers for bookmarks

\setlength\parindent{34pt}
\onehalfspacing





%\renewcommand\Authands{ and }
\date{\today}
%\bibliographystyle{stylebib}
\usepackage{calc}
\setlength{\footskip}{\paperheight
  -(1in+\voffset+\topmargin+\headheight+\headsep+\textheight)
  -0.4in}
\begin{document}

\clubpenalty 9999 %no orphants (typographic properties)
\widowpenalty 9999 %no widows (typographic properties)
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi} %shortcut for Stata tables


\newpage
\onehalfspacing
%\doublespacing






\begin{figure}
\begin{footnotesize}
\centering
\textbf{}\par\medskip
\begin{subfigure}{\textwidth}
  \centering
  \textbf{Graph 1}\par\medskip
  \includegraphics{sub1}
  %\caption{}
  %\label{fig:sub1}
\end{subfigure}
  \vspace*{-8em}

\begin{subfigure}{\textwidth}
  \centering
  \textbf{Graph 2}\par\medskip
  \includegraphics{sub2}
  %\caption{}
  %\label{fig:sub2}
\end{subfigure}
 \vspace*{-8em}

\begin{subfigure}{\textwidth}
  \centering
  \textbf{Graph 3}\par\medskip
  \includegraphics{sub3}
  %\caption{}
  %\label{fig:sub2}
\end{subfigure}

\caption{Here is the caption}
\label{fig:sample figure}
\end{footnotesize}
\end{figure}

\end{document}

并产生:

enter image description here

因此,页面底部的图形下方似乎有很多空间,但页码仍然出现在右上角。

答案1

原因是默认值是\floatpagestyle{headings}。您可以将其更改为

\floatpagestyle{plain}

在你的序言中。

相关内容