File indexing completed on 2024-11-24 04:34:44

0001 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
0002 <html>
0003 <!-- This document is an unofficial reference manual for LaTeX, a
0004 document preparation system, version of November 2018.
0005 
0006 This manual was originally translated from LATEX.HLP v1.0a in the
0007 VMS Help Library.  The pre-translation version was written by
0008 George D. Greenwade of Sam Houston State University.  The
0009 LaTeX 2.09 version was written by Stephen Gilmore.  The
0010 LaTeX2e version was adapted from this by Torsten Martinsen.  Karl
0011 Berry made further updates and additions, and gratefully acknowledges
0012 using Hypertext Help with LaTeX, by Sheldon Green, and
0013 LaTeX Command Summary (for LaTeX 2.09) by
0014 L. Botway and C. Biemesderfer (published by the TeX Users
0015 Group as TeXniques number 10), as reference material.  We also
0016 gratefully acknowledge additional material appearing in
0017 latex2e-reference by Martin Herbert Dietze.  (From these references no
0018 text was directly copied.)
0019 
0020 Copyright 2007, 2008, 2009, 2010, 2011, 2012, 2013,
0021 2014, 2015, 2016, 2017, 2018 Karl Berry.
0022 
0023 Copyright 1988, 1994, 2007 Stephen Gilmore.
0024 
0025 Copyright 1994, 1995, 1996 Torsten Martinsen.
0026 
0027 Permission is granted to make and distribute verbatim copies of
0028 this manual provided the copyright notice and this permission notice
0029 are preserved on all copies.
0030 
0031 
0032 Permission is granted to copy and distribute modified versions of this
0033 manual under the conditions for verbatim copying, provided that the entire
0034 resulting derived work is distributed under the terms of a permission
0035 notice identical to this one.
0036 
0037 Permission is granted to copy and distribute translations of this manual
0038 into another language, under the above conditions for modified versions. -->
0039 <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
0040 <head>
0041 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
0042 <title>Page layout parameters (LaTeX2e unofficial reference manual (November 2018))</title>
0043 
0044 <meta name="description" content="Page layout parameters (LaTeX2e unofficial reference manual (November 2018))">
0045 <meta name="keywords" content="Page layout parameters (LaTeX2e unofficial reference manual (November 2018))">
0046 <meta name="resource-type" content="document">
0047 <meta name="distribution" content="global">
0048 <meta name="Generator" content="makeinfo">
0049 <link href="index.html#Top" rel="start" title="Top">
0050 <link href="IndexDocument.html#Index" rel="index" title="Index">
0051 <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
0052 <link href="Layout.html#Layout" rel="up" title="Layout">
0053 <link href="Floats.html#Floats" rel="next" title="Floats">
0054 <link href="_005craggedbottom.html#g_t_005craggedbottom" rel="prev" title="\raggedbottom">
0055 <style type="text/css">
0056 <!--
0057 /* $Id: latex2e.css 690 2018-09-15 15:20:19Z jimhefferon $
0058    Minor css for latexrefman. Public domain.
0059    Originally written by Jim Hefferon and Karl Berry, 2018. */
0060 
0061 /* So you can style for yourself */
0062 @import url("/css/latexreflocal.css");
0063 
0064 
0065 
0066 a.summary-letter {text-decoration: none}
0067 blockquote.indentedblock {margin-right: 0em}
0068 blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
0069 blockquote.smallquotation {font-size: smaller}
0070 div.display {margin-left: 3.2em}
0071 div.example {margin-left: 3.2em}
0072 div.lisp {margin-left: 3.2em}
0073 div.smalldisplay {margin-left: 3.2em}
0074 div.smallexample {margin-left: 3.2em}
0075 div.smalllisp {margin-left: 3.2em}
0076 kbd {font-style: oblique}
0077 pre.display {font-family: inherit}
0078 pre.format {font-family: inherit}
0079 pre.menu-comment {font-family: serif}
0080 pre.menu-preformatted {font-family: serif}
0081 pre.smalldisplay {font-family: inherit; font-size: smaller}
0082 pre.smallexample {font-size: smaller}
0083 pre.smallformat {font-family: inherit; font-size: smaller}
0084 pre.smalllisp {font-size: smaller}
0085 span.nolinebreak {white-space: nowrap}
0086 span.roman {font-family: initial; font-weight: normal}
0087 span.sansserif {font-family: sans-serif; font-weight: normal}
0088 ul.no-bullet {list-style: none}
0089 BODY {
0090   margin-top: 1em;
0091   margin-left: 1em; /* auto results in two-digit <ol> lost off left */
0092   margin-right: 1em;
0093   margin-bottom: 1em;
0094   /* the idea is to use the whole window, unless it is ridiculously
0095      wide, probably with too-small fonts, too.  */
0096   max-width: 64em;
0097 }
0098 
0099 /* Because we want @math{... @code ...} to be upright, not slanted,
0100    and Texinfo won't fix it. */
0101 code {font-style:normal; font-family:monospace; }
0102 
0103 /* We put a link to our own home page at the bottom. */
0104 div.referenceinfo {font-size:small;}
0105 
0106 -->
0107 </style>
0108 
0109 
0110 </head>
0111 
0112 <body lang="en">
0113 <a name="Page-layout-parameters"></a>
0114 <div class="header">
0115 <p>
0116 Next: <a href="Floats.html#Floats" accesskey="n" rel="next">Floats</a>, Previous: <a href="_005craggedbottom.html#g_t_005craggedbottom" accesskey="p" rel="prev">\raggedbottom</a>, Up: <a href="Layout.html#Layout" accesskey="u" rel="up">Layout</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="IndexDocument.html#Index" title="Index" rel="index">Index</a>]</p>
0117 </div>
0118 <hr>
0119 <a name="Page-layout-parameters-1"></a>
0120 <h3 class="section">5.5 Page layout parameters</h3>
0121 
0122 <a name="index-page-layout-parameters"></a>
0123 <a name="index-parameters_002c-page-layout"></a>
0124 <a name="index-layout_002c-page-parameters-for"></a>
0125 <a name="index-header_002c-parameters-for"></a>
0126 <a name="index-footer_002c-parameters-for"></a>
0127 <a name="index-running-header-and-footer"></a>
0128 
0129 <dl compact="compact">
0130 <dt><code>\columnsep</code>
0131 <a name="index-_005ccolumnsep-1"></a>
0132 </dt>
0133 <dt><code>\columnseprule</code>
0134 <a name="index-_005ccolumnseprule-1"></a>
0135 </dt>
0136 <dt><code>\columnwidth</code>
0137 <a name="index-_005ccolumnwidth-1"></a>
0138 </dt>
0139 <dd><a name="index-_005ccolumnsep-2"></a>
0140 <a name="index-_005ccolumnseprule-2"></a>
0141 <a name="index-_005ccolumnwidth-2"></a>
0142 <a name="page-layout-parameters-columnsep"></a><a name="page-layout-parameters-columnseprule"></a><a name="page-layout-parameters-columnwidth"></a><p>The distance between the two columns, the width of a rule between the
0143 columns, and the width of the columns, when the document class option
0144 <code>twocolumn</code> is in effect (see <a href="Document-class-options.html#Document-class-options">Document class options</a>).
0145 See <a href="_005ctwocolumn.html#g_t_005ctwocolumn">\twocolumn</a>.
0146 </p>
0147 </dd>
0148 <dt><code>\headheight</code>
0149 <a name="index-_005cheadheight"></a>
0150 </dt>
0151 <dd><a name="index-_005cheadheight-1"></a>
0152 <a name="page-layout-parameters-headheight"></a><p>Height of the box that contains the running head.  The default in the
0153 <code>article</code>, <code>report</code>, and <code>book</code> classes is &lsquo;<samp>12pt</samp>&rsquo;,
0154 at all type sizes.
0155 </p>
0156 </dd>
0157 <dt><code>\headsep</code>
0158 <a name="index-_005cheadsep"></a>
0159 </dt>
0160 <dd><a name="index-_005cheadsep-1"></a>
0161 <a name="page-layout-parameters-headsep"></a><p>Vertical distance between the bottom of the header line and the top of
0162 the main text.  The default in the <code>article</code> and <code>report</code>
0163 classes is &lsquo;<samp>25pt</samp>&rsquo;.  In the <code>book</code> class the default is: if the
0164 document is set at 10pt then it is &lsquo;<samp>0.25in</samp>&rsquo;, and at 11pt and 12pt
0165 it is &lsquo;<samp>0.275in</samp>&rsquo;.
0166 </p>
0167 </dd>
0168 <dt><code>\footskip</code>
0169 <a name="index-_005cfootskip"></a>
0170 </dt>
0171 <dd><a name="index-_005cfootskip-1"></a>
0172 <a name="page-layout-parameters-footskip"></a><p>Distance from the baseline of the last line of text to the baseline of
0173 the page footer.  The default in the <code>article</code> and <code>report</code>
0174 classes is &lsquo;<samp>30pt</samp>&rsquo;.  In the <code>book</code> class the default is: when
0175 the type size is 10pt the default is &lsquo;<samp>0.35in</samp>&rsquo;, while at 11pt it is
0176 &lsquo;<samp>0.38in</samp>&rsquo;, and at 12pt it is &lsquo;<samp>30pt</samp>&rsquo;.
0177 </p>
0178 </dd>
0179 <dt><code>\linewidth</code>
0180 <a name="index-_005clinewidth"></a>
0181 </dt>
0182 <dd><a name="index-_005clinewidth-1"></a>
0183 <a name="page-layout-parameters-linewidth"></a><p>Width of the current line, decreased for each nested <code>list</code>
0184 (see <a href="list.html#list">list</a>).  That is, the nominal value for <code>\linewidth</code> is to
0185 equal <code>\textwidth</code> but for each nested list the <code>\linewidth</code>
0186 is decreased by the sum of that list&rsquo;s <code>\leftmargin</code> and
0187 <code>\rightmargin</code> (see <a href="itemize.html#itemize">itemize</a>).
0188 </p>
0189 </dd>
0190 <dt><code>\marginparpush</code>
0191 <a name="index-_005cmarginparpush"></a>
0192 </dt>
0193 <dt><code>\marginsep</code>
0194 <a name="index-_005cmarginsep"></a>
0195 </dt>
0196 <dt><code>\marginparwidth</code>
0197 <a name="index-_005cmarginparwidth"></a>
0198 </dt>
0199 <dd><a name="index-_005cmarginparpush-1"></a>
0200 <a name="index-_005cmarginsep-1"></a>
0201 <a name="index-_005cmarginparwidth-1"></a>
0202 <a name="page-layout-parameters-marginparpush"></a><a name="page-layout-parameters-marginsep"></a><a name="page-layout-parameters-marginparwidth"></a><p>The minimum vertical space between two marginal notes, the horizontal
0203 space between the text body and the marginal notes, and the horizontal
0204 width of the notes.
0205 </p>
0206 <p>Normally marginal notes appear on the outside of the page, but the
0207 declaration <code>\reversemarginpar</code> changes that (and
0208 <code>\normalmarginpar</code> changes it back).
0209 </p>
0210 <p>The defaults for <code>\marginparpush</code> in both <code>book</code> and
0211 <code>article</code> classes are: &lsquo;<samp>7pt</samp>&rsquo; if the document is set at 12pt,
0212 and &lsquo;<samp>5pt</samp>&rsquo; if the document is set at 11pt or 10pt.
0213 </p>
0214 <p>For <code>\marginsep</code>, in <code>article</code> class the default is
0215 &lsquo;<samp>10pt</samp>&rsquo; except if the document is set at 10pt and in two-column mode
0216 where the default is &lsquo;<samp>11pt</samp>&rsquo;.
0217 </p>
0218 <p>For <code>\marginsep</code> in <code>book</code> class the default is &lsquo;<samp>10pt</samp>&rsquo; in
0219 two-column mode and &lsquo;<samp>7pt</samp>&rsquo; in one-column mode.  
0220 </p>
0221 <p>For <code>\marginparwidth</code> in both <code>book</code> and <code>article</code>
0222 classes, in two-column mode the default is 60% of <code>\paperwidth
0223 - \textwidth</code>, while in one-column mode it is 50% of that
0224 distance.
0225 </p>
0226 </dd>
0227 <dt><code>\oddsidemargin</code>
0228 <a name="index-_005coddsidemargin-1"></a>
0229 </dt>
0230 <dt><code>\evensidemargin</code>
0231 <a name="index-_005cevensidemargin-1"></a>
0232 </dt>
0233 <dd><a name="index-_005coddsidemargin-2"></a>
0234 <a name="index-_005cevensidemargin-2"></a>
0235 <a name="page-layout-parameters-oddsidemargin"></a><a name="page-layout-parameters-evensidemargin"></a><p>The <code>\oddsidemargin</code> is the extra distance between the left side of
0236 the page and the text&rsquo;s left margin, on odd-numbered pages when the
0237 document class option <code>twoside</code> is chosen and on all pages when
0238 <code>oneside</code> is in effect.  When <code>twoside</code> is in effect, on
0239 even-numbered pages the extra distance on the left is
0240 <code>evensidemargin</code>.
0241 </p>
0242 <p>LaTeX&rsquo;s default is that <code>\oddsidemargin</code> is 40% of the
0243 difference between <code>\paperwidth</code> and <code>\textwidth</code>, and
0244 <code>\evensidemargin</code> is the remainder.
0245 </p>
0246 </dd>
0247 <dt><code>\paperheight</code>
0248 <a name="index-_005cpaperheight"></a>
0249 </dt>
0250 <dd><a name="index-_005cpaperheight-1"></a>
0251 <a name="page-layout-parameters-paperheight"></a><p>The height of the paper, as distinct from the height of the print area.
0252 Normally set with a document class option, as in
0253 <code>\documentclass[a4paper]{article}</code> (see <a href="Document-class-options.html#Document-class-options">Document class options</a>).
0254 </p>
0255 </dd>
0256 <dt><code>\paperwidth</code>
0257 <a name="index-_005cpaperwidth"></a>
0258 </dt>
0259 <dd><a name="index-_005cpaperwidth-1"></a>
0260 <a name="page-layout-parameters-paperwidth"></a><p>The width of the paper, as distinct from the width of the print area.
0261 Normally set with a document class option, as in
0262 <code>\documentclass[a4paper]{article}</code> (see <a href="Document-class-options.html#Document-class-options">Document class options</a>).
0263 </p>
0264 </dd>
0265 <dt><code>\textheight</code>
0266 <a name="index-_005ctextheight"></a>
0267 </dt>
0268 <dd><a name="index-_005ctextheight-1"></a>
0269 <a name="page-layout-parameters-textheight"></a><p>The normal vertical height of the page body.  If the document is set at
0270 a nominal type size of 10pt then for an <code>article</code> or <code>report</code>
0271 the default is &lsquo;<samp>43\baselineskip</samp>&rsquo;, while for a <code>book</code> it is
0272 &lsquo;<samp>41\baselineskip</samp>&rsquo;.  At a type size of 11pt the default is
0273 &lsquo;<samp>38\baselineskip</samp>&rsquo; for all document classes.  At 12pt it is
0274 &lsquo;<samp>36\baselineskip</samp>&rsquo; for all classes.
0275 </p>
0276 </dd>
0277 <dt><code>\textwidth</code>
0278 <a name="index-_005ctextwidth"></a>
0279 </dt>
0280 <dd><a name="index-_005ctextwidth-1"></a>
0281 <a name="page-layout-parameters-textwidth"></a><p>The full horizontal width of the entire page body.  For an
0282 <code>article</code> or <code>report</code> document, the default is &lsquo;<samp>345pt</samp>&rsquo;
0283 when the chosen type size is 10pt, the default is &lsquo;<samp>360pt</samp>&rsquo; at 11pt,
0284 and it is &lsquo;<samp>390pt</samp>&rsquo; at 12pt.  For a <code>book</code> document, the default
0285 is &lsquo;<samp>4.5in</samp>&rsquo; at a type size of 10pt, and &lsquo;<samp>5in</samp>&rsquo; at 11pt or 12pt.
0286 </p>
0287 <p>In multi-column output, <code>\textwidth</code> remains the width of the
0288 entire page body, while <code>\columnwidth</code> is the width of one column
0289 (see <a href="_005ctwocolumn.html#g_t_005ctwocolumn">\twocolumn</a>).
0290 </p>
0291 <p>In lists (see <a href="list.html#list">list</a>), <code>\textwidth</code> remains the width of the
0292 entire page body (and <code>\columnwidth</code> the width of the entire
0293 column), while <code>\linewidth</code> may decrease for nested lists.
0294 </p>
0295 <p>Inside a minipage (see <a href="minipage.html#minipage">minipage</a>) or <code>\parbox</code>
0296 (see <a href="_005cparbox.html#g_t_005cparbox">\parbox</a>), all the width-related parameters are set to the
0297 specified width, and revert to their normal values at the end of the
0298 <code>minipage</code> or <code>\parbox</code>.
0299 </p>
0300 <a name="index-_005chsize"></a>
0301 <a name="page-layout-parameters-hsize"></a></dd>
0302 <dt><code>\hsize</code>
0303 <a name="index-_005chsize-1"></a>
0304 </dt>
0305 <dd><p>This entry is included for completeness: <code>\hsize</code> is the TeX
0306 primitive parameter used when text is broken into lines.  It should not
0307 be used in normal LaTeX documents.
0308 </p>
0309 </dd>
0310 <dt><code>\topmargin</code>
0311 <a name="index-_005ctopmargin"></a>
0312 </dt>
0313 <dd><a name="index-topmargin"></a>
0314 <a name="page-layout-parameters-topmargin"></a><p>Space between the top of the TeX page (one inch from the top of the
0315 paper, by default) and the top of the header.  The value is computed
0316 based on many other parameters: <code>\paperheight - 2in -
0317 \headheight - \headsep - \textheight - \footskip</code>,
0318 and then divided by two.
0319 </p>
0320 </dd>
0321 <dt><code>\topskip</code>
0322 <a name="index-_005ctopskip"></a>
0323 </dt>
0324 <dd><a name="index-_005ctopskip-1"></a>
0325 <a name="page-layout-parameters-topskip"></a><p>Minimum distance between the top of the page body and the baseline of
0326 the first line of text.  For the standard classes, the default is the
0327 same as the font size, e.g., &lsquo;<samp>10pt</samp>&rsquo; at a type size of 10pt.
0328 </p>
0329 </dd>
0330 </dl>
0331 
0332 
0333 
0334 
0335 <hr/><div class='referenceinfo'> <a href='https://latexref.xyz/'> <i>Unofficial LaTeX2e reference manual</i></a></div>
0336 </body>
0337 </html>