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?
\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.
LaTeX's default is that \oddsidemargin is 40% of the difference between \paperwidth and \textwidth , and \evensidemargin is the remainder.
\linewidth is a variable that represents the current size of the line of text, whether inside a column or a minipage or a list.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With