Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
The Swedish state paper format S5 has dimensions of 165 x 242 mm. It does not exist as a preset in the geometry package, neither s5paper or statsformat are acceptable options.
The answer is to manually specify the paper size to geometry:
Required, but never shown