页面之间出现随机页面

页面之间出现随机页面

所以我按顺序写了报告。然而,一些原本应该在前面或后面几页的随机页面,却随机地出现在了其他页面之间,而这些页面原本是完美排序和流畅的。这种情况大多发生在我在横向和纵向之间切换时。

我不确定我说的是否有道理。

编辑:如果有帮助的话,这里是序言。

\documentclass[12pt]{report}
\usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
\usepackage{setspace}
\usepackage{amsbsy}
\usepackage{fancyhdr}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{enumitem}
\usepackage{textcomp}
\usepackage{lscape}
\usepackage{amsmath}
\usepackage{calc}
\usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
\usepackage{titlesec}
\usepackage{sectsty}
\sectionfont{\underline\normalfont\normalsize\centering}

\newlength{\depthofsumsign}
\setlength{\depthofsumsign}{\depthof{$\sum$}}
\newlength{\totalheightofsumsign}
\newlength{\heightanddepthofargument}

\usepackage{pdflscape,booktabs}
\usepackage[flushleft]{threeparttable}
\renewcommand\TPTtagStyle{\textit} 
\usepackage[font=it,skip=0.5\baselineskip]{caption} % italic text for captions

\usepackage{titletoc}
\usepackage{hyperref}

\titlecontents{chapter}
[3pt]                                               % left margin
{}%
{\contentsmargin{0pt}                               % numbered entry format
    \thecontentslabel\enspace%
    }
{\contentsmargin{0pt}\large}                        % unnumbered entry format
{\titlerule*[.99pc]{.}\contentspage}                 % filler-page format (e.g dots)
[]                                                  % below code (e.g vertical space)


%to put page numbers as the header
\fancyhf{}
\fancyhead[C]{\thepage}
\pagestyle{fancy}

\titleformat{\chapter}{\normalfont\centering}{}{0pt}{}
\titlelabel{}

\titlespacing*{\chapter}{0pt}{-25pt}{4pt}

\titleformat{\section}{\normalfont\centering}{}{0pt}{}

%koleygr: Redefining chapter to include \thispagestyle{fancy}
\let\oldchapter\chapter
\makeatletter
\def\chapter{%
\@ifstar{\@Starred}{\@nonStarred}%
}
\def\@Starred{%
\@ifnextchar[%
{\GenericWarning{}{Warning: A starred section can not have parameters. I am going to ignore them!}\@StarredWith}%
{\@StarredWithout}%
}      
\def\@StarredWith[#1]#2{%
\oldchapter*{#2}%
\thispagestyle{fancy}
}
\def\@StarredWithout#1{
\oldchapter*{#1}%
\thispagestyle{fancy}
}
\def\@nonStarred{%
\@ifnextchar[%
{\@nonStarredWith}%
{\@nonStarredWithout}%
}
\def\@nonStarredWith[#1]#2{%
\oldchapter[#1]{#2}%
\thispagestyle{fancy}
}
\def\@nonStarredWithout#1{%
\oldchapter{#1}%
\thispagestyle{fancy}
}
\makeatother

\interfootnotelinepenalty=10000
\renewcommand{\contentsname}{TABLE OF CONTENTS}




\begin{document}

编辑:这是我正在谈论的代码部分:

%Let's call this picture 1:

\begin{center}
\begin{figure}
\caption{Scree plot for Principal Component Analysis}
\centering
\includegraphics[width=0.7\columnwidth]{Figure3.png}\
\end{figure}

\clearpage

%Let's call this picture 2:

\begin{figure}
\caption{Loading plot for Principal Component Analysis}
\centering
\includegraphics[width=0.7\columnwidth]{Figure4.png}\
\end{figure}

\clearpage

%Let's call this picture 3:

\begin{figure}
\caption{Score plot after dimensions reduced through Principal Component Analysis}
\centering
\includegraphics[width=0.7\columnwidth]{Figure5.png}\
\end{figure}
\end{center}

\clearpage

%Let's all this picture 4.

\begin{figure}
\caption{Modified Mercalli intensity}
\centering
\includegraphics[width=1.075\columnwidth]{mmi.png}\
\end{figure}

\clearpage

% Let's call this picture 5.

\begin{figure}
\caption{Village-level MMI histogram}
\centering
\includegraphics[width=0.7\columnwidth]{mmifigure.png}\
\end{figure}

\clearpage

%This is the table.    

\begin{table}
\tiny
\centering
\begin{threeparttable}
\caption{Effect of MMI on probability of occurrence of various earthquake-induced factors}
\begin{tabular} {@{} l *{8}{c} @{}}
\toprule
& (1) & (2) & (3) & (4) & (5) & (6) & (7) \\
& Temporary & Severely & Low & Water source & Serious & Loss of & Falling\\
& shelter & damaged & yield & damaged & illness & employment & ag prices\\
 \cmidrule(l){2-8}
\emph{Independent variables}\\[1ex]
MMI & 0.298*** & 0.190*** & 0.156*** & 0.187*** & 0.031* & 0.010** & 0.089*** \\
 & (0.025) & (0.035) & (0.006) & (0.029) & (0.003) & (0.004) & (0.020)\\[1ex]

\toprule
N       & 1,652 & 860 & 1,652 & 1,652 & 4,076 & 4,076 & 4,056\\
R\textsuperscript{2} & 0.621 & 0.851 & 0.562 & 0.664 & 0.260 & 0.031 & 0.285\\
\toprule
\end{tabular}
\tiny
\smallskip
\emph{Notes:}
\begin{tablenotes}
\item[a] The regressions use robust standard errors clustered at village level. ***p $<$ 0.01 **p $<$ 0.05 *p $<$ 0.1.
\item[b] No controls were added in the regressions, as the earthquake is totally exegenous to the occurrence of incidents taken as dependent variables.
\end{tablenotes}
\end{threeparttable}

\end{table}

\pagebreak

因此,现在,顺序不是我上面指定的顺序,而是:

图片 1 表格 图片 2 图片 3 图片 4 图片 5

我使用了\clearpage而不是,\pagebreak因为其中一些图片出现在同一页上(例如,图片 2 和图片 3),而后一个命令不起作用。

这是否让它变得更清楚?

相关内容