Sideway
output.to from Sideway
Draft for Information Only

Content

LaTeX Page Layout
 Page Elements
  Examples
   One-Sided Document
    Code
    Output
   Two-Sided Document
    Code
    Output
   Two-Columns and Two-MarginNotes Document
    Code
    Output
 Commands
  Paper Dimensions
   Geometrical Dimensions of Page Elements
   Geometrical Dimensions of Body elements
 Source and Reference

LaTeX Page Layout

\documentclass is also used by LaTeX to format the LaTeX page layout of a LaTeX document.

Page Elements

The typical page elements are body, running header, running footer, and margin notes. Body is the type area of the LaTeX document. Above the type area is a runnng header and below the type area is a running footer. Both running header and running footer may be used for containing the page number, document and text information, and any other markers. The areas to the left and the right of body are margins, at which margin notes, such as remarks and annotations, can be contained. Further, type area of body may be divided into columns in multi-column mode. And the margin area can also be divided into multiple margin note areas.

Examples

One-Sided Document

Code
\documentclass[a4paper]{article}
\usepackage[showframe]{geometry}
\geometry{paperheight=845pt,top=102pt,textheight=591pt}
\geometry{paperwidth=597pt,left=90pt,textwidth=418pt}
\geometry{paperheight=470pt,textheight=320pt}
\geometry{paperwidth=490pt,textwidth=310pt}
\usepackage{xcolor}
\usepackage{layout}
\colorlet{showframe}{red!50}
\makeatletter
\let\org@Gm@pageframes\Gm@pageframes
\renewcommand*{\Gm@pageframes}{%
  \begingroup
    \color{showframe}%
    \org@Gm@pageframes
  \endgroup
}
%\def\Gm@hrule{\color{red!20}\hrule height 1pt depth\z@ width\textwidth}%
%\def\Gm@vrule{\color{red!20}\vrule width 1pt height\textheight depth\z@}%
%\def\Gm@hruled{\color{red!20}\hrule height\z@ depth 1pt width\textwidth}%
\makeatother
\begin{document}
\pdfliteral{0 0 1 rg}
\layout
\pdfliteral{0 0 1 rg}

\end{document}
Output
image

Two-Sided Document

Code
\documentclass[a4paper,twoside]{article}
\usepackage[showframe]{geometry}
\geometry{paperheight=845pt,top=102pt,textheight=591pt}
\geometry{paperwidth=597pt,left=71.5pt,textwidth=418pt}
\geometry{paperheight=470pt,textheight=320pt}
\geometry{paperwidth=489.5pt,textwidth=310pt}
\usepackage{xcolor}
\usepackage{layout}
\colorlet{showframe}{red!50}
\makeatletter
\let\org@Gm@pageframes\Gm@pageframes
\renewcommand*{\Gm@pageframes}{%
  \begingroup
    \color{showframe}%
    \org@Gm@pageframes
  \endgroup
}
%\def\Gm@hrule{\color{red!20}\hrule height 1pt depth\z@ width\textwidth}%
%\def\Gm@vrule{\color{red!20}\vrule width 1pt height\textheight depth\z@}%
%\def\Gm@hruled{\color{red!20}\hrule height\z@ depth 1pt width\textwidth}%
\makeatother
\begin{document}
\pdfliteral{0 0 1 rg}
\layout
\pdfliteral{0 0 1 rg}

\end{document}
Output
image

Two-Columns and Two-MarginNotes Document

Code
\documentclass[a4paper]{article}
\usepackage[showframe]{geometry}
\geometry{paperheight=845pt,top=102pt,textheight=591pt}
\geometry{paperwidth=598pt,left=90pt,textwidth=418pt}
\geometry{paperheight=600pt,textheight=450pt}
\geometry{paperwidth=560pt,textwidth=380pt}
\usepackage{xcolor}
\usepackage{layouts}
\colorlet{showframe}{red!50}
\makeatletter
\let\org@Gm@pageframes\Gm@pageframes
\renewcommand*{\Gm@pageframes}{%
  \begingroup
    \color{showframe}%
    \org@Gm@pageframes
  \endgroup
}
%\def\Gm@hrule{\color{red!20}\hrule height 1pt depth\z@ width\textwidth}%
%\def\Gm@vrule{\color{red!20}\vrule width 1pt height\textheight depth\z@}%
%\def\Gm@hruled{\color{red!20}\hrule height\z@ depth 1pt width\textwidth}%
\makeatother
\begin{document}
%\the\paperwidth
\pdfliteral{0 0 1 rg}
\begin{figure}
%\oddpagelayoutfalse
\twocolumnlayouttrue
\pagediagram
%\caption{Left-hand two-column page layout parameters} %\label{fig:pplt}
\end{figure}
\pdfliteral{0 0 1 rg}

\end{document}
Output
image

Commands

Paper Dimensions

\paperheightHeight of the phsical paper \paperwidthWidth of the physical paper

Geometrical Dimensions of Page Elements

\textheightHeight of type body \textwidthWidth of type body \headheightHeight of header \headsepUpward displacement of header above the body \topmarginThe extra vertical space added at the top of the header \footskipDownward displacement of the baseline of the footer below the body \marginparwidthWidth of maginal notes \marginparsepHorizontal displacement of margin notes away from the body. \oddsidemarginThe extra space added at the left of body for all odd-numbered pages of two-sided document or all pages of one-sided document \evensidemarginThe extra space added at the left of body for all even-numbered pages of two-sided document \marginparpushMinimal vertical space between two successive margin notes.

Geometrical Dimensions of Body elements

\columnwidthWidth of a single column in mlticolumn mode. (determined by \textwidth and \columnsep columnsepWidth of space between type columns in multicolumn mode. \columnsepruleWidth of a vertical line separating the two adjacent columns in multicolumn mode. (default=0pt, no visible rule) \linewidthWidth of the current text line. Usually equals \columnwidth but might get different values in eniviroments that change the margins.

Source and Reference


©sideway

ID: 220400027 Last Updated: 4/27/2022 Revision: 0


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339

Reference 79

Computer

Hardware 249

Software

Application 213

Digitization 32

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 429

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 34

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019