Page LayoutPage Size Formatting

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
theiliad2000x
Posts: 4
Joined: Sat Aug 22, 2009 5:17 pm

Page Size Formatting

Post by theiliad2000x »

Thank you in advance for your help!

I would like to know how I can generate a PDF file from latex that is not 8.5x11(seems to be set to this automatically), but is 5.25x8 (inches) in size. I mean, specifically this is the page size I'll be printing on, hence margins adjusting negatively away from the standard page size (which is what I have now below), are no good. In addition, I would need a .1 in margin on all four sides once the correct page size is set up. I would greatly appreciate if someone could help me with this. Thank you!

Code: Select all

\documentclass[titlepage]{book}
\usepackage{setspace}
\doublespacing
\pagestyle{plain}
\usepackage[hmargin=1.625in,vmargin=1.5in]{geometry}
\usepackage{ulem}
\setlength{\parindent}{.5cm}
\addvspace{1cm}
\begin{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Page Size Formatting

Post by gmedina »

Hi,

using the geometry package you can explicitly set paperwidth and paperheight; take a look at the following example:

Code: Select all

\documentclass{book}
\usepackage[paperwidth=5.25in,paperheight=8in,margin=1in]{geometry}
\usepackage{lipsum}% just to automatically generate some text

\begin{document}
\lipsum[1-20]
\end{document}
Please refer to the package documentation to see all the options it offers to customize the page layout.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
theiliad2000x
Posts: 4
Joined: Sat Aug 22, 2009 5:17 pm

Re: Page Size Formatting

Post by theiliad2000x »

Excellent! Thank you very much!
Post Reply