Page LayoutProblems with blank pages and Chapter spacing

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
daniel.lassen
Posts: 3
Joined: Wed Dec 09, 2009 4:00 pm

Problems with blank pages and Chapter spacing

Post by daniel.lassen »

Hi guys. Hope you can help me out with this one. I'm completely new to LaTeX, so don't assume that I am smart enough to have done anything correctly.

I'm writing a report for school in the memoir documentclass, and right now I'm stuck with to problems.

1. After my TOC there is a blank page. I want to remove it, but can't figure out how. I have figured out that it has to do with my document wants to start the 1st chapter on an odd page, but i already have the [openany] option on my documentclass, and it works fine for all other chapters but the first.

Here is the code:

Code: Select all

Code, edit and compile here:
\input{formalia/forord}
\clearpage
\setlength\parskip{0ex} \tableofcontents \setlength{\parskip}{3mm}
\mainmatter
\input{kontekst/indledning.tex}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2. My other problem is about the spacing above the chapters. Above every chapter the is a blank space about 2,5 inches tall. On all other pages this space is only about 1 inch.

I want to make it 1 inch on the first page of a chapter as well.

Any help would be great.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: Problems with blank pages and Chapter spacing

Post by daleif »

(1) please post full minimal examples, not sniplets which are not compilable.

(2) which version of memoir, with openany I cannot reproduce your problem with the blank page

(BTW: removing the paragraph indentation is not recommended)

(3) as for the other problem: read the memoir manual, especially how chapterstyles are handled, it will tell you about the length that controls the spacing above the chapter heading.

BTW2: judging by your example I can recommend the mailing list of the Danish TeX User group, tug.dk
daniel.lassen
Posts: 3
Joined: Wed Dec 09, 2009 4:00 pm

Problems with blank pages and Chapter spacing

Post by daniel.lassen »

Here is a part of our preamble, plus some text, to show the problem.

You should be able to copy-paste all of this into a tex file.

If you remove the \cleardoublepage command after the first chapter, you will see that the problem only occurs when I want the first chapter after the TOC to start on an even page.

Code: Select all

Code, edit and compile here:
\documentclass[a4paper,11pt,fleqn,twoside,openany]{memoir}
\usepackage{colortbl}
\usepackage[colorlinks]{hyperref}
\hypersetup{pdfborder = 0}
\hypersetup{
colorlinks = false,
linkcolor = black,
anchorcolor = black,
citecolor = black
}
\definecolor{gray}{gray}{0.80}
\definecolor{numbercolor}{rgb}{0.8,0,0}
\newif\ifchapternonum
\makechapterstyle{jenor}{
\setlength{\beforechapskip}{-2pt}
\setlength{\midchapskip}{-20pt}
\setlength{\afterchapskip}{11pt}
\renewcommand\printchaptername{}
\renewcommand\printchapternum{}
\renewcommand\printchapternonum{\chapternonumtrue}
\renewcommand\chaptitlefont{\fontfamily{pbk}\fontseries{db}\fontshape{n}\fontsize{25}{35}\selectfont\raggedleft}
\renewcommand\chapnumfont{\fontfamily{pbk}\fontseries{m}\fontshape{n}\fontsize{1in}{0in}\selectfont\color{numbercolor}}
\renewcommand\printchaptertitle[1]{%
\noindent
\ifchapternonum
\begin{tabularx}{\textwidth}{X}
{\let\\\newline\chaptitlefont ##1\par}
\end{tabularx}
\par\vskip-2.5mm\hrule
\else
\begin{tabularx}{\textwidth}{Xl}
{\parbox[b]{\linewidth}{\chaptitlefont ##1}} & \raisebox{-15pt}{\chapnumfont \thechapter}
\end{tabularx}
\par\vskip2mm\hrule
\fi
}
}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Thank you very much. I'll check out the site
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: Problems with blank pages and Chapter spacing

Post by daleif »

It is mainmatter, in twoside it will always start at the next odd page (via internal \cleardoublepage)
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: Problems with blank pages and Chapter spacing

Post by daleif »

as a reader I like this, because \mainmatter marks that you are starting the important part of the document, and since you are runing in twoside mode, I as a reader would not like to have to look for the first chapter on the back of the ToC.
exutable
Posts: 10
Joined: Thu Oct 29, 2009 12:47 am

Re: Problems with blank pages and Chapter spacing

Post by exutable »

Has anybody figured out this problem yet??? The chapter spacing is borderline ridiculous with this style but the look is great.
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: Problems with blank pages and Chapter spacing

Post by daleif »

Read the memoir manual, it is explained there, \beforechapskip

I like the extra space, it makes the chapter start more noticable. You are free to read the manual and change it if you do not like it.
exutable
Posts: 10
Joined: Thu Oct 29, 2009 12:47 am

Re: Problems with blank pages and Chapter spacing

Post by exutable »

Hey,

I read your little pdf manual but couldn't find a good example of using beforechapskip.

What is the syntax?

BTW, from Aalborg University :)
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: Problems with blank pages and Chapter spacing

Post by daleif »

It is a length, thus change it with \setlength
exutable
Posts: 10
Joined: Thu Oct 29, 2009 12:47 am

Re: Problems with blank pages and Chapter spacing

Post by exutable »

Ah got it.

\setlength{\beforechapskip}{0.01pt}
\renewcommand\chapterheadstart{\vspace*{\beforechapskip}}


but, I can't get rid of as much spacing as I want.
Post Reply