PAPERSIZE(5)
๐ PAPERSIZE(5) โ the one and only File Formats Manual glow-up ๐
okay bestie, sit down, hydrate, because we're about to talk about the literal tiniest, cutest, most chaotic config file on your whole system: papersize. yes it's a File Formats Manual page. yes it's five lines long. and yes it's still gonna eat. ๐
โจ NAME โจ
papersize โ specify preferred paper size ๐
like. that's it. that's the whole job. she tells everyone what size paper you want. icon behaviour.
๐ SYNOPSYS ๐
/etc/papersize
(side note: yes, the section is spelled SYNOPSYS in the original and we are respecting our elders ๐
)
๐ DESCRIPTION ๐
so the papersize file is literally just there to say which paper size you prefer, and the commands and programs that generate documents go peek at it. that's the whole vibe. one file, one job, main character energy. โจ
and the format? babygirl it is extremely simple:
- whitespace is ignored ๐ซถ
- anything starting with
#is ignored (hello comments, we love you) - the name of the paper is the first string found
- the case in the name of the paper does not import โ wait, matter โ though pls do check the CAVEATS section, because it's not always that simple ๐ญ
๐ PAPER NAMES ๐
these are the names programs commonly understand, no cap:
a3, a4, a5, b5, letter, legal, executive, note and 11x17
and then there are the additional names you might run into out in the wild, and there are a LOT of them, she's got range:
a0, a1, a2, a6, a7, a8, a9, a10, b0, b1, b2, b3, b4, tabloid, statement, note, halfletter, halfexecutive, folio, quarto, ledger, archA, archB, archC, archD, archE, flsa, flse, csheet, dsheet, esheet and 10x14
(and yes note really does show up in both lists, that's not me being messy, that's just the original being iconic ๐ง)
๐ฆ how the override chain works ๐ฆ
the value in the papersize file can get overridden, and the lookup order is:
- the
PAPERSIZEenvironment variable ๐ - then the contents of the file specified by the
PAPERCONFenvironment variable ๐
and if the papersize file doesn't exist at all? programs using the paper library just default to using letter as a fall-back value. safety net, bestie. ๐
๐ CAVEATS ๐
okay this is the important part, do NOT scroll past, I'm serious.
this manual page documents the format of the papersize file as read by the libpaper library. that's the key detail.
some programs that read this file do not yet use the library, and those programs may have trouble ignoring whitespace and comments in the file. they may also require that the paper names use a specific capitalization. ๐ญ
so like. lowercase a4 might slay in one program and get fully rejected by another. it's giving "not all readers are built the same." write carefully, check your case, know your audience. periodt. ๐
๐ DOCUMENTATION ๐
Yves Arrouye <arrouye@debian.org> ๐
๐ฅ SEE ALSO ๐ฅ
and that's the page, bestie! ๐ go forth and tell your system what size your paper is. and hey โ this was PAPERSIZE(5) from the File Formats Manual, so if you see that same title floating at the bottom of a terminal near you, that's just her signing off. mwah. ๐ซถ๐โจ
๐ฆ where this page comes from
- debian bookworm: libpaper1 1.1.29
- ubuntu noble: libpaper1 1.1.29build1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms