Page LayoutBalancing the layout automatically on the cover

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
arobase
Posts: 33
Joined: Sat Apr 14, 2012 7:46 pm

Balancing the layout automatically on the cover

Post by arobase »

I'm creating the cover of a memoir which has three parts : top, center and bottom. What set of commands / package can take care of placing them automatically such as the whole height of the page is used, as opposed to manually setting the distance between each pair of paragraphs?

Code: Select all

\usepackage{memoir}
\usepackage[margin=1in]{geometry}
\begin{document}
\begingroup \noindent
The top.

\vspace{100pt} % Can Latex do that for me?

The center.

\vspace{100pt} % Can Latex do that for me?

The bottom.

\endgroup
\clearpage
\end{document}
Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Balancing the layout automatically on the cover

Post by Stefan Kottwitz »

Hi,

you could use \vfill for this. Just insert this command at both places instead of \vspace{100pt}, then the space is filled and equally stretched so that the page is completely filled.

Btw. very good that you tried to post a minimal example! Just \documentclass{memoir} should be used instead of \usepackage{memoir}. Not a big deal, but it shows you did not test your example ;-) in another case it could be very relevant if the untested constructed minimal example would not match the real problem because it wasn't tried.

Stefan
LaTeX.org admin
arobase
Posts: 33
Joined: Sat Apr 14, 2012 7:46 pm

Balancing the layout automatically on the cover

Post by arobase »

Stefan_K wrote:Hi,

you could use \vfill for this. Just insert this command at both places instead of \vspace{100pt}, then the space is filled and equally stretched so that the page is completely filled.
Thank you.
Btw. very good that you tried to post a minimal example! Just \documentclass{memoir} should be used instead of \usepackage{memoir}.
You caught my inattention.
Post Reply