I want to create a document class based on a KOMA-Script class. First I would like change paper size, which would be defined in cls file. I see that similar problem was questioned in here, but without clear solution. Has anyone of you an example of own document class based on a scrbook?



or alternative:



   \chapter{First example} 
     \section{Section one}    
   \chapter{Second example} 
     \section{Section two} 

Generated pdf size is persistently a4.

  • You can define your own option paper and pass the value to typearea. Jun 30, 2013 at 9:38
  • 2
    Or, even better, \PassOptionsToPackage{paper=b4}{typearea} \LoadClass{scrbook} Jun 30, 2013 at 9:41
  • 1
    I try karlkoeller recomendations, but without any effects. Generated pdf size is persistently a4. :-(
    – JardaFait
    Jun 30, 2013 at 10:16
  • Override typeare with \RequirePackage[b4paper]{geometry} after \LoadClass{scrartcls} and set the page parameters using \geometry.
    – egreg
    Jun 30, 2013 at 10:36

1 Answer 1


Package typearea does support ISO paper sizes including the B series. But the package does not automatically tell the paper size to the output driver. Then the layout is calculated for the specified paper size, but the media size of the PDF file gets the default size of the output driver. Package typearea provides option pagesize for telling the paper size to the output driver, see "Table 2.6.: Output driver for option pagesize=output driver" of KOMA-Script's documentation.

Example for the class file:

  • jafan wanted to use b4 paper. Using such a format you get a warning from typearea package. Do you know why? Jun 30, 2013 at 14:36
  • @karlkoeller: Which warning? Jun 30, 2013 at 14:44
  • Package typearea Warning: Bad type area settings! Jun 30, 2013 at 14:45
  • @karlkoeller: I cannot reproduce it, because I do not get any warning (except for Overfull \hbox messages). Jun 30, 2013 at 15:30
  • Is it somehow possible to take an option such as paper=a5 given to my own class, pass this option to typearea and all other options to the koma script class?
    – Dan
    Sep 18, 2013 at 21:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .