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
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
- 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