From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D11E0139694 for ; Sun, 21 May 2017 17:48:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 39A6E21C168; Sun, 21 May 2017 17:47:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 190C721C168 for ; Sun, 21 May 2017 17:47:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E0EF63416C4 for ; Sun, 21 May 2017 17:47:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 75700745C for ; Sun, 21 May 2017 17:47:49 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1495260831.707b5b1bba48c9decfd96b808a2ed80758a5b709.ulm@gentoo> Subject: [gentoo-commits] proj/pms:master commit in: / X-VCS-Repository: proj/pms X-VCS-Files: pms.cls X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 707b5b1bba48c9decfd96b808a2ed80758a5b709 X-VCS-Branch: master Date: Sun, 21 May 2017 17:47:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 04048f6e-bffe-4d73-aa00-8317672df4fa X-Archives-Hash: a2cc6524ff4ee48c194d0fd5b4278b98 commit: 707b5b1bba48c9decfd96b808a2ed80758a5b709 Author: Ulrich Müller gentoo org> AuthorDate: Sat May 20 06:13:51 2017 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sat May 20 06:13:51 2017 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=707b5b1b pms.cls: Specify page layout with geometry.sty. This is more flexible than typearea.sty because it allows to specify width of margins directly. pms.cls | 12 ++++++------ 1 file 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}}