diff options
author | Christian Faulhammer <fauli@gentoo.org> | 2009-04-12 19:31:34 +0200 |
---|---|---|
committer | Ciaran McCreesh <ciaran.mccreesh@googlemail.com> | 2009-04-23 23:56:40 +0100 |
commit | 149bd8434af4a34af963b4bf381dc151b2edfd69 (patch) | |
tree | 0a168bd55e1d2c4137bf1edd67d9e1de701beaab /pms.tex | |
parent | Set text size manually to generate larger right margin (diff) | |
download | pms-149bd8434af4a34af963b4bf381dc151b2edfd69.tar.gz pms-149bd8434af4a34af963b4bf381dc151b2edfd69.tar.bz2 pms-149bd8434af4a34af963b4bf381dc151b2edfd69.zip |
Factor out pms.cls for better readability of source
Use small capitals for references and margin labels.
Go back to report class (we want one-sided layout).
Diffstat (limited to 'pms.tex')
-rw-r--r-- | pms.tex | 132 |
1 files changed, 1 insertions, 131 deletions
@@ -1,134 +1,4 @@ -\documentclass[a4paper]{book} -\input{vc} -% Definition of fonts, choose T1 encoding for fonts -\usepackage[T1]{fontenc} -% -% algorithmic and algorithm to be loaded last to avoid failures -\usepackage{appendix, - booktabs, - color, - enumitem, - float, - fullpage, - graphicx, - hyperref, - ifthen, - longtable, - paralist, - parskip, - verbatim, - algorithm, - algorithmic, - lscape, - marginnote -} -\usepackage[orig,english]{isodate} -\usepackage{typearea} -\usepackage[position=top]{caption} -\usepackage[utf8]{inputenc} - -\newboolean{TEX4HT-HACKS} -\ifx\HCode\undefined - \usepackage{mathptmx, - courier - } - \usepackage[scaled=.90]{helvet} - \setboolean{TEX4HT-HACKS}{false} -\else - \setboolean{TEX4HT-HACKS}{true} -\fi - -\floatstyle{plaintop} -\newfloat{listing}{tbp}{lol}[chapter] -\floatname{listing}{Listing} -\newcommand{\listoflistings}{\listof{listing}{Listings}} - -\bibliographystyle{plainurl} - -\renewcommand{\t}[1]{\texttt{#1}} -\renewcommand{\i}[1]{\textit{#1}} -\newcommand{\e}[1]{\emph{#1}} -\renewcommand{\b}[1]{\textbf{#1}} -\newcommand{\note}[1]{\paragraph{Note:} #1} - -\newcommand{\featureref}[1]{\e{#1} on page~\pageref{feat:#1}} -\newcommand{\compactfeatureref}[1]{#1~p\pageref{feat:#1}} -\newcommand{\featurelabel}[1]{\marginnote{\framebox{#1}}\label{feat:#1}} - -\definecolor{deepblue}{rgb}{0.0, 0.2, 0.7} -\definecolor{deeppurple}{rgb}{0.7, 0.0, 0.8} - -\newboolean{ENABLE-ALL-OPTIONS} -\newboolean{ENABLE-KDEBUILD} - -%%% Enable the below option if you'd like to see both sides of KDEBUILD conditionals shown in -%%% different colours. Disable it to either fully enable or fully disable KDEBUILD. -%%% Not compatible with HTML output. -\setboolean{ENABLE-ALL-OPTIONS}{false} - -%%% Enable the below if you'd like to see KDEBUILD things. -\setboolean{ENABLE-KDEBUILD}{true} - -\ifthenelse{\boolean{ENABLE-ALL-OPTIONS}\and\not\boolean{TEX4HT-HACKS}} -{ - \newcommand{\IFKDEBUILDELSE}[2]{{\def\mycolour{\color{deepblue}}\mycolour #1}{\def\mycolour{\color{deeppurple}}\mycolour #2}} - \newcommand{\IFANYKDEBUILDELSE}[2]{#1} - \newcommand{\IFKDEBUILDCOLOUR}[1]{{\def\mycolour{\color{deepblue}}\mycolour #1}} -}{ - \ifthenelse{\boolean{ENABLE-KDEBUILD}} - { - \newcommand{\IFKDEBUILDELSE}[2]{#1} - \newcommand{\IFANYKDEBUILDELSE}[2]{#1} - \newcommand{\IFKDEBUILDCOLOUR}[1]{#1} - }{ - \newcommand{\IFKDEBUILDELSE}[2]{#2} - \newcommand{\IFANYKDEBUILDELSE}[2]{#2} - \newcommand{\IFKDEBUILDCOLOUR}[1]{#1} - } -} - -\newenvironment{centertable}[1]% -{ - \begin{table} - \ifx\mycolour\undefined\else\mycolour\fi - \centering - \caption{#1} - }{ - \end{table} -} - -\hypersetup{% - urlcolor=black, - colorlinks=true, - citecolor=black, - linkcolor=black, - pdftitle={Package Manager Specification}, - pdfauthor={Stephen P. Bennett, Ciaran McCreesh}, - pdfcreator={pdfLaTeX and hyperref}, - pdfsubject={Defining a feature set for package managers in the - Gentoo world}, - pdflang={en}, - pdfkeywords={Gentoo, package manager, specification}, - pdfproducer={pdfLaTeX and hyperref}, -} -\title{Package Manager Specification} -\author{Stephen P. Bennett\\\url{spb@exherbo.org} -\and Ciaran McCreesh\\\url{ciaran.mccreesh@googlemail.com}} -% Make the build succeed even when no Git repository is available -\ifthenelse{\equal{\VCDateISO}{}} -{ - \date{Generated on: \today} -}{ - \date{\printdate{\VCDateISO}} -} - -\pagestyle{myheadings} -\markboth{\scshape Package Manager Specification}{\scshape Package - Manager Specification} -% This is some kind of hack. We set the proportions of the text area -% and then move it 20mm to the left to increase the right (outer) -% margin. -\areaset[-20mm]{400pt}{700pt} +\documentclass{pms} \begin{document} \maketitle |