Re: Memoir Class: Title and Chapter/Section on Same Page
- From: Lars Madsen <daleif@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 05 Feb 2009 16:17:03 +0100
David N. Williams wrote:
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.
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
--
/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
.
- References:
- Memoir Class: Title and Chapter/Section on Same Page
- From: Synvox
- Re: Memoir Class: Title and Chapter/Section on Same Page
- From: Lars Madsen
- Re: Memoir Class: Title and Chapter/Section on Same Page
- From: Synvox
- Re: Memoir Class: Title and Chapter/Section on Same Page
- From: Synvox
- Re: Memoir Class: Title and Chapter/Section on Same Page
- From: Lars Madsen
- Re: Memoir Class: Title and Chapter/Section on Same Page
- From: Synvox
- Re: Memoir Class: Title and Chapter/Section on Same Page
- From: Lars Madsen
- Re: Memoir Class: Title and Chapter/Section on Same Page
- From: David N. Williams
- Re: Memoir Class: Title and Chapter/Section on Same Page
- From: Lars Madsen
- Re: Memoir Class: Title and Chapter/Section on Same Page
- From: David N. Williams
- Memoir Class: Title and Chapter/Section on Same Page
- Prev by Date: Re: Memoir Class: Title and Chapter/Section on Same Page
- Next by Date: Re: Subfig Package - Vertical center with tempbox
- Previous by thread: Re: Memoir Class: Title and Chapter/Section on Same Page
- Next by thread: comment.sty and highlighting
- Index(es):
Relevant Pages
|