1% 2% Copyright 2017, Data61 3% Commonwealth Scientific and Industrial Research Organisation (CSIRO) 4% ABN 41 687 119 230. 5% 6% This software may be distributed and modified according to the terms of 7% the BSD 2-Clause license. Note that NO WARRANTY is provided. 8% See "LICENSE_BSD2.txt" for details. 9% 10% @TAG(DATA61_BSD) 11% 12 13% disy.sty 14% 15% Document style for reports by the UNSW Distributed Systems and 16% Operating Systems (DiSy) group. 17% 18% Uses Andrew O'Brien's fancy title page... 19% 20% Written 2000-08-12 by Gernot Heiser <gernot@unsw.edu.au> 21% 22% $Id: disy.sty,v 1.2 2009-02-04 03:13:15 ikuz Exp $ 23 24% OPTIONS: 25% color: use colour logos 26% cmyk: will generate cmyk colours rather than rgb colours 27% this may prove more reliable on some printers 28% but is inclined to look odd on monitors 29% nicta: use NICTA logo besides UNSW 30% nictaonly: use NICTA logo but no UNSW 31% 32% COMMANDS: 33% \AuthorEmail Author's email address (default: disy@cse) 34 35\ProvidesPackage{disy} 36\RequirePackage{graphicx} 37\RequirePackage{url} 38\RequirePackage{color} 39 40\DeclareOption{color}{\Colortrue} 41\DeclareOption{colour}{\Colortrue} 42\DeclareOption{cmyk}{\CMYKtrue} 43\DeclareOption{nicta}{\NICTAtrue} 44\DeclareOption{nictaonly}{\NICTAtrue\UNSWfalse} 45 46\newif\ifColor \Colorfalse 47\newif\ifNICTA \NICTAfalse 48\newif\ifCMYK \CMYKfalse 49\newif\ifUNSW \UNSWtrue % for historic reasons 50 51\ProcessOptions 52 53\ifColor 54 \ifCMYK 55 \definecolor{nictablue}{cmyk}{1.0,0.18,0.0,0.51} 56 \definecolor{nictagreen}{cmyk}{1.0,0.0,0.69,0.43} 57 \else 58 \definecolor{nictablue}{rgb}{.000,.348,.508} 59 \definecolor{nictagreen}{rgb}{.020,.426,.328} 60 \fi 61\else 62 \definecolor{nictablue}{cmyk}{0,0,0,1} % black 63 \definecolor{nictagreen}{cmyk}{0,0,0,1} % black 64\fi 65\newif\ifHave@HyperRef\Have@HyperReffalse 66 67\AtBeginDocument{\@ifpackageloaded{hyperref}{\Have@HyperReftrue}{}} 68 69\newcommand{\AuthorEmail}[1]{\def\AuthorEmailString{#1}} 70 71\newcommand{\CrestFileName}{\ifColor unicrest-colour\else unicrest-screen\fi} 72\AuthorEmail{disy@cse.unsw.edu.au} 73 74\newlength{\centeroffset} 75\setlength{\centeroffset}{-0.5\oddsidemargin} 76\addtolength{\centeroffset}{0.5\evensidemargin} 77 78\def\maketitle{ 79 % to suppress overfull bars in ``draft'' mode: 80 \newlength{\saveOverfullRule} 81 \setlength{\saveOverfullRule}{\overfullrule} 82 \setlength\overfullrule{0pt} 83 84 \thispagestyle{empty} 85 \vspace*{\stretch{1}} 86 \noindent\hspace*{\centeroffset} 87 88 \begin{minipage}{\textwidth}\flushright% 89 \urlstyle{sf}% 90 \raisebox{34mm}[0pt][0pt]{% 91 \newcommand{\LogoW}{21mm}% 92 \newlength{\ERTOSw}% 93 %\setlength{\ERTOSw}{\textwidth}% 94 %\addtolength{\ERTOSw}{-\LogoW}\addtolength{\ERTOSw}{-2em}% 95 \settowidth{\ERTOSw}{{\sf\large https://ts.data61.csiro.au/projects/TS/}}% 96 %\settowidth{\ERTOSw}{{\sf\large Operating Systems Group}}% 97 \newcommand{\NICTAlogo}{\includegraphics[width=\LogoW]{figs/\LogoFileName}}% 98 \noindent\sf% 99 \begin{minipage}[b]{\textwidth}\sf\large% 100 \hspace*{-10mm}% 101 \ifNICTA% 102 \color{nictablue}% 103 \begin{minipage}[b]{\ERTOSw}\urlstyle{sf}% 104 Data61 Trustworthy Systems\\ 105 \url{https://ts.data61.csiro.au/projects/TS/}\\~ 106 \end{minipage} 107 \else~ 108 \fi% 109 \end{minipage}% 110 \hspace*{-4mm}% 111 }% 112 % 113 \flushright 114 {\Huge\bfseries 115 \@title\\} 116 \vspace*{\stretch{2}} 117 \noindent\rule[-1ex]{\textwidth}{5pt}\\[2.5ex] 118 {\Large \bfseries \@author}\\ 119 \ifUNSW 120 \vspace{2ex} 121 \else 122 \urlstyle{sf} 123 \ifHave@HyperRef 124 \url{\AuthorEmailString}\\[2ex] 125 \else 126 \AuthorEmailString\\[2ex] 127 \fi 128 \fi 129 {\sf \hfill{\Large \@date}}\\[2ex] 130 \end{minipage} 131 132 \vspace{\stretch{1}} 133 \noindent\hspace*{\centeroffset}\begin{minipage}{\textwidth} 134 \flushright 135 136 \end{minipage} 137 \vspace{\stretch{2}} 138 139 \vfill 140 141 \begin{minipage}{\textwidth} 142 \flushright 143 {\noindent\sf% 144 \ifUNSW 145 \newcommand{\DiSyCrest} 146 {\includegraphics[height=25mm,clip]{imgs/\CrestFileName}}% 147 \newlength{\DiSyCrestwdth}\settowidth{~\DiSyCrestwdth}{\DiSyCrest}% 148 \newlength{\DiSyFtwdth}% 149 \setlength{\DiSyFtwdth}{\textwidth}% 150 \addtolength{\DiSyFtwdth}{-\DiSyCrestwdth}% 151 \addtolength{\DiSyFtwdth}{-1em}% 152 \begin{minipage}[b]{0.7\textwidth}\flushright 153 \urlstyle{sf} 154 \ifHave@HyperRef 155 \url{\AuthorEmailString}\\ 156 \else 157 \AuthorEmailString\\ 158 \fi 159 \url{http://www.cse.unsw.edu.au/~disy/}\\ 160 Operating Systems and Distributed Systems Group\\ 161 School of Computer Science and Engineering\\ 162 The University of New South Wales\\ 163 UNSW Sydney 2052, Australia%\vspace*{0.6ex}% 164 \end{minipage}% 165 \hspace{1em}\DiSyCrest% 166 \fi 167 } 168 \end{minipage} 169 170 \clearpage 171 % reset overfull rule 172 \setlength{\overfullrule}{\saveOverfullRule} 173}%\maketitle 174