# [texhax] Control blank area at beginning of chapters

Thomas Dukleth texhax at agogme.com
Tue Oct 28 20:26:31 CET 2008

Sorry that my last few changes were not reported by LyX at compile time.
Apparently my attempt to cheat and load the tocloft package after memoir
when compiling with LyX.

I have corrected the errors and tested on the command line.  Any advice
warnings would be appreciated.

My new attempt to demonstrate the issue for my original question follows.

On Thu, October 23, 2008 9:58 am, Lars Madsen wrote:
> Thomas Dukleth wrote:
>> I am using the memoir document class for a book and would like to
>> control
>> or eliminate the large vertical blank area at the beginning of each new
>> chapter.
>>

[..]

I have commented out my custom chapter style based on the memoir class and
used the following code based on the titlesec package.  My question about
modifying this or some other code remains.

\titleformat{\chapter}[display]{\filcenter\sc\Huge}{\thechapter}{0pt}{}{}

>> How can I modify this code or something else to control the large
>> vertical
>> blank area at the beginning of each new chapter?
>>
>>
>
> it is a bit hard to know exactly what space you are talking about. Could
> you post a minimal (but full) document displaying a sample chapter, such
> that we can just copy'n'paste to our own systems and see if we can fix
> your problem. That makes it a lot easier for us.

[...]

higher point on the page than chapter titles.  Before modifying the table
had appeared at a lower point on the page much more like the chapter
titles.

\def\tableofcontents{\section*{\centering CONTENTS}\@starttoc{toc}}

Chapter titles in the minimal LaTeX document are "ACKNOWLEDGEMENTS", "THE
HOUSE OF MAPUHI", and "THE WHALE TOOTH".

The following code may also be downloaded for the next month from
http://pastebin.com/m7619106 in case email line wrapping breaks a long
comment line resulting in an error.

%%%%%%%%%%%%%%%%%%%%%
%% Begin Preamble. %%
%%%%%%%%%%%%%%%%%%%%%

\documentclass[12pt,english,oldfontcommands]{memoir}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage{titlesec}
\usepackage{titletoc}

% Memoir emulates tocloft somewhat.
% \usepackage{subfigure}
% \usepackage[titles,subfigure]{tocloft}
%% \usepackage[titles]{tocloft}

\usepackage{fix-cm}
\usepackage{lettrine}
\usepackage{graphics}
\usepackage{longtable}
\usepackage{times}
\usepackage[normalem]{ulem}
\usepackage{babel}

\geometry{verbose,paperwidth=5.5in,paperheight=8.5in}

\makeatletter
\pdfpageheight 8.5in
\pdfpagewidth 5.5in
\paperheight 8.5in
\paperwidth 5.5in
\setlength\marginparsep{0pt}
\setlength\marginparwidth{0pt}
\setlength\footskip{0pt}

% \renewcommand{\aftertoctitle}{\thispagestyle{empty}\afterchaptertitle}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Superseded by titlesec package commands
% \makechapterstyle{nonumber}{%
%     \renewcommand{\printchaptername}{}
%     \renewcommand{\printchapternum}{ }
% }
%
% \chapterstyle{nonumber}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\sectionmark}[1]{\markright{#1}{}}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Original suggestion
%%
\titleformat{\chapter}[display]{\filcenter\sc\Huge}{\chaptertitlename\,\,\thechapter}{0pt}{}{}

\titleformat{\part}[display]{\filcenter\scshape\Huge}{\thepart}{0pt}{}{}
\titleformat{\chapter}[display]{\filcenter\scshape\Huge}{\thechapter}{0pt}{}{}
\titleformat{\section}[display]{\filcenter\scshape\Huge}{\thesection}{0pt}{}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Original suggestions
% http://allmybrain.com/2007/11/20/a-few-latex-tips/
\def\tableofcontents{\section*{\centering CONTENTS}\@starttoc{toc}}

% Next suggestions fail as undefined and merely defining them naturally
% does nothing because there is no linked code using them in the memoir
% class.
%
% change section headers and page numbers to normal instead of bold font
% \renewcommand{\cftsecfont}{
% \normalfont
% }
\def\cftsecfont{\normalfont}
% \renewcommand{\cftsecpagefont}{%
% \normalfont
% }
\def\cftsecpagefont{\normalfont}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Original suggestion
% http://www.prashblog.com/2008/08/remove-dots-in-table-of-contents-in.html
% Does this work?
%
\renewcommand{\@dotsep}{10000}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\makeatother

%%%%%%%%%%%%%%%%%%%
%% End Preamble. %%
%%%%%%%%%%%%%%%%%%%

\begin{document}
\frontmatter
\thispagestyle{empty}

\begin{center}
{\fontsize{30pt}{36pt}\selectfont{
\hfill{}\\}}
{\fontsize{36pt}{42pt}\selectfont{S}}{\fontsize{30pt}{36pt}\selectfont{OUTH}}
{\fontsize{36pt}{42pt}\selectfont{ S}}{\fontsize{30pt}{36pt}\selectfont{EA}}
{\fontsize{36pt}{42pt}\selectfont{
T}}{\fontsize{30pt}{36pt}\selectfont{ALES\\}}
{\fontsize{36pt}{42pt}\selectfont{
\hfill{}\\}}
{\LARGE{
\hfill{}\\
\hfill{}\\
bla, bla, bla\ldots{}\\
\hfill{}\\
\hfill{}\\}}

\end{center}
\fontsize{12pt}{15pt}\selectfont{}

\newpage{}
\thispagestyle{empty}

{\parindent=0em
Library Publication Data.

{\LARGE{
\hfill{}\\
\hfill{}\\
bla, bla, bla\ldots{}\\
\hfill{}\\
\hfill{}\\}}}

\newpage{}

\thispagestyle{empty}
\markboth{SOUTH SEA TALES}{CONTENTS}
\renewcommand{\contentsname}{CONTENTS}
\tableofcontents

\newpage{}

\chapter*{ACKNOWLEDGEMENTS}
\thispagestyle{empty}
\markboth{SOUTH SEA TALES}{ACKNOWLEDGEMENTS}

{\parindent=0em

>From the Project Gutenberg Ebook notices,\\
http://www.gutenberg.org/dirs/etext98/soset11.txt:\\

{\LARGE{
\hfill{}\\
\hfill{}\\
bla, bla, bla\ldots{}\\
\hfill{}\\
\hfill{}\\}}}

\newpage{}

\mainmatter

\chapter*{THE HOUSE OF MAPUHI}
\thispagestyle{empty}
\markboth{SOUTH SEA TALES}{THE HOUSE OF MAPUHI}
\lettrine{D}{espite}
the heavy clumsiness of her lines, the \emph{Aorai} handled easily in
the light breeze, and her captain ran her well in before he hove to
just outside the suck of the surf.

{\LARGE{
\hfill{}\\
\hfill{}\\
bla, bla, bla\ldots{}\\
\hfill{}\\
\hfill{}\\}}

\newpage{}

Then give me something to eat, for I am hungry,'' said Nauri,
complacently. And after that we will sleep, for I am weary. And
tomorrow we will have more talk about the house before we sell the
pearl. It will be better if we take the thousand French in cash. Money

\chapter*{THE WHALE TOOTH}
\thispagestyle{empty}
\markboth{SOUTH SEA TALES}{THE WHALE TOOTH}
\lettrine{I}{t}
was in the early days in Fiji, when John Starhurst arose in the
mission house at Rewa Village and announced his intention of carrying
the gospel throughout all Viti Levu.

{\LARGE{
\hfill{}\\
\hfill{}\\
bla, bla, bla\ldots{}\\
\hfill{}\\
\hfill{}\\}}

\end{document}

Thomas Dukleth
Agogme
109 E 9th Street, 3D
New York, NY  10003
USA
http//www.agogme.com
212-674-3783