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?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityNot 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}
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
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.
memoir
supports different page layouts in the same document. You can do it withgeometry
, though. Do you know aboutfrontespizio
? – egreg Feb 24 '18 at 15:58frontespizio
in 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:07frontespizio
very flexible. Is there a specimen for the title page? – egreg Feb 24 '18 at 16:17