TransWikia.com

Different typeblocksize in the same document with memoir

TeX - LaTeX Asked by Luis Turcio on November 29, 2020

I’m writing a document with memoir class in which the table of contents has a different typeblock size than the rest of the document. I know that geometry package can do what I want with newgeometry{...} ... restoregeometry. The memoir manual says:

The class also provides functions similar to those provided by the following packages, although the commands are different:
crop, fancyhdr, geometry, sidecap, subfigure, titlesec.

So my question is if there is something similar to newgeometry{...} ... restoregeometry in memoir or in this case I need to load geometry.

One Answer

As far as I know memoir doesnt have equivalents to the geometry newgeometryandrestoregeometry. However it is possible to change the layout within a memoir` document.

% memlayoutprob.tex  SE 569916

documentclass[a4paper]{memoir}
usepackage{lipsum}
settypeblocksize{598pt}{341pt}{*} % the default for A4 paper
checkandfixthelayout
begin{document}
REGULAR LAYOUT

lipsum[1]

CHANGE THE LAYOUT FOR THE TOC
clearpage
twocolumn
settypeblocksize{400pt}{200pt}{*}
checkandfixthelayout
onecolumn % TeX reconfigures its layout when swapping between one and two columns
tableofcontents
clearpage
twocolumn
settypeblocksize{598pt}{341pt}{*} % the default for A4 paper
checkandfixthelayout
onecolumn
chapter{First}
BACK TO REGULAR LAYOUT
section{Initial}
lipsum[1-5]

end{document}

I know it looks a pain but it is doable. Perhaps a future version of memoir might include some more user-friendly code.

Correct answer by Peter Wilson on November 29, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP