Gentoo Archives: gentoo-pms

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-pms@l.g.o
Subject: [gentoo-pms] [PATCH] Move some metadata information from style file to main TeX source.
Date: Wed, 04 Jul 2012 07:38:27
Message-Id: 20467.62178.223123.412720@a1i15.kph.uni-mainz.de
1 ---
2 pms.cls | 17 ++---------------
3 pms.tex | 15 +++++++++++++++
4 2 files changed, 17 insertions(+), 15 deletions(-)
5
6 diff --git a/pms.cls b/pms.cls
7 index db2fd48..dcce924 100644
8 --- a/pms.cls
9 +++ b/pms.cls
10 @@ -113,22 +113,11 @@
11 colorlinks=true,
12 citecolor=black,
13 linkcolor=black,
14 - pdftitle={Package Manager Specification},
15 - pdfauthor={Stephen P. Bennett, Ciaran McCreesh},
16 - pdfcreator={pdfLaTeX and hyperref},
17 - pdfsubject={Defining a feature set for package managers in the
18 - Gentoo world},
19 pdflang={en},
20 - pdfkeywords={Gentoo, package manager, specification},
21 + pdfcreator={pdfLaTeX and hyperref},
22 pdfproducer={pdfLaTeX and hyperref},
23 }
24 }
25 -% Some metadata needed for the title page generation
26 -\title{Package Manager Specification}
27 -\author{Stephen P. Bennett \\
28 - \href{mailto:spb@×××××××.org}{spb@×××××××.org} \and Ciaran
29 - McCreesh \\
30 - \href{mailto:ciaran.mccreesh@××××××××××.com}{ciaran.mccreesh@××××××××××.com}}
31 % Reads the last commit date from the Git repository and even succeeds
32 % when none is available
33 \ifthenelse{\equal{\VCDateISO}{}}
34 @@ -139,9 +128,7 @@
35 }
36
37 % Set page title
38 -\pagestyle{myheadings}
39 -\markboth{\scshape Package Manager Specification}{\scshape Package
40 - Manager Specification}
41 +\pagestyle{headings}
42 % This is some kind of hack. We set the proportions of the text area
43 % and then move it 30mm to the left to increase the right (outer)
44 % margin.
45 diff --git a/pms.tex b/pms.tex
46 index 4ada8ec..dd60225 100644
47 --- a/pms.tex
48 +++ b/pms.tex
49 @@ -1,5 +1,20 @@
50 \documentclass{pms}
51
52 +\title{Package Manager Specification}
53 +\author{%
54 + Stephen P. Bennett \\
55 + \href{mailto:spb@×××××××.org}{spb@×××××××.org}
56 + \and
57 + Ciaran McCreesh \\
58 + \href{mailto:ciaran.mccreesh@××××××××××.com}{ciaran.mccreesh@××××××××××.com}
59 +}
60 +\hypersetup{%
61 + pdftitle={Package Manager Specification},
62 + pdfauthor={Stephen P. Bennett, Ciaran McCreesh},
63 + pdfsubject={Defining a feature set for package managers in the Gentoo world},
64 + pdfkeywords={Gentoo, package manager, specification},
65 +}
66 +
67 \begin{document}
68 \maketitle
69
70 --
71 1.7.8.6