When creating a LaTeX document, you need to set a document class. Each class in LaTeX, such as ‘article’ or ‘report’, has a default setting for its paper size. And if you need to change this, you will need to use the document class options. Let’s take a look at how this works.
First, let’s look at how to set document class options in LaTeX. To begin with, you need to set the document class with the following tag:
By itself, this will create a document using the default settings for that class. To adjust these settings, you will need extra markup in square brackets:
Your choices here will then be applied to the whole document. As shown above, you can also change multiple document elements by adding a comma between each option. And one thing you can change here is the paper size.
Depending on the distribution you’re using, the default paper size for most LaTeX templates will be either letter paper (US) or A4 (Europe). This should be fine in most cases, but you can also specify a paper size when you set the document class. For example, to use A5-size pages, we would write:
Subscribe to our newsletter and get writing tips from our editors straight to your inbox.
Subscribe to Beyond the Margins and get your monthly fix of editorial strategy, workflow tips, and real-world examples from content leaders.
Δ
All versions of LaTeX offer several options here as standard:
To use any of these paper sizes, simply add the required markup (as shown in square brackets) when you set the document class. These settings should cover most situations. But if you need more control over page size, you can download the LaTeX geometry package.
The geometry package offers a range of extra ways to customise your global page options in LaTeX, including other paper sizes. To use these, you will need a new line of markup after the ‘documentclass’ line:
Here, for instance, the second line tells the geometry package to set the paper size to A1. You can do this for most standard paper sizes, including A, B and C series paper sizes (e.g. A1, B4, C5); and ANSI paper sizes.
So no matter what kind of document you’re creating, you should find a setting in the geometry package that will meet your needs.
3-minute read
Gerunds are verb–noun hybrids that can trip up even experienced writers. They look like verbs...
4-minute read
Commas are small but mighty pieces of punctuation. Their placement can significantly impact the meaning...
The dos and don’ts of commas can be confusing, especially when it comes to conjunctions...
The passive voice is one of the most challenging aspects of writing to identify and...
Using punctuation with parentheses isn’t always straightforward. Should you place a comma before or after...
6-minute read
The ability to identify tone is an essential skill, both in reading or analyzing text...
We use cookies to give you the best possible experience with Proofed. Some are essential for this site to function; others help us understand how you use the site, so we can improve it. We may also use cookies for targeting purposes.