I managed to change the page layout (equal left/right margins) of a thesis' frontispiece with:
\setlrmargins{*}{*}{1}
\checkandfixthelayout
and now I'd like to restore memoir's default page layout. How can I do that?
I managed to change the page layout (equal left/right margins) of a thesis' frontispiece with:
\setlrmargins{*}{*}{1}
\checkandfixthelayout
and now I'd like to restore memoir's default page layout. How can I do that?
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
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
\documentclass[a4paper]{memoir}
\usepackage[norules,noadvisor]{frontespizio}
\begin{document}
\begin{frontespizio}
\begin{Preambolo*}
\usepackage{newtxtext}
\renewcommand{\frontinstitutionfont}{\fontsize{22}{24}\bfseries}
\renewcommand{\frontdivisionfont}{\fontsize{18}{24}\bfseries}
\renewcommand{\fronttitlefont}{\fontsize{20}{24}\bfseries}
\renewcommand{\frontsubtitlefont}{\fontsize{10}{12}\selectfont}
\renewcommand{\frontnamesfont}{\fontsize{14}{18}\selectfont}
\renewcommand{\frontfootfont}{\fontsize{14}{18}\bfseries}
\end{Preambolo*}
\Logo[3cm]{trieste}
\Istituzione{UNIVERSIT\`A DEGLI STUDI DI TRIESTE}
\Divisione{XLII CICLO DEL DOTTORATO DI RICERCA IN}
\Scuola{PENNUTISTICA}
\Titolo{TITOLO DELLA TESI}
\Sottotitolo{Settore scientifico-disciplinare: PEN/99}
\NCandidato{}
\Candidato{%
\begin{minipage}{\textwidth}\centering
\begin{tabular}{@{}l@{}}
\normalfont DOTTORANDO \\
\bfseries Alessandro Cuttin\\[2ex]
\normalfont COORDINATORE \\
\bfseries PROF. Frederick Frankenstein \\[2ex]
\normalfont SUPERVISORE DI TESI \\
\bfseries PROF. The Monster
\end{tabular}
\end{minipage}}
\Piede{ANNO ACCADEMICO 2017/2018}
\end{frontespizio}
\end{document}
The general method of changing a document's layout in the middle of it is:
\documentclass[...]{report}% or book or article or ...
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\twocolumn% if onecolumn document
% make your layout changes here
\onecolumn% if onecolumn document
\lipsum[1]
\end{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:
\documentclass[,...]{memoir}
\usepackage{lipsum}
% change the layout if you wish
\checkandfixthelayout
\begin{document}
\lipsum[1]
\twocolumn
\setlrmarginsandblock{3in}{*}{1}% increase the margins & reduce text width
\checkandfixthelayout
\onecolumn
\lipsum[1]
\end{document}
To get the details of memoir's original layout you could simply process:
\documentclass{memoir}
\checkandfixthelayout
\begin{document}
\end{document}
which will print all the values on the terminal.
memoirsupports different page layouts in the same document. You can do it withgeometry, though. Do you know aboutfrontespizio? – egreg Feb 24 '18 at 15:58frontespizioin the past! :) However, the title page required for my doctoral thesis is not easy to reproduce withfrontespizio, and I opted for a manual reproduction of the word template provided by the university ;) – Alessandro Cuttin Feb 24 '18 at 16:07frontespiziovery flexible. Is there a specimen for the title page? – egreg Feb 24 '18 at 16:17pdfpages. See https://en.wikibooks.org/wiki/LaTeX/Title_Creation#Integrating_the_title_page – Johannes_B Feb 24 '18 at 16:37frontespiziois very flexible.;-)– egreg Feb 24 '18 at 17:22memoirsupports different page layouts just like other classes do. I'm sure that I've said this before but can't recall where. If a document is onecolumn then\twocolumnmake your changes\onecolumn. For a twocolumn document reverse the column change macros. (I got this from Donald Arseneau many years ago.) It works because LaTeX recalculates the layout whenever there is a switch between one and two columns. – Peter Wilson Feb 24 '18 at 19:39