Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Memoir Class: Title and Chapter/Section on Same Page

1,130 views
Skip to first unread message

Synvox

unread,
Feb 4, 2009, 9:44:42 AM2/4/09
to
Hello,

I'm using the memoir class. I am using the "article" option under
chapterstyle, but the title of my paper is still being printed on a
separate page, with a blank page inserted before the text of the
paper. I would like no break after the title. That is, I want the
title and the text to be all on the same page (as in an article).

Please help.

E

Lars Madsen

unread,
Feb 4, 2009, 9:57:57 AM2/4/09
to

how are you typesetting your titlepage?


--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html

Synvox

unread,
Feb 4, 2009, 10:03:24 AM2/4/09
to
My opening information is as follows:

\documentclass[11pt]{memoir}

%packages, etc

% Title flush left
\pretitle{\flushleft\Large}
\posttitle{\par\vskip 0.5em}
\preauthor{\flushleft \normalsize \lineskip 1em}
\postauthor{\par\lineskip 1em}
\predate{\flushleft\footnotesize\vspace{0.65em}}
\postdate{\par\vskip 2em}

\title{title}
\author{my name}

%etc

\begindocument

\maketitle

\chapter{information}
text text text

Synvox

unread,
Feb 4, 2009, 10:05:14 AM2/4/09
to
I forgot to add that I have declared the chapterstyle:

\documentclass[11pt]{memoir}

\chapterstyle{article}

%packages, etc

> > Remember to post minimal examples, see URL belowhttp://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxamplhttp://www.min...

Lars Madsen

unread,
Feb 4, 2009, 10:10:25 AM2/4/09
to
Synvox wrote:
> I forgot to add that I have declared the chapterstyle:
>
> \documentclass[11pt]{memoir}
>
> \chapterstyle{article}
>
> %packages, etc
>

how about

\maketitle

\newpage


--

/daleif (remove RTFSIGNATURE from email address)

Synvox

unread,
Feb 4, 2009, 10:20:11 AM2/4/09
to
Unfortunately that does nothing. The title information is still on
it's own page with a blank page after.

I would like the title on the same page as the text. Is there an
option for this in the chapterstyle declaration?

E

Lars Madsen

unread,
Feb 4, 2009, 10:31:18 AM2/4/09
to
Synvox wrote:
> Unfortunately that does nothing. The title information is still on
> it's own page with a blank page after.
>
> I would like the title on the same page as the text. Is there an
> option for this in the chapterstyle declaration?
>
> E
>

my mistake

by default \chapter always starts a new page unless you are using the
article class option (which emplies the article chapterstyle)

\documentclass[a4paper]{memoir}

\chapterstyle{article}

\begin{document}

\author{test}
\title{test}
\maketitle


\begingroup % local change
\let\clearforchapter\relax
\chapter{test}

\endgroup

dsf

\end{document}


> On Feb 4, 10:10 am, Lars Madsen <dal...@RTFSIGNATUREimf.au.dk> wrote:
>> Synvox wrote:
>>> I forgot to add that I have declared the chapterstyle:
>>> \documentclass[11pt]{memoir}
>>> \chapterstyle{article}
>>> %packages, etc
>> how about
>>
>> \maketitle
>>
>> \newpage
>>
>> --
>>
>> /daleif (remove RTFSIGNATURE from email address)
>>
>> LaTeX FAQ: http://www.tex.ac.uk/faq
>> LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
>> Remember to post minimal examples, see URL belowhttp://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxamplhttp://www.minimalbeispiel.de/mini-en.html
>


--

/daleif (remove RTFSIGNATURE from email address)

Synvox

unread,
Feb 4, 2009, 10:36:19 AM2/4/09
to
You are as informative and quick as anyone could hope for. The code
works.

Thank you.

E

> >> Remember to post minimal examples, see URL belowhttp://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxamplhttp://www.min...

David N. Williams

unread,
Feb 4, 2009, 11:45:04 AM2/4/09
to
Lars Madsen wrote:
> [...]

>
> by default \chapter always starts a new page unless you are using the
> article class option (which emplies the article chapterstyle)
>
> \documentclass[a4paper]{memoir}
>
> \chapterstyle{article}
>
> \begin{document}
>
> \author{test}
> \title{test}
> \maketitle
>
>
> \begingroup % local change
> \let\clearforchapter\relax
> \chapter{test}
>
> \endgroup
>
> dsf
>
> \end{document}

Humn! The scheme I've been using is the following:

\documentclass[a4paper,article]{memoir}

\setlength{\droptitle}{-\headheight}
\addtolength{\droptitle}{-\headsep}
\renewcommand{\maketitlehooka}{\vspace*{-2em}} % undo hard wire

\begin{document}

\author{test}
\title{test}
\maketitle

% Uncomment the line below to get a table of contents with no
% empty pages separating it from the title and the text.
%
%\tableofcontents*

\chapter{test}

dnw

\end{document}

It doesn't require a "local change" after \begin{document},
which suits my prejudice.

But I remember struggling to figure out the three changes for
the title environment in the preamble, all of which are needed.
I had hoped there might be a simpler option to do the same
thing, but never found one. Maybe in the most recent memoir?
I'm still using the version in Tex Live 2007.

-- David

Lars Madsen

unread,
Feb 5, 2009, 4:09:53 AM2/5/09
to

as I mentioned, it is the 'article' option to memoir that does this, the
OP did not use this option.

David N. Williams

unread,
Feb 5, 2009, 9:48:40 AM2/5/09
to
Lars Madsen wrote:
> David N. Williams wrote:
>> [...]

>>
>> \documentclass[a4paper,article]{memoir}
>>
>> \setlength{\droptitle}{-\headheight}
>> \addtolength{\droptitle}{-\headsep}
>> \renewcommand{\maketitlehooka}{\vspace*{-2em}} % undo hard wire
>>
>> [...]

>>
>> But I remember struggling to figure out the three changes for
>> the title environment in the preamble, all of which are needed.
>> I had hoped there might be a simpler option to do the same
>> thing, but never found one. Maybe in the most recent memoir?
>> I'm still using the version in Tex Live 2007.
>>
>> -- David
>
> as I mentioned, it is the 'article' option to memoir that does this, the
> OP did not use this option.

Sorry I wasn't clear. The three lines above have the additional
effect of moving the title to the top, nearly aligned with
subsequent pages of the body of the document.

By the way, the effects of

---------
\documentclass[a4paper]{memoir}

\chapterstyle{article}

\begin{document}

\author{test}
\title{test}
\maketitle


\begingroup % local change
\let\clearforchapter\relax
\chapter{test}

\endgroup

dsf

\end{document}
---------

and

---------
\documentclass[a4paper,article]{memoir}

%\chapterstyle{article}

\begin{document}

\author{test}
\title{test}
\maketitle


\begingroup % local change
\let\clearforchapter\relax
\chapter{test}

\endgroup

dsf

\end{document}
---------

are not identical on my system. The latter version reduces the
vertical space between the title and the author.

I also just noticed that the \begingroup...\endgroup has the
effect of indenting the first paragraph, which may or may not
be wanted...

-- David

Lars Madsen

unread,
Feb 5, 2009, 10:17:03 AM2/5/09
to

the article class option hooks into the maketitle command

\ifartopt
\chapterstyle{article}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\counterwithout{footnote}{chapter}
\counterwithout{equation}{chapter}
\renewcommand{\chaptername}{}
\renewcommand{\maketitlehookb}{%
\vskip -1.5\topsep\vskip -1.5\partopsep}
\renewcommand{\maketitlehookc}{%
\vskip -1.5\topsep\vskip -1.5\partopsep}
\fi

> I also just noticed that the \begingroup...\endgroup has the
> effect of indenting the first paragraph, which may or may not
> be wanted...
>

my mistake

the only thing \chearforchapter does is to change the page, so locally I
just make it not do that.

A better method might be

\def\clearforchapter{}

\chapter{test}

\def\clearforchapter{\cleartorecto}

text

0 new messages