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
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...}
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With