I am using xelatex and the Memoir class. By default, the empty vertical space before the section heading does not show after a pagebreak
. How do I modify it if I want it to show instead, even if it is at the top of a new page? I can see in memoir.cls
that there is a length named \beforesecskip
and a \setbeforesecskip
command, but I don't know enough to be able to figure about how to achieve the desired effect. Any help is appreciated.
\documentclass[11pt]{memoir}
\usepackage{showframe}
%%% Book Layout %%%
\setstocksize{7.5in}{5in}
\settrimmedsize{7.5in}{5in}{*}
\setlength{\trimtop}{0pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\settypeblocksize{6in}{4in}{*}
\setulmargins{0.5in}{*}{*}
\setlrmargins{0.5in}{*}{*}
\setmarginnotes{0pt}{0pt}{0pt}
\checkandfixthelayout
%%% Other Settings %%%
\raggedbottom
\setsecheadstyle{\large\centering}
\long\def\sometext{Lorem ipsum dolor sit amet, consectetur
adipisicing elit, sed do eiusmod tempor incididunt ut labore
et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.}
%%% Document Proper %%%
\begin{document}
\section*{Section 1}
\sometext
\section*{Section 2}
\sometext
\section*{Section 3}
\sometext
\section*{Section 4}
\sometext
\section*{Section 5}
\sometext
\section*{Section 6}
\sometext
\end{document}
As you can see. There is no vertical skip before section 1 and 4 since they are at the top of the page.
\documentclass{...}
and ending with\end{document}
.\leavevmode
doesn't print anything, but is enough to make latex believe it's not at the top of the page, so ...\leavevmode\section*
would do the trick (to some approximation)