Page Layout ⇒ Alter Paper Size from A4 to A5 Format
Alter Paper Size from A4 to A5 Format
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
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
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.mauz81 wrote:[…] In the preamble:
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions\relax
\ifx\pdfoutput\undefined
\LoadClass[dvips, a4paper]{book}
\else
\LoadClass[pdftex, a4paper]{book}
\fi
[…]
Code: Select all
\usepackage[a5paper]{geometry}
Code: Select all
texdoc geometry
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10