LaTeX仅打印文档的前两页
我在LaTeX中工作,当我创建pdf文件(使用LaTeX按钮或pdfLaTeX按钮或使用yap)时,pdf只有前两页。没有错误。它只是停止了。如果我通过添加文本使第一页变长,它仍然会在第二页的末尾停止。有什么想法吗 好的,回应第一条评论,下面是代码LaTeX仅打印文档的前两页,latex,pdflatex,Latex,Pdflatex,我在LaTeX中工作,当我创建pdf文件(使用LaTeX按钮或pdfLaTeX按钮或使用yap)时,pdf只有前两页。没有错误。它只是停止了。如果我通过添加文本使第一页变长,它仍然会在第二页的末尾停止。有什么想法吗 好的,回应第一条评论,下面是代码 \documentclass{article} \title{Outline of Book} \author{Peter L. Flom} \begin{document} \maketitle \section*{Preface}
\documentclass{article}
\title{Outline of Book}
\author{Peter L. Flom}
\begin{document}
\maketitle
\section*{Preface}
\subsection*{Audience}
\subsection*{What makes this book different?}
\subsection*{Necessary background}
\subsection*{How to read this book}
\section{Introduction}
\subsection{The purpose of logistic regression}
\subsection{The need for logistic regression}
\subsection{Types of logistic regression}
\section{General issues in logistic regression}
\subsection{Transforming independent and dependent variables}
\subsection{Interactions}
\subsection{Model selection}
\subsection{Parameter estimates, confidence intervals, p values}
\subsection{Summary and further reading}
\section{Dichotomous logistic regression}
\subsection{Introduction, theory, examples}
\subsection{Exploratory plots and analysis}
\subsection{Basic model fitting}
\subsection{Advanced and special issues in model fitting}
\subsection{Diagnostic and descriptive plots and analysis}
\subsection{Traps and gotchas}
\subsection{Power analysis}
\subsection{Summary and further reading}
\subsection{Exercises}
\section{Ordinal logistic regression}
\subsection{Introduction, theory, examples}
\subsubsection{Introduction - what are ordinal variables?}
\subsubsection{Theory of the model}
\subsubsection{Examples for this chapter}
\subsection{Exploratory plots and analysis}
\subsection{Basic model fitting}
\subsection{Advanced and special issues in model fitting}
\subsection{Diagnostic and descriptive plots and analysis}
\subsection{Traps and gotchas}
\subsection{Power analysis}
\subsection{Summary and further reading}
\subsection{Exercises}
\section{Multinomial logistic regression}
\subsection{Introduction, theory, examples}
\subsection{Exploratory plots and analysis}
\subsection{Basic model fitting}
\subsection{Advanced and special issues in model fitting}
\subsection{Diagnostic and descriptive plots and analysis}
\subsection{Traps and gotchas}
\subsection{Power analysis}
\subsection{Summary and further reading}
\subsection{Exercises}
\section{Choosing a model}
\subsection{NOIR and its problems}
\subsection{Linear vs. ordinal}
\subsection{Ordinal vs. multinomial}
\subsection{Summary and further reading}
\subsection{Exercises}
\section{Extensions and related models}
\subsection{Other logistic models}
\subsection{Multilevel models - PROC NLMIXED and GLIMMIX}
\subsection{Loglinear models - PROC CATMOD}
\section{Summary}
\end{document}
谢谢
彼得需要更多信息!你能用最少的文档重现这种行为吗 我会做的是:
\subject{}
公式等)TeX
命令来“切换”文档的状态,并以某种方式从某个点删除所有文本
类似于在单个单词上使用
\em
命令一次,然后将文档的其余部分用粗体显示。我仍然不确定发生了什么,但当我在每个部分添加一点文本时,问题就消失了。LaTeX宏\section、\subsection等都打算在它们后面添加一些文本。他们故意防止材料立即断裂。由于您有一系列没有其他内容的剖切宏,因此不会发生中断。如果你看一下你的日志,你会看到一个过满的vbox:I get
Overfull \vbox (712.84044pt too high) has occurred while \output is active []
当\output处于活动状态时,\vbox过满(712.84044pt过高)[]
这意味着\box 255(实际上包含排版页面)的内容太大,从底部溢出。由于section命令从未打算这样使用,您可能需要重新考虑您的方法,或者编写自己的版本,以避免断线。在这些section和section命令之后添加一个波浪号(~)。如果没有分区的内容,LaTeX将不会打断框(平铺是一个不打断的空间,将被视为内容)
i、 e
为了实现(大纲)目标,最好使用嵌套枚举:
\begin{enumerate}
\item Preface
\begin{enumerate}
\item Audience
\item What makes this book different?
\item Necessary background
\item How to read this book
\end{enumerate}
\item Introduction
\begin{enumerate}
\item The purpose of logistic regression
\item The need for logistic regression
\item Types of logistic regression
\end{enumerate}
...
\end{enumerate}
有关枚举环境的自定义,请参阅其他帖子。因此我有一个不同的问题,但我只想指出,当我在搜索类似问题时,当使用背面编译Latex文档时,它在2页处停止,因为我没有正确地结束小数(我的尾端大括号太少)。不过,我是在查看日志后才发现这一点的。Hi Elazar谢谢您的回复。这份文件是一份提纲。没有文本块,没有TeX命令-文档中唯一的命令是\section和\subsection等等。没有公式。打印的部分看起来不错。它只是停在第二页的末尾,而不管它在文档中的什么位置(即,如果我删除一些行,它会打印更多的文档-任何适合两页的内容。PeterTry在
\end{document}之前放置一个\eject
。您应该使用\tableofcontents
而不是滥用分区命令。谢谢大家。我现在意识到我滥用了分区命令。
\begin{enumerate}
\item Preface
\begin{enumerate}
\item Audience
\item What makes this book different?
\item Necessary background
\item How to read this book
\end{enumerate}
\item Introduction
\begin{enumerate}
\item The purpose of logistic regression
\item The need for logistic regression
\item Types of logistic regression
\end{enumerate}
...
\end{enumerate}