[OS X TeX] Unwanted blank page
Bernhard Barkow
bb at creativeeyes.at
Sun Jan 1 17:35:07 EST 2006
Hi,
On 01.01.2006, at 23:15, Alain Schremmer wrote:
> I am writing a textbook in which there is an exercise section in
> each chapter.
> ...
> The exercises are now properly numbered, (1, exercise #) and I
> don't care about the Chapter 1 title.
>
> The trouble is that on page 1 there is just the heading and then
> there is a blank page and the exercises start on page 3.
>
> Question: How do I get rid of all that un-ecological space? (As far
> as I can see, Companion2ed explains only how to add blank space!)
>
I don't know how long your exercises are, but it seems the first one
at least is too long to fit on the page below the heading (Chapter
heading, I assume?), so it is placed on the following page to avoid
an overfull \vbox.
What one would need is a way to introduce line breaking into the
exercise environment, but I don't know how to do that. The easiest
option to try would probably be to remove all unnecessary vertical
spacing (i.e. after the Chapter head, before and after the exercise
environment, maybe inside the environment). Don't know if that's
practical for your purpose, though.
> Problem 2. In the text book, where the exercises were, I now have:
>
> \section{Exercises}
> %\include{016-HomeWork_02}
> %Reminder: When actually including, change project root in 016-
> HomeWork_02 to 016-Arithmetic.tex
> To be handed out in class.
>
> Because I am going to have 24 chapters, what I would like, of
> course, is code for changing mode without having to do all these
> changes manually—at the considerable risk of botching things. Using
> %!TEX root = ../Main.tex should make it doable but this way beyond
> my capability.
>
> What made me think of this being feasible is the responses I got on
> this list about "How to comment out includegraphics?"
So you want to compile two versions, one with the examples and one
without?
I'd suggest to write a new macro,
\newcommand{myInclude}[1]{\include{#1}}
for the version including exercises, changing it to
\newcommand{myInclude}[1]{}
for one without exercises (I didn't try that, it's just an idea, it
might be that one runs into problems this way; one could probably
also do it more elegantly using an \if construct).
>
> Regards for the New Year
A happy new year to you all, too,
BB
____________________________________________________
_________________________________ Bernhard Barkow __
___________________ gpg key ID _ A89F09C45921020D __
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the MacOSX-TeX
mailing list