I managed to change the page layout (equal left/right margins) of a thesis' frontispiece with:


and now I'd like to restore memoir's default page layout. How can I do that?

  • 1
    Not tested, but maybe you can do the previous change inside a group. (Inside \begingroup \endgroup) and then it could be restored without commands. Ask me to delete if not work
    – koleygr
    Feb 24, 2018 at 15:51
  • I don't think memoir supports different page layouts in the same document. You can do it with geometry, though. Do you know about frontespizio?
    – egreg
    Feb 24, 2018 at 15:58
  • @koleygr can you please turn your comment into an answer? it seems to work! Feb 24, 2018 at 16:03
  • @egreg I successfully used frontespizio in the past! :) However, the title page required for my doctoral thesis is not easy to reproduce with frontespizio, and I opted for a manual reproduction of the word template provided by the university ;) Feb 24, 2018 at 16:07
  • I've found frontespizio very flexible. Is there a specimen for the title page?
    – egreg
    Feb 24, 2018 at 16:17

3 Answers 3


Not an answer to the specific problem, but here's how you can use frontespizio, given the template at http://www2.units.it/dott/files/EFFronte.doc



\Sottotitolo{Settore scientifico-disciplinare: PEN/99}

  \normalfont DOTTORANDO \\
  \bfseries Alessandro Cuttin\\[2ex]
  \normalfont COORDINATORE \\
  \bfseries PROF. Frederick Frankenstein \\[2ex]
  \normalfont SUPERVISORE DI TESI \\
  \bfseries PROF. The Monster
\Piede{ANNO ACCADEMICO 2017/2018}


enter image description here

  • well, thank you very much! I'll try to put it in the document before the submission :) Feb 25, 2018 at 11:01
  • Pennutistica? :)
    – CarLaTeX
    Feb 25, 2018 at 19:43
  • @CarLaTeX The more general area including duckology, of course.
    – egreg
    Feb 25, 2018 at 20:38
  • @egreg I suspected it, LOL!
    – CarLaTeX
    Feb 25, 2018 at 20:40

In latex, it is possible to make temporary changes or change temporary some variables by using \begingroup and \endgroup and do our changes between these two commands.

I am answering from a mobile and will improve the answer later.

In your case a \begingroup before the layout change and an \endgroup at the point you want to undo, could work, but be careful to redefine whatever variable possibly defined inside this group without \global or equivalent definition

  • Generally speaking you are right, but changing, for example. margins and textwidth, is problematic. TeX sets type using a specific layout, until the current page overflows. It then cuts off the current page and puts any cutoff text at the top of the next page WITHOUT CHANGING THE LAYOUT for that bit of text. It may then change the layout on the page for succeeding text. In general the layout can only be changed after the text for a page has been completely output and before the text for the following page is started. Feb 25, 2018 at 20:50

The general method of changing a document's layout in the middle of it is:

\documentclass[...]{report}% or book or article or ...
\twocolumn% if onecolumn document
% make your layout changes here
\onecolumn% if onecolumn document

This is because LaTeX recalculates the layout parameters when switching between one and two columns (I don't know about the multicolumn package). I originally got this many years ago from Donald Arseneau.

For the memoir class, as an example:

% change the layout if you wish
\setlrmarginsandblock{3in}{*}{1}% increase the margins & reduce text width

To get the details of memoir's original layout you could simply process:


which will print all the values on the terminal.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .