From 1dbdbd7f3293da8913ada5621f9b9b8a5fa8e672 Mon Sep 17 00:00:00 2001 From: spalax Date: Sun, 10 Mar 2013 14:35:38 +0100 Subject: [PATCH] move LaTeX geometry package from base class to templates --- templates/ancient.tmpl | 11 +++++++++++ templates/minimal.tmpl | 11 +++++++++++ templates/patacrep.tmpl | 11 +++++++++++ tex/crepbook.cls | 15 +-------------- 4 files changed, 34 insertions(+), 14 deletions(-) diff --git a/templates/ancient.tmpl b/templates/ancient.tmpl index 1575f198..364a6411 100644 --- a/templates/ancient.tmpl +++ b/templates/ancient.tmpl @@ -88,6 +88,17 @@ \pagestyle{empty} +% Customization of the page appearance +\RequirePackage[ + a4paper % paper size + ,includeheadfoot % include header and footer into text size + ,hmarginratio=1:1 % ratio between inner and outer margin (default) + ,outer=1.8cm % outer margin (right) + ,vmarginratio=1:1 % ratio between top and bottom margin + ,bmargin=1.3cm % bottom margin +% ,bindingoffset=1.7cm % space reserved to bound pages together + ]{geometry} + \begin{document} \maketitle diff --git a/templates/minimal.tmpl b/templates/minimal.tmpl index 3bdcd58a..f3f7f688 100644 --- a/templates/minimal.tmpl +++ b/templates/minimal.tmpl @@ -52,6 +52,17 @@ \nosongnumbers \pagestyle{empty} +% Customization of the page appearance +\RequirePackage[ + a4paper % paper size + ,includeheadfoot % include header and footer into text size + ,hmarginratio=1:1 % ratio between inner and outer margin (default) + ,outer=1.8cm % outer margin (right) + ,vmarginratio=1:1 % ratio between top and bottom margin + ,bmargin=1.3cm % bottom margin +% ,bindingoffset=1.7cm % space reserved to bound pages together + ]{geometry} + \begin{document} \begin{songs}{} diff --git a/templates/patacrep.tmpl b/templates/patacrep.tmpl index 9b78917b..cd149748 100644 --- a/templates/patacrep.tmpl +++ b/templates/patacrep.tmpl @@ -86,6 +86,17 @@ \pagestyle{empty} +% Customization of the page appearance +\RequirePackage[ + a4paper % paper size + ,includeheadfoot % include header and footer into text size + ,hmarginratio=1:1 % ratio between inner and outer margin (default) + ,outer=1.8cm % outer margin (right) + ,vmarginratio=1:1 % ratio between top and bottom margin + ,bmargin=1.3cm % bottom margin +% ,bindingoffset=1.7cm % space reserved to bound pages together + ]{geometry} + \begin{document} % translate default title diff --git a/tex/crepbook.cls b/tex/crepbook.cls index b61d24ac..7bd8c952 100644 --- a/tex/crepbook.cls +++ b/tex/crepbook.cls @@ -54,7 +54,7 @@ \ProcessOptions % Base class -\LoadClass[a4paper]{article} +\LoadClass{article} % Main packages \RequirePackage{graphicx,xcolor} @@ -335,19 +335,6 @@ \renewcommand{\idxheadfont}{\sffamily\it\LARGE} \renewcommand{\idxrefsfont}{\bfseries} -% -% Customization of the page appearance -% -\RequirePackage[ - a4paper % paper size - ,includeheadfoot % include header and footer into text size - ,hmarginratio=1:1 % ratio between inner and outer margin (default) - ,outer=1.8cm % outer margin (right) - ,vmarginratio=1:1 % ratio between top and bottom margin - ,bmargin=1.3cm % bottom margin -% ,bindingoffset=1.7cm % space reserved to bound pages together - ]{geometry} - % Paragraph indentation space \setlength{\parindent}{0.3cm}