summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2017-05-20 08:13:51 +0200
committerUlrich Müller <ulm@gentoo.org>2017-05-20 08:13:51 +0200
commit707b5b1bba48c9decfd96b808a2ed80758a5b709 (patch)
treed5af6198261e8999c12b7d701224f2686a89b7dd /pms.cls
parentpms.cls: More uniform formatting of captions. (diff)
downloadpms-707b5b1bba48c9decfd96b808a2ed80758a5b709.tar.gz
pms-707b5b1bba48c9decfd96b808a2ed80758a5b709.tar.bz2
pms-707b5b1bba48c9decfd96b808a2ed80758a5b709.zip
pms.cls: Specify page layout with geometry.sty.
This is more flexible than typearea.sty because it allows to specify width of margins directly.
Diffstat (limited to 'pms.cls')
-rw-r--r--pms.cls12
1 files changed, 6 insertions, 6 deletions
diff --git a/pms.cls b/pms.cls
index 35e969d..e66838f 100644
--- a/pms.cls
+++ b/pms.cls
@@ -12,6 +12,11 @@
\LoadClass{\ClassToLoad}
\PassOptionsToPackage{T1}{fontenc}
\PassOptionsToPackage{orig,english}{isodate}
+% Dimensions of the text area. Define a narrow left margin to make
+% room for margin notes in the right (outer) margin
+\PassOptionsToPackage{textwidth=400pt,textheight=700pt,
+ left=20mm,marginparsep=10pt,marginparwidth=40mm,
+ vmarginratio=1:2,includehead}{geometry}
% Position caption of float environments at the top
\PassOptionsToPackage{position=top,labelfont=bf}{caption}
% Enable UTF-8 input encoding
@@ -24,7 +29,7 @@
\RequirePackage{%
fontenc, % Load extended font sets
isodate, % Date formatting and conversions
- typearea, % Set page layout
+ geometry, % Set page layout
inputenc, % Allow input methods apart from ASCII
booktabs, % Nicer formatting of tables
ifthen, % Comfortable conditional routines
@@ -158,11 +163,6 @@
% Set page title
\pagestyle{headings}
-% This is some kind of hack. We set the proportions of the text area
-% and then move it 30mm to the left to increase the right (outer)
-% margin.
-\areaset[-30mm]{400pt}{700pt}
-\setlength{\marginparwidth}{40mm}
% To find everywhere that needs updating when we add an EAPI
\newcommand{\CurrentEAPIIs}[1]{\def\TheCurrentEAPI{#1}}