Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference: {hsize, linewidth, textwidth, pagewidth}?

Tags:

latex

What is the difference between \hsize, \linewidth, \textwidth and \pagewidth? Which are affected by environments (like an enumeration or a minipage)? Did I miss any useful width lengths?

like image 969
Geoff Avatar asked Jun 24 '10 14:06

Geoff


People also ask

What is the difference between Textwidth and linewidth?

\textwidth is the normal width of the text on a page. It should generally be changed only in the preamble. \linewidth is the width of lines in the current environment. Normally equal to \textwidth, it may be different within an environment such as list or quote environments.

What is default Textwidth LaTeX?

LaTeX's default is that \oddsidemargin is 40% of the difference between \paperwidth and \textwidth , and \evensidemargin is the remainder.

What is linewidth in overleaf?

\linewidth is a variable that represents the current size of the line of text, whether inside a column or a minipage or a list.

How do I change Textwidth in LaTeX?

To change a LaTeX page-style parameter, you use the \setlength command in the preamble of your LaTeX source file. For example, if you want the body of the text to be 14 centimeters wide, you type \setlength{\textwidth}{14cm} in the preamble of your LaTeX source file.


1 Answers

There are many more lengths useful to layout in LaTeX. The ones related to "page" layout are mostly here:

http://en.wikibooks.org/wiki/LaTeX/Page_Layout

\linewidth is width of text in current environment.

I myself am not sure about how \hsize relates to the others, although I think it's supposed to be the width of text on the page.

like image 124
Herbert Sitz Avatar answered Sep 26 '22 22:09

Herbert Sitz