Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing text on LaTeX \part page

Tags:

latex

I was wondering if it is possible to write an introductory text on the page generated by \part{...} in LaTeX?

I have tried to insert text on it, but it will just generate a blank page before the text.

Regards, Kenneth

like image 526
Kenneth Fuglsang Avatar asked Dec 09 '09 09:12

Kenneth Fuglsang


2 Answers

You may define own macro \mypart. For example

\def\mypart#1#2{%
  \par\break % Page break
  \vskip .3\vsize % Vertical shift
  \refstepcounter{part}% Next part
  {\centering\Large Part \thepart.\par}% 
  \vskip .1\vsize % Vertical shift 
  % Some text
  #2
  \vfill\break % Fill the end of page and page break
}

\part{Main}{Something about main...}
like image 110
Alexey Malistov Avatar answered Oct 23 '22 03:10

Alexey Malistov


If you are using the memoir class then a simpler (but less general) method is to just redefine the \afterpartskip command.

I wrote:

\renewcommand{\afterpartskip}{\vfil}

in my preamble.

This works because the pagebreak is generated from

\newcommand{\afterpartskip}{\vfil\newpage}

in memoir.cls. (It is called from the \partpageend command).

This method simply removes the \newpage command, which might be all you want to do.

like image 41
Tom Avatar answered Oct 23 '22 03:10

Tom