Page LayoutAlter Paper Size from A4 to A5 Format

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
mauz81
Posts: 4
Joined: Wed Aug 03, 2011 4:42 pm

Alter Paper Size from A4 to A5 Format

Post by mauz81 »

Dear all,

I've written my Thesis with MiKTeX 2.8 + TeXnicCenter V2 Alpha 3.

I'm trying to switch from the a4 format to the a5 format for the final version.

In the preamble:

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions\relax
\ifx\pdfoutput\undefined
\LoadClass[dvips, a4paper]{book}
\else
\LoadClass[pdftex, a4paper]{book}
\fi

if I subsititute 'a4paper' with 'a5paper', the output page size is a5, but the text size does not change, and is therefore exceeding the page size.

I've also tried to change the paper layout in the MikTeX setting, with no success.

The format is not mentioned in other location of the preamble, so I'm stuck.

Can you please give me some hint?

regards

Maurizio

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Alter Paper Size from A4 to A5 Format

Post by localghost »

mauz81 wrote:[…] In the preamble:

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions\relax
\ifx\pdfoutput\undefined
\LoadClass[dvips, a4paper]{book}
\else
\LoadClass[pdftex, a4paper]{book}
\fi

[…]
This code block is completely unnecessary nowadays because current versions of relevant package detect on their own which compiler engine is running. So driver options can be canceled. Replace the above code simple with the geometry package.

Code: Select all

\usepackage[a5paper]{geometry}
Details about package options can be found in the package manual. You have instant access on the command line.

Code: Select all

texdoc geometry
And next time please use the »Code« environment when posting code. It just keeps your post clear and legible if code is tagged as such.


Thorsten
Post Reply