I would like to know what are the margins (top, right,bottom and left; in meters) that are by default assigned for thebook
class. Is there a command or a way to know them?
[Tex/LaTex] margins of book class
margins
Related Solutions
geometry
gives you a great deal of easy-to-use control over page layout. This is the default layout used by the package for book
:
Here is the effect of inverting the ratio of the inner to outer margin:
\documentclass[11pt]{book}
\usepackage[showframe, hmarginratio=3:2]{geometry}
\usepackage{kantlipsum}
\begin{document}
\setcounter{chapter}{0}
\chapter{Auxiliary Results}
\section{Introduction}
\kant[1-5]
\end{document}
For more complete control, see the details in the package documentation. You may wish to specify margins etc. explicitly. Also, don't forget to remove showframe
to get rid of the frames showing the page layout!
Do you want to do this only for your "quad"-frame or globally? For only this special frame, a quick hack would be to simply insert \vspace{}
\documentclass[t]{beamer}
\setbeamersize{text margin left=0.5em, text margin right=0.5em}
\setbeamertemplate{frametitle}{\color{black}\bfseries\insertframetitle\par\vskip-6pt\hrulefill}
\newcommand\FourQuad[4]{
\vspace*{-0.2cm}
\colorbox{yellow}{\begin{minipage}[b][.40\textheight][t]{.49\textwidth}#1\end{minipage}}\hfill
\begin{minipage}[b][.40\textheight][t]{.49\textwidth}#2\end{minipage}\\
\begin{minipage}[b][.40\textheight][t]{.49\textwidth}#3\end{minipage}\hfill
\begin{minipage}[b][.40\textheight][t]{.49\textwidth}#4\end{minipage}
}
\begin{document}
\begin{frame}
\frametitle{A frame divided in four quadrants}
\FourQuad%
{First quadrant contents and some more text text text text more text text text text more text text text text more text text text text more text text text text more text text text text more text text text text}%
{
\centering
\rule{3cm}{2cm}
A test figure.
}%
{\begin{align*}
a &= b \\
&= c \\
& = d.
\end{align*}}%
{Fourth quadrant contents and some more text text text text more text text text text more text text text text more text text text text more text text text text more text text text text more text text text text}
\end{frame}
\end{document}
EDIT:
To make this hack globally, add the \vspace{}
to the frametitle template
\documentclass[t]{beamer}
\setbeamersize{text margin left=0.5em, text margin right=0.5em}
\setbeamertemplate{frametitle}{\color{black}\bfseries\insertframetitle\par\vskip-6pt\hrulefill \vspace*{-0.2cm}}
\newcommand\FourQuad[4]{
\colorbox{yellow}{\begin{minipage}[b][.40\textheight][t]{.49\textwidth}#1\end{minipage}}\hfill
\begin{minipage}[b][.40\textheight][t]{.49\textwidth}#2\end{minipage}\\
\begin{minipage}[b][.40\textheight][t]{.49\textwidth}#3\end{minipage}\hfill
\begin{minipage}[b][.40\textheight][t]{.49\textwidth}#4\end{minipage}
}
\begin{document}
\begin{frame}
\frametitle{A frame divided in four quadrants}
\FourQuad%
{First quadrant contents and some more text text text text more text text text text more text text text text more text text text text more text text text text more text text text text more text text text text}%
{
\centering
\rule{3cm}{2cm}
A test figure.
}%
{\begin{align*}
a &= b \\
&= c \\
& = d.
\end{align*}}%
{Fourth quadrant contents and some more text text text text more text text text text more text text text text more text text text text more text text text text more text text text text more text text text text}
\end{frame}
\end{document}
Best Answer
To produce an overview of the layout of the current document, you can use the
\layout
command from the layout package:The ouput is a two page document showing this:
Another option would be to use the layouts package:
Using the
\pagevalues
command you will obtain a table of the values of the current document’s page layout parameters; this, together with theshowframe
option for thegeometry
package, can be useful when designing a new page layout. A little example with some "extreme" values just for illustration: