Here is my preamble :
Code: Select all
\documentclass[10pt,a4paper,extrafontsizes,twoside]{memoir}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{calayout}
Here is my calayout.sty:
Code: Select all
%% 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}}
% TOC
\setcounter{tocdepth}{3} % TOC down to...
\setlength{\cftbeforesectionskip}{5pt}
% Abstract
\renewcommand{\abstractnamefont}{\chaptitlefont}
\renewcommand{\abstractname}{Executive Summary}
Here is my cacommands.sty:
Code: Select all
%% cacommands.sty copyright Charles-Axel Dein 2009
%% Licensed under CC BY-SA
\ProvidesPackage{cacommands}[2009/04/20]
\usepackage{hyperref}
\newcommand{\email}[1]{\href{mailto:#1}{\nolinkurl{#1}}}
% Une commande sembleble à \rlap ou \llap, mais centrant son argument
\def\clap#1{\hbox to 0pt{\hss #1\hss}}%
% Une commande centrant son contenu (à utiliser en mode vertical)
\def\ligne#1{%
\hbox to \hsize{%
\vbox{\centering #1}}}%
% Une comande qui met son premier argument à gauche, le second au
% milieu et le dernier à droite, la première ligne ce chacune de ces
% trois boites coïncidant
\def\haut#1#2#3{%
\hbox to \hsize{%
\rlap{\vtop{\raggedright #1}}%
\hss
\clap{\vtop{\centering #2}}%
\hss
\llap{\vtop{\raggedleft #3}}}}%
% Idem, mais cette fois-ci, c'est la dernière ligne
\def\bas#1#2#3{%
\hbox to \hsize{%
\rlap{\vbox{\raggedright #1}}%
\hss
\clap{\vbox{\centering #2}}%
\hss
\llap{\vbox{\raggedleft #3}}}}%
% La commande \maketitle
\def\maketitlememoire{%
\calccentering{\unitlength}
\begin{adjustwidth*}{\unitlength}{-\unitlength}
%\thispagestyle{empty}\vbox to \vsize{%
\haut{}{\@blurb}{}
\vfill
\ligne{\Huge \@title}
\vspace{10mm}
\ligne{\Large \@author}
\vspace{1mm}\ligne{\small \email{\@emailaddress}}
\vspace{1cm}
\vfill
\vfill
\bas{}{\@location, \@date}{}
% }%
\end{adjustwidth*}
\cleardoublepage
}
% Les commandes permettant de définir la date, le lieu, etc.
\def\date#1{\def\@date{#1}}
\def\author#1{\def\@author{#1}}
\def\title#1{\def\@title{#1}}
\def\location#1{\def\@location{#1}}
\def\blurb#1{\def\@blurb{#1}}
\def\emailaddress#1{\def\@emailaddress{#1}}
% Valeurs par défaut
\date{\today}
\author{}
\title{}
\location{}
\blurb{}
\emailaddress{no email address}
I'm looking at what could change the default behaviour...