我的文本无法正常转到下一页。我使用 LaTeX 已有很长时间了,但刚刚更新了一些软件包,所以我确信这里存在一些用户错误。我发现我错误地删除了“\begin{document}”。我添加了它,所以现在没有页码,没有图表,第 1 页是空白的。
\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{listings}
\usepackage{amsmath}
\usepackage{geometry}
\usepackage{indentfirst}
\usepackage{natbib}
\usepackage{pdfsync}
\usepackage{setspace}
\usepackage{rotating}
\usepackage{lscape}
\usepackage{ctable}
\usepackage{afterpage}
\usepackage[toc,page]{appendix}
\doublespacing
\textwidth = 6.5 in
\textheight = 9.0 in
\oddsidemargin = 0.0 in
\evensidemargin = 0.0 in
\topmargin = 0.0 in
\headheight = 0.0 in
\headsep = 0.0 in
\parskip = 0.0 in
\parindent = 0.3 in
\pdfpagewidth = 8.5 in
\pdfpageheight = 11.0 in
\usepackage{underscore}
\usepackage{enumitem}
\usepackage{color}
\afterpage{\clearpage}
\bibpunct[, ]{(}{)}{,}{a}{}{,}
\bibpunct[, ]{(}{)}{,}{a}{}{,}
\title{\vspace{-1.0ex}Chapter 6: The Results.}
\date{}
\maketitle
\doublespace
\pagestyle{empty}
\newtheorem{hyp}{Hypothesis}
\doublespace
\begin{document}
\section{Introduction.}
\subsection{Effects Plot: stuff.}
\begin{figure}[h!]
\caption{stuff plot.}\label{fig:onefig} \centerline{
\includegraphics[width=4.0in]{blah_eff.pdf}}
\end{figure}
\lipsum[5]
\end{document}
答案1
您的序言有些奇怪。例如,您使用直接赋值来设置页面参数,而不是使用geometry
。
请注意,该功能pdfsync
已过时并被弃用多年。
我以更合理的方式重新组织了序言:
\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{listings}
\usepackage{amsmath}
\usepackage{geometry}
\usepackage{indentfirst}
\usepackage{natbib}
%\usepackage{pdfsync} % obsolete and deprecated
\usepackage{setspace}
\usepackage{rotating}
\usepackage{lscape}
\usepackage{ctable}
%\usepackage{afterpage} % usually not needed
\usepackage[toc,page]{appendix}
\usepackage{underscore}
\usepackage{enumitem}
\usepackage{color}
\usepackage{lipsum} % just for the example
\doublespacing
\geometry{
letterpaper,
width=6.5in,
height=9in,
headsep=0in,
}
\bibpunct[, ]{(}{)}{,}{a}{}{,}
\bibpunct[, ]{(}{)}{,}{a}{}{,}
\newtheorem{hyp}{Hypothesis}
\begin{document}
\title{Chapter 6: The Results.}
\author{}
\date{}
\maketitle
\section{Introduction.}
\lipsum[1-30]
\end{document}