TeX - LaTeX Asked by Faergen on February 27, 2021
I want to vertically align the text to the middle of the page, if the text is not long enough to fill out the page.
For example if I write 1,5 pages: The first page is full and therefore the text is automatically aligned to the middle in a sense. This is because there is no more space above or below it within the text area. It is full. The second page is half full, and I want that page to align to the middle of the page, with the distance between the top and the bottom being equal (or there abouts)
I have tried vplace
but it only works, if the text is confined to one page. I want it to work, regardless of whether there are one or more pages in the document.
Mininal example that works (with one page):
documentclass[12pt,a4paper,onecolumn,oneside,final]{memoir}
usepackage{lipsum}
begin{document}
begin{vplace}
lipsum[1]
lipsum[1]
end{vplace}
end{document}
Mininal example that does not work (with one and a half page):
documentclass[12pt,a4paper,onecolumn,oneside,final]{memoir}
usepackage{lipsum}
begin{document}
begin{vplace}
lipsum[1]
lipsum[1]
lipsum[1]
lipsum[1]
end{vplace}
end{document}
I have also tried makeatletter let@texttop@textbottom makeatother
which doesn’t seem to do anything.
Put advancetopskip by 0pt plus 1fil
in the preamble and delete vplace
as suggested in the comment by John Kormylo.
Answered by Faergen on February 27, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP