Sorry to be a pain and ask for yet some more help, but I've just discovered
another problem. For no particular reason, there is a blank page between my
last chapter and my first appendix. Does anybody know how to remove it?
The structure is as follows:
\include{header}
\begin{document}
\frontmatter
bla... bla...
\mainmatter
\begin{spacing}{1.5}
\include{chapter1}
etc...
\include{chapter8}
\begin{appendix}
\include{appendixA}
etc...
\end{appendix}
\end{spacing}
\backmatter
etc...
\end{document}
The first appendix chapter is written as any other chapter.
Many thanks for your help,
--
Arnaud MIEGE - PhD Student
Transportation Research Group
University of Cambridge - Department of Engineering
Mechanics Research Office - Trumpington Street - CAMBRIDGE CB2 1PZ - UK
tel:+44 (0)1223 332868 fax:+44 (0)1223 332662
email:am...@eng.cam.ac.uk
http://www2.eng.cam.ac.uk/~am304
Maybe it's because you are using a book style which opens any new
chapter on a right side and therefore inserts blank pages to achieve
this?
--
Andreas
For replying, remove the fruit from my address.
--
Arnaud MIEGE - PhD Student
Transportation Research Group
University of Cambridge - Department of Engineering
Mechanics Research Office - Trumpington Street - CAMBRIDGE CB2 1PZ - UK
tel:+44 (0)1223 332868 fax:+44 (0)1223 332662
email:am...@eng.cam.ac.uk
http://www2.eng.cam.ac.uk/~am304
"Andreas Keil" <andrea...@apple.nurfuerspam.de> wrote in message
news:bleh64$ef8$1...@news-sop.inria.fr...
> Hi!!
>
> Sorry to be a pain and ask for yet some more help, but I've just
> discovered another problem. For no particular reason, there is a blank
> page between my last chapter and my first appendix. Does anybody know how
> to remove it?
>
> The structure is as follows:
>
> \include{header}
> \begin{document}
> \frontmatter
> bla... bla...
>
> \mainmatter
> \begin{spacing}{1.5}
> \include{chapter1}
> etc...
> \include{chapter8}
> \begin{appendix}
> \include{appendixA}
> etc...
> \end{appendix}
> \end{spacing}
>
> \backmatter
> etc...
> \end{document}
>
> The first appendix chapter is written as any other chapter.
could it be related to the fact that you said \begin{appendix} ...
\end{appendix} instead of \appendix ? (it is just an idea, I did not
test...)
--
Florence HENRY
florence point henry arobasse obspm point fr
> could it be related to the fact that you said \begin{appendix} ...
> \end{appendix} instead of \appendix ? (it is just an idea, I did not
> test...)
>
Yes, I did think about that as well, but that didn't change anything
unfortunately. Thanks for the idea anyway.
>Unfortunately, not. I thought about this as well but that's not the case
>because it doesn't happen anywhere else in the document which as the oneside
>option: \documentclass[12pt,oneside]{book}. Thanks anyway.
*Sigh*. There is far too little information. Any packages loaded?
What are they? What order? What is header.tex? Does appendixA.tex
start with anything other than \chapter?
Can you duplicate the effect with a *short* self-contained document
and post that? You do know that \include starts a new page if there
is anything at all on the current page (even if it is invisible)?
Dan
--
Dan Luecking Department of Mathematical Sciences
University of Arkansas Fayetteville, Arkansas 72701
luecking at uark dot edu
\documentclass[12pt,oneside]{book}
% For twoside printing only
\newcommand{\clearemptydoublepage}{\clearpage{\pagestyle{empty}\cleardoublep
age}}
% Packages
\ifx\pdfoutput\undefined
%%% LaTeX -> DVI -> PostScript
\usepackage[dvips]{graphicx}
\graphicspath{{psfig/}}
\else
%%% PDFLaTeX -> PDF
\usepackage[pdftex]{graphicx}
\graphicspath{{pdffig/}}
\fi
\usepackage{a4,times} % use times for better PDF production
%\usepackage{graphicx}
\usepackage{subfigure}
\usepackage[subfigure21]{ccaption}
\usepackage[active]{srcltx} % source specials for Yap and WinEdt
\usepackage{doublespace}
\usepackage{longtable}
\usepackage{lscape}
\usepackage{url}
\usepackage{rotating}
\usepackage{cite}
% Alternative line spacings (for figures, etc.)
\newenvironment{compact}{\begin{singlespace}}{\end{singlespace}}
% Footnote style
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
% Rename references title from ``Bibliography'' to ``References''
\renewcommand{\bibname}{References}
% Hyphenation exception list
\hyphenation{threshold AutoSim analysis vehicle accel-eration however
settles
geometry tractor trailer hand-ling effect-ively ma-noeu-vre ma-noeu-vres}
% Extend the level of section numbering to 4 both in thesis and table of
contents, eg 1.1.1.1
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\renewcommand{\S}{\scriptstyle}
% Page style and bibliography style
\bibliographystyle{myplain}
\pagestyle{headings}
Appendix A starts as follows:
\chapter{Instrumentation details}
\label{Instrumentation details}
\section{Trailer instrumentation}
\label{Instrumentation details, Trailer instrumentation}
\begin{compact}
\begin{flushleft}
\begin{tabular}{|l|l|c|c|l|} \hline
etc...
Thanks for your comment about \include, it's worth knowing. How would I know
if there was something invisible on the page?
Cheers,
--
Arnaud MIEGE - PhD Student
Transportation Research Group
University of Cambridge - Department of Engineering
Mechanics Research Office - Trumpington Street - CAMBRIDGE CB2 1PZ - UK
tel:+44 (0)1223 332868 fax:+44 (0)1223 332662
email:am...@eng.cam.ac.uk
http://www2.eng.cam.ac.uk/~am304
"Dan Luecking" <Look-...@uark.edu> wrote in message
news:qgtlnvc7h2j43bo3m...@4ax.com...
>
>\documentclass[12pt,oneside]{book}
>
>% For twoside printing only
>\usepackage[active]{srcltx} % source specials for Yap and WinEdt
Could it be the source-specials bug discussed recently? I know
it affected TeXLive, but I don't know if there were any versions of
MiKTeX affected.
The only other thing I can think of is something odd at the end
of the file included just before this appendix.
> How would I know
>if there was something invisible on the page?
Things to watch out for: "~", "\ ", "\mbox{}", \hspace, \vspace*
Your header had a definition of \clearemptydoublepage, perhaps you used
that somewhere
\include is for inputting chapter files. using it before
\begin{document} could confuse things, though i don't quite see how it
would have the present effect.
whatever, change it to
\input{header}
>\begin{document}
>\frontmatter
>bla... bla...
>
>\mainmatter
>\begin{spacing}{1.5}
>\include{chapter1}
>etc...
>\include{chapter8}
>\begin{appendix}
the \appendix command is not designed to be used as an environment.
using this incorrect syntax merely confuses people when they're trying
to debug your document. replace your silly syntax with the proper
command and remove \end{appendix} below.
>\include{appendixA}
>etc...
>\end{appendix}
>\end{spacing}
>
>\backmatter
>etc...
>\end{document}
>
>The first appendix chapter is written as any other chapter.
among many other things, you don't tell us which spacing package
you're attempting to use, but i'll assume it's setspace.sty (replace
any other you might be using with setspace).
explicitly insert the openany option in the \documentclass command.
in the likely event that none of the above helps, you need to start
chopping things out to find what's the culprit. i would start by
removing chapter 8 since it's the one with the best chance of creating
chaos. look at what's different about the one you had to delete to
make things right. you're the one who's best positioned to spot this
stuff, since you've got the things in front of you.
--
Robin (the partially spineless) Fairbairns, Cambridge
> On Wed, 1 Oct 2003 17:37:07 +0100, "Arnaud Miege" <am...@cam.ac.uk>
> wrote:
>>
>> \documentclass[12pt,oneside]{book}
>>
>> % For twoside printing only
>> \usepackage[active]{srcltx} % source specials for Yap and WinEdt
> Could it be the source-specials bug discussed recently? I know
> it affected TeXLive, but I don't know if there were any versions of
> MiKTeX affected.
Well, the .sty implementation of source specials is a bit different
from the TeX-the-program one, but it can cause similar problems. It
might be worth tetsing what happens if the package is commented out
(or `active' changed to `inactive'), or trying the current version:
CTAN:macros/latex/contrib/srcltx/
--
Stefan Ulrich
you've now told us you're using doublespace. that has all sorts of
insidious bugs; please replace it with setspace, and adjust the
commands you use. (a bit work, but it eliminates yet another loose
cannon in your document.)
* commenting the \clearemptydoublepage and \usepackage[active]{srcltx}
commands
* have replaced \include{header} by \input{header}
* have replaced \begin{appendix} by \appendix and deleted \end{appendix}
* have replaced \usepackage{doublespace} by \usepackage{setspace}
* have replaced \documentclass[12pt,oneside]{book} by
\documentclass[12pt,openany,oneside]{book}
(I'm using a template from one of my predecessors so that's why it might
look a bit out of date). But none of this fixed it, so I started hacking
things as suggested. Removing the last chapter (8) didn't help but removing
the first appendix chapter did so I guessed that's where the problem laid.
After much trial and error, it turns out that if I remove only one line from
the first table of the first appendix, it's OK. It seems that the table was
too long for LaTeX, which still displayed it on one page but inserted an
extra page beforehand.
Glad to have found a solution!!
Many thanks again to all of you who helped me.
--
Arnaud MIEGE - PhD Student
Transportation Research Group
University of Cambridge - Department of Engineering
Mechanics Research Office - Trumpington Street - CAMBRIDGE CB2 1PZ - UK
tel:+44 (0)1223 332868 fax:+44 (0)1223 332662
email:am...@eng.cam.ac.uk
http://www2.eng.cam.ac.uk/~am304
"Robin Fairbairns" <r...@cl.cam.ac.uk> wrote in message
news:blgnuo$r7g$5...@pegasus.csx.cam.ac.uk...
> It seems that the table was too long for LaTeX, which still displayed it
> on one page but inserted an extra page beforehand.
If you'd have had a look at the log file or the terminal you'd have found an
underfull \vbox and an overfull \vbox message ...
Markus
--
Arnaud MIEGE - PhD Student
Transportation Research Group
University of Cambridge - Department of Engineering
Mechanics Research Office - Trumpington Street - CAMBRIDGE CB2 1PZ - UK
tel:+44 (0)1223 332868 fax:+44 (0)1223 332662
email:am...@eng.cam.ac.uk
http://www2.eng.cam.ac.uk/~am304
"Markus Kohm" <marku...@gmx.de> wrote in message
news:2414310.k...@ID-107054.user.dfncis.de...
> Yes, but I have hundreds of those throughout my log file and that doesn't
> tell me that LaTeX is inserting an extra blank page.
I really doubt that the page is truly empty, but has some invisible
marker on it.
To diagnose: Insert, before \include,
\par {\showoutput\showlists}
To correct: One possibility is to insert, after the last visible
character in the input file, \nobreak.
Donald Arseneau as...@triumf.ca
Chapter 8.
[250] [251] [252] [253]) [254]
:<-
### vertical mode entered at line 0
### current page:
\write-{}
\special{src:44 thesis.tex}
prevdepth 0.0, prevgraf 7 lines
! OK.
l.46 \par {\showoutput\showlists
}
?
:<+ instrumentation.tex
(instrumentation.tex
Appendix A.
Overfull \hbox (76.02466pt too wide) in paragraph at lines 9--36
[][]
[]
[255]
Overfull \vbox (3.48099pt too high) has occurred while \output is active []
etc... (page 255 is the "blank" page)
Inserting \nobreak after the last visible character of the input file
(chapter 8) did not do the trick but thanks anyway!! I canj always get round
this by deleting one line from the table in the appendix chapter.
Cheers,
--
Arnaud MIEGE - PhD Student
Transportation Research Group
University of Cambridge - Department of Engineering
Mechanics Research Office - Trumpington Street - CAMBRIDGE CB2 1PZ - UK
tel:+44 (0)1223 332868 fax:+44 (0)1223 332662
email:am...@eng.cam.ac.uk
http://www2.eng.cam.ac.uk/~am304
"Donald Arseneau" <as...@triumf.ca> wrote in message
news:yfihe2r...@triumf.ca...
> Thanks for the tip. If I insert \par {\showoutput\showlists} before
> including the first appendix chapter, here's what comes out of the log file:
>
> ### current page:
> \write-{}
> \special{src:44 thesis.tex}
So there is a single "source special" on that blank page, and
Dan and Stefan were right. Try following Stefan's suggestions.
Turning off source specials will fix the problem, of course.
> Inserting \nobreak after the last visible character of the input file
> (chapter 8) did not do the trick
Try \nopagebreak instead, which I should really have suggested.
Donald Arseneau as...@triumf.ca
Chapter 8.
[250] [251] [252] [253]) [254]
### vertical mode entered at line 0
### current page:
\write-{}
prevdepth 0.0, prevgraf 7 lines
! OK.
l.46 \par {\showoutput\showlists
}
?
(instrumentation.tex
Appendix A.
Overfull \hbox (76.02466pt too wide) in paragraph at lines 9--36
[]
[]
[255]
Overfull \vbox (3.48099pt too high) has occurred while \output is active []
\nopagebreak didn't seem to do the trick either. I wonder if the problem is
in the first appendix rather than the last last chapter?
--
Arnaud MIEGE - PhD Student
Transportation Research Group
University of Cambridge - Department of Engineering
Mechanics Research Office - Trumpington Street - CAMBRIDGE CB2 1PZ - UK
tel:+44 (0)1223 332868 fax:+44 (0)1223 332662
email:am...@eng.cam.ac.uk
http://www2.eng.cam.ac.uk/~am304
"Donald Arseneau" <as...@triumf.ca> wrote in message
news:yfik77m...@triumf.ca...
> Yes, but I have hundreds of those throughout my log file and that doesn't
> tell me that LaTeX is inserting an extra blank page.
If you've got hundreds of 'em, you've probably got hundreds of minor
problems which need sorting.
Rowland.
--
Remove the animal for email address: rowland....@dog.physics.org
PGP pub key 0x62DCCA78 Sorry - the spam got to me
http://www.mag-uk.org
UK biker? Join MAG and help keep bureaucracy at bay
> Thank you for your email. I did not want to put too many details unless
> necessary:
The details which are neccessary when debugging a LaTeX problem are, in
general: which OS and TeX system you're using, maybe text editor and
dvi/pdf outputter, and then the really important bits:
Just enough LaTeX code to demonstrate the fault
The code's got to be as short as you can make it, but it's got to
demonstrate the fault when you cut-and-paste it into a text editor and
run LaTeX on it.
If you're not too sure where the problem lies, it's generally a good
idea to include the full document *HEADER* warts and all including
\documentclass command and all \usepackages - unless you're sure that
certain packages are not involved.
[snip]
> \usepackage{a4,times} % use times for better PDF production
This a4 package might well be a locally-written ancient hack with
horrible results even if it does meet the thesis (or whatever) spec
(I've met such horrors in the past myself, and even written some, but at
man.ac.uk and hopefully they're long gone even from there). If so,
you're proabably better off giving the a4paper option to the book class
and maybe the geometry package for fine tuning as required.
> %\usepackage{graphicx}
> \usepackage{subfigure}
> \usepackage[subfigure21]{ccaption}
> \usepackage[active]{srcltx} % source specials for Yap and WinEdt
> \usepackage{doublespace}
Use setspace as Robin Fairbairns suggested: as he pointed out,
doublespace is buggy and old so it works badly with LaTeX2e.
[snip]
> ### vertical mode entered at line 0
> ### current page:
> \write-{}
Belated followup -- I don't see how this vertical list (with no \special)
would be enough to cause a blank page (because LaTeX discards pages like
that.)
Donald Arseneau as...@triumf.ca