PAPERSPECS(5)

πŸ“¦
version 2.2.8 Β· 3 versions
  • 2.2.8 Β· alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 2.3 Β· epel 9
  • 2.2.8 Β· nixpkgs unstable
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ“„ paperspecs πŸ“„

okay bestie, welcome to paperspecs from the File Formats Manual πŸŽ€ this is the file that tells your system what paper sizes exist, and honestly it's giving organization πŸ’…

πŸ’– NAME πŸ’–

paperspecs is the paper size specifications file. Basically, the list of paper sizes, all in one place ✨

🌸 DESCRIPTION 🌸

It's a CSV format list of the paper size specs used by paper. Each line has these fields, in this exact order:

NAME,WIDTH,HEIGHT,UNIT

For the units, you've got three options: pt (PostScript points), mm, and in πŸ“

⚠️ a size can be defined more than once, but only the first definition is normally used. So the user's paperspecs file wins over the system file (see FILES below) 😀 main character energy for your own list πŸ‘‘

Multiple definitions are also a thing, and it's lowkey genius. They let inexact definitions get looked up by size 🧠 For example, the LC_PAPER mechanism on some systems defines paper sizes in whole millimetres, so you end up with a Letter size that doesn't exactly match the inches definition. Iykyk πŸ™ˆ

πŸ¦‹ FILES πŸ¦‹

  • /etc/paperspecs β€” the system list of paper sizes.
  • $XDG_CONFIG_HOME/paperspecs β€” the user's own list of paper sizes. This gets prepended to the system list, so it goes first ✨

πŸ’€ BUGS πŸ’€

🚨 the CSV format is restricted, so quotes are not allowed. That means fields cannot be escaped. no cap, this one is a little rough 😭

🧚 CREDITS 🧚

The original list of paper names came from Ghostscript 3.68's gs_stadt.ps. Respect to the OG source 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Reuben Thomas, Reuben Thomas <rrt@sc3d.org>, the real one πŸ’œ

πŸ“ SEE ALSO πŸ“

  • paper(1) β€” the command that actually uses all of this. go check it out πŸ”₯

that's the tea, bestie 🫢 PAPERSPECS(5), last updated 11 January 2014. stay iconic πŸ’…πŸŒˆ

πŸ“¦ where this page comes from