2010-04-20 3 views
2

LaTeX에서 작업하고 있으며 LaTeX 단추 또는 pdfLaTeX 단추를 사용하거나 yap을 사용하여 pdf 파일을 만들 때 pdf에는 처음 두 페이지 만 있습니다. 오류 없음. 그냥 멈 춥니 다. 텍스트를 추가하여 첫 번째 페이지를 더 길게 만들면 두 번째 페이지 끝에서 여전히 멈 춥니 다. 어떤 아이디어?LaTeX 문서의 처음 두 페이지 만 인쇄합니다.

확인을 먼저 코멘트에 응답, 여기에 코드

\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} 
에게

감사

피터

+0

소스 코드를 보자. –

+0

'\ end {document}'바로 앞에'\ eject '을 넣으십시오. –

+0

섹션 명령을 남용하는 대신'\ tableofcontents'를 사용해야합니다. – Svante

답변

2

각 섹션 및 하위 섹션 명령 뒤에 물결표 (~)를 추가하십시오. 섹션에 대한 내용이없는 경우 LaTeX은 상자를 분할하지 않습니다 (물결표는 중단되지 않는 공간이며 컨텐츠로 계산됩니다).

\section*{Preface}~ 
     \subsection*{Audience}~ 
    ... 

가 중첩 된 열거를 사용하는 것이 더있을 수 있습니다 (개요의) 목표를 충족시키기 위해 :

\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} 

열거 환경의 사용자 정의에 대한 다른 게시물을 참조하십시오.

+0

고마워요! –

1

더 많은 정보가 필요한입니다! 최소한의 문서로이 동작을 재현 할 수 있습니까?

내가 무슨 짓을했는지 것이다 것은 :

  1. 텍스트의 모든 블록을 제거하고 하나의 단어로 대체하려고하지만, 모든 라텍스 명령을 유지한다. 마지막 텍스트 블록을 계속 볼 수 있습니까?
  2. 이제 모든 사소한 라텍스 명령 (\subject{} 수식 등)을 제거하려고합니다.
  3. 그래도 문제가 계속 발생하면 범인을 찾을 때까지 latex 명령이 의심 될 때마다 하나씩 제거하십시오.
  4. 문제가있는 명령의 문서를 Google에 보내고 무엇이 잘못되었는지 이해하려고합니다.

내 생각에 일부 TeX 명령을 사용하여 문서의 상태를 "전환"하고 어떤 점에서 모든 텍스트를 제거합니다.

한 단어에 \em 명령을 한 번 사용하고 나머지는 굵은 글씨로 표시하는 것과 같습니다.

+0

안녕 Elazar 답장을 보내 주셔서 감사합니다. 이 문서는 개요입니다. 텍 스트 블록이 없으며 TeX 명령이 없습니다. 문서 내의 유일한 명령은 \ section 및 \ subsection입니다. 수식이 없습니다. 인쇄가 잘되는 부분도 멋지게 보입니다. 문서에있는 위치에 관계없이 두 번째 페이지 끝 부분에서 멈 춥니 다. (즉, 일부 줄을 제거하면 2 페이지에 더 많은 내용이 인쇄됩니다.) Peter –

0

아직 어떤 일이 일어나고 있는지 잘 모르겠지만 각 섹션에 약간의 텍스트를 추가하면 문제가 사라집니다.

6

LaTeX 매크로 \ 섹션, \ 하위 섹션 등은 그 뒤에 텍스트가 있어야합니다. 그들은 고의로 다음과 같은 재료로 중단을 방지합니다. 다른 매크로가없는 일련의 매크로 섹션을 작성 했으므로 중단이 발생하지 않습니다. 당신이 당신의 로그를 보면, 당신은 너무 많은 중 VBOX를 볼 수 있습니다 :이 (실제로 조판 페이지를 포함) \ 상자 (255)의 내용이, 너무 큰 것을 의미 오프 실행

 
Overfull \vbox (712.84044pt too high) has occurred while \output is active [] 

수 바닥. 섹션 명령이 이와 같이 사용되도록 의도되지 않았기 때문에 접근법을 다시 생각하거나 줄 바꿈을 혼란스럽게하지 않는 자체 버전을 작성해야 할 수도 있습니다.

관련 문제