%% calayout.sty \copyright Charles-Axel Dein 2009
%% Licensed under CC BY-SA
\ProvidesPackage{calayout}[2009/04/20]
% PACKAGES
\usepackage{cacommands}
\usepackage{indentfirst} % ident on first line of par, even after headings
\usepackage{url}
\usepackage{hyperref} % create links in the document
\usepackage{textcomp}
\usepackage[T1]{fontenc}
\usepackage{graphicx} % to insert images
% LAYOUT
\settrimmedsize{297mm}{210mm}{*}
\setlength{\trimtop}{0pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\settypeblocksize{634pt}{448.13pt}{*}
\setulmargins{4cm}{*}{*}
\setlrmargins{*}{*}{1.5}
\setmarginnotes{17pt}{51pt}{\onelineskip}
\setheadfoot{\onelineskip}{2\onelineskip}
\setheaderspaces{*}{2\onelineskip}{*}
\checkandfixthelayout
\renewcommand{\rmdefault}{bch}
\setsecnumdepth{paragraph} % Numbering down to...
%%% HEADERS & FOOTERS
\pagestyle{ruled} % try also: empty , plain , headings , ruled , Ruled , companion
\chapterstyle{section}
\renewcommand*\thechapter{\Alph{chapter}.}
\renewcommand{\thesection}{\Roman{section}}
\renewcommand{\thesubsection}{\arabic{subsection}}
\renewcommand{\thesubsubsection}{\arabic{subsection}.\arabic{subsubsection}}
\renewcommand{\theparagraph}{\arabic{subsection}.\arabic{subsubsection}.\arabic{paragraph}}