Re: Memoir Class: Title and Chapter/Section on Same Page



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
.



Relevant Pages

  • Current standings: Structures
    ... David N. Williams ... SFIELD: 2 cells ... The semantics of DFIELD: ...
    (comp.lang.forth)
  • Re: Doctors Advice?
    ... Would you like me to offer some posting references and search criteria ... Williams; watch my lips you silly old bastard: ... What perplexes me is that he has created a troll faq where there are 4 ... David, don't you realize that he simply stumble across ...
    (misc.fitness.weights)
  • Re: complexity of numerical software
    ... David N. Williams wrote: ... They have nothing to do with algorithms to find subsets, ... nonnegative normalized short floating-point numbers x, SQRT returns the correctly rounded value... ...
    (sci.math.symbolic)
  • Re: Receiving error message
    ... On Mon, 2004-08-23 at 13:16, Williams, David wrote: ... I think in subsequent updates this was fixed, at least on one box I ... But I think a recent update renamed the XF86config file and it now uses ...
    (Fedora)