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?
wikibook.cls:
\ProvidesClass{wikibook}[2013/06/30]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrbook}}
\ProcessOptions\relax
\LoadClass[paper=b4]{scrbook}
or alternative:
\ProvidesClass{wikibook}[2013/06/30]
\PassOptionsToPackage{b4paper}{typearea}
\LoadClass{scrbook}
test.tex:
\documentclass[12pt]{wikibook}
\usepackage{bookman}
\usepackage{lipsum}
\begin{document}
\chapter{First example}
\section{Section one}
\lipsum[2-8]
\chapter{Second example}
\section{Section two}
\end{document}
Generated pdf size is persistently a4.
paperand pass the value totypearea. – Marco Daniel Jun 30 '13 at 09:38\PassOptionsToPackage{paper=b4}{typearea} \LoadClass{scrbook}– karlkoeller Jun 30 '13 at 09:41typearewith\RequirePackage[b4paper]{geometry}after\LoadClass{scrartcls}and set the page parameters using\geometry. – egreg Jun 30 '13 at 10:36