Debian Codegraph @

texmf-dist/source/latex/uwa-colours/uwa-colours.dtx

raw
1 % \iffalse meta-comment
2 % Copyright 2019, 2021 Anthony Di Pietro
3 %
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License, either version 1.3
6 % of this license or (at your option) any later version.
7 % The latest version of this license is in
8 % http://www.latex-project.org/lppl.txt
9 % and version 1.3 or later is part of all distributions of LaTeX
10 % version 2005/12/01 or later.
11 %
12 % This work has the LPPL maintenance status `maintained'.
13 %
14 % The Current Maintainer of this work is Anthony Di Pietro.
15 %
16 % This work consists of the files uwa-colours.dtx and uwa-colours.ins
17 % and the derived file uwa-colours.sty.
18 % \fi
19 %
20 % \iffalse
21 %<*driver>
22 \ProvidesFile{uwa-colours.dtx}
23 %</driver>
24 %<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
25 %<package>\ProvidesPackage{uwa-colours}
26 %<*package>
27 [2019/08/31 1.0.0 UWA Colours]
28 \RequirePackage[hyperref]{xcolor}
29 %</package>
30 %
31 %<*driver>
32 \documentclass[a4paper]{ltxdoc}
33 \usepackage{hypdoc}
34 \usepackage{uwa-colours}[2019/08/31]
35 \DisableCrossrefs
36 \CodelineIndex
37 \RecordChanges
38 \begin{document}
39 \DocInput{uwa-colours.dtx}
40 \end{document}
41 %</driver>
42 % \fi
43 %
44 % \CheckSum{21}
45 %
46 % \CharacterTable
47 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
48 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
49 % Digits \0\1\2\3\4\5\6\7\8\9
50 % Exclamation \! Double quote \" Hash (number) \#
51 % Dollar \$ Percent \% Ampersand \&
52 % Acute accent \' Left paren \( Right paren \)
53 % Asterisk \* Plus \+ Comma \,
54 % Minus \- Point \. Solidus \/
55 % Colon \: Semicolon \; Less than \<
56 % Equals \= Greater than \> Question mark \?
57 % Commercial at \@ Left bracket \[ Backslash \\
58 % Right bracket \] Circumflex \^ Underscore \_
59 % Grave accent \` Left brace \{ Vertical bar \|
60 % Right brace \} Tilde \~}
61 %
62 %
63 % \changes{v1.0}{2019/08/31}{Initial version}
64 %
65 % \GetFileInfo{uwa-colours.dtx}
66 %
67 % \DoNotIndex{\newcommand,\newenvironment}
68 %
69 % \makeatletter
70 % \c@IndexColumns = 2
71 % \def\SpecialIndex@#1#2{%
72 % \@SpecialIndexHelper@#1\@nil
73 % \def\@tempb{ }%
74 % \ifcat \@tempb\@gtempa
75 % \special@index{\quotechar\space\actualchar
76 % \string\verb\quotechar*\verbatimchar
77 % \quotechar\quotechar\space\verbatimchar#2}%
78 % \else
79 % \def\@tempb##1##2\relax{\ifx\relax##2\relax
80 % \def\@tempc{\special@index{\quotechar##1\actualchar
81 % \string\verb\quotechar*\verbatimchar
82 % \quotechar\quotechar##1\verbatimchar#2}}%
83 % \else
84 % \def\@tempc{\special@index{##1##2\actualchar
85 % \string\verb\quotechar*\verbatimchar
86 % ##1##2\verbatimchar#2}}%
87 % \fi}%
88 % \expandafter\@tempb\@gtempa\relax
89 % \@tempc
90 % \fi}
91 % \makeatother
92 %
93 % \newlength{\sampleheight}
94 % \newlength{\samplewidth}
95 % \newlength{\samplevspace}
96 % \newlength{\samplehoffset}
97 % \newlength{\samplehspace}
98 % \setlength{\sampleheight}{2\baselineskip}
99 % \setlength{\samplewidth}{10em}
100 % \setlength{\samplevspace}{2.75\baselineskip}
101 % \setlength{\samplehoffset}{-2.5em}
102 % \setlength{\samplehspace}{1em}
103 %
104 % \newcommand{\coloursample}[1]{%
105 % \begin{minipage}[t]{\samplewidth}
106 % \vspace{\baselineskip}
107 % \colorbox{#1}{\parbox[t][\sampleheight]{\samplewidth}{\vfill\hfill}} \\
108 % \\
109 % \centering\texttt{#1} \\
110 % \vspace{\baselineskip}
111 % \end{minipage}
112 % }
113 %
114 % \newcommand{\threecoloursamplerow}[3]{%
115 % \vspace{-\samplevspace}
116 % \DescribeMacro{#1}
117 % \DescribeMacro{#2}
118 % \DescribeMacro{#3}
119 % \hspace{\samplehoffset}
120 % \begin{minipage}{\textwidth}
121 % \vspace{\samplevspace}
122 % \hspace{\samplehoffset}
123 % \coloursample{#1}
124 % \hspace{\samplehspace}
125 % \coloursample{#2}
126 % \hspace{\samplehspace}
127 % \coloursample{#3}
128 % \end{minipage}
129 % \par
130 % }
131 %
132 % \newcommand{\twocoloursamplerow}[2]{%
133 % \vspace{-\samplevspace}
134 % \DescribeMacro{#1}
135 % \DescribeMacro{#2}
136 % \hspace{\samplehoffset}
137 % \begin{minipage}{\textwidth}
138 % \vspace{\samplevspace}
139 % \hspace{\samplehoffset}
140 % \coloursample{#1}
141 % \hspace{\samplehspace}
142 % \coloursample{#2}
143 % \end{minipage}
144 % \par
145 % }
146 %
147 % \title{%
148 % {The UWA Colours Package} \\
149 % {\Large uwa-colours \fileversion{} (\filedate{})}%
150 % }
151 % \author{Anthony Di Pietro}
152 % \date{}
153 %
154 % \maketitle
155 %
156 % \section{Introduction}
157 %
158 % This package uses the |xcolor| package to define macros for
159 % the colour palette of The University of Western Australia.
160 %
161 % \section{Usage}
162 %
163 % To load the package, add this to your preamble:
164 % \begin{quote}
165 % |\usepackage{uwa-colours}|
166 % \end{quote}
167 %
168 % \subsection{Primary Colours}
169 %
170 % The primary colours.\index{primary colours|usage}
171 %
172 % \twocoloursamplerow{UWABlue}{UWAGold}
173 %
174 % \subsection{Background Colours}
175 %
176 % The background colours.\index{background colours|usage}
177 %
178 % \twocoloursamplerow{UWASmoke}{UWASky}
179 % \twocoloursamplerow{UWAGrey}{UWAGreydark}
180 %
181 % \subsection{Secondary Colour Palette}
182 %
183 % The secondary colour palette.\index{secondary colour palette|usage}
184 %
185 % \threecoloursamplerow{UWAMaroon}{UWACrimson}{UWATomato}
186 % \threecoloursamplerow{UWAMaria}{UWAAutumn}{UWAAmber}
187 % \threecoloursamplerow{UWASeaweed}{UWAApple}{UWASushi}
188 % \threecoloursamplerow{UWAMidnight}{UWADenim}{UWAViking}
189 % \threecoloursamplerow{UWABossanova}{UWAOrchid}{UWAPlum}
190 %
191 % \StopEventually{\PrintChanges\PrintIndex}
192 %
193 % \section{Implementation}
194 %
195 % \begin{macro}{UWAblue}
196 % \begin{macro}{UWAgold}
197 % The primary colours.
198 % \begin{macrocode}
199 \definecolor{UWABlue}{RGB}{39, 52, 139}
200 \definecolor{UWAGold}{RGB}{225, 182, 80}
201 % \end{macrocode}
202 % \end{macro}
203 % \end{macro}
204 %
205 % \begin{macro}{UWASmoke}
206 % \begin{macro}{UWASky}
207 % \begin{macro}{UWAGrey}
208 % \begin{macro}{UWAGreydark}
209 % The background colours.
210 % \begin{macrocode}
211 \definecolor{UWASmoke}{RGB}{245, 248, 252}
212 \definecolor{UWASky}{RGB}{226, 237, 250}
213 \definecolor{UWAGrey}{RGB}{236, 236, 236}
214 \definecolor{UWAGreydark}{RGB}{221, 221, 221}
215 % \end{macrocode}
216 % \end{macro}
217 % \end{macro}
218 % \end{macro}
219 % \end{macro}
220 %
221 % \newpage
222 %
223 % \begin{macro}{UWAMaroon}
224 % \begin{macro}{UWACrimson}
225 % \begin{macro}{UWATomato}
226 % \begin{macro}{UWAMaria}
227 % \begin{macro}{UWAAutumn}
228 % \begin{macro}{UWAAmber}
229 % \begin{macro}{UWASeaweed}
230 % \begin{macro}{UWAApple}
231 % \begin{macro}{UWASushi}
232 % \begin{macro}{UWAMidnight}
233 % \begin{macro}{UWADenim}
234 % \begin{macro}{UWAViking}
235 % \begin{macro}{UWABossanova}
236 % \begin{macro}{UWAOrchid}
237 % \begin{macro}{UWAPlum}
238 % The secondary colour palette.
239 % \begin{macrocode}
240 \definecolor{UWAMaroon}{RGB}{169, 34, 71}
241 \definecolor{UWACrimson}{RGB}{222, 40, 81}
242 \definecolor{UWATomato}{RGB}{228, 54, 34}
243 \definecolor{UWAMaria}{RGB}{232, 78, 15}
244 \definecolor{UWAAutumn}{RGB}{244, 151, 0}
245 \definecolor{UWAAmber}{RGB}{253, 195, 0}
246 \definecolor{UWASeaweed}{RGB}{38, 85, 33}
247 \definecolor{UWAApple}{RGB}{62, 134, 56}
248 \definecolor{UWASushi}{RGB}{45, 192, 59}
249 \definecolor{UWAMidnight}{RGB}{0, 56, 105}
250 \definecolor{UWADenim}{RGB}{20, 136, 202}
251 \definecolor{UWAViking}{RGB}{72, 190, 216}
252 \definecolor{UWABossanova}{RGB}{70, 46, 81}
253 \definecolor{UWAOrchid}{RGB}{145, 39, 117}
254 \definecolor{UWAPlum}{RGB}{196, 108, 169}
255 % \end{macrocode}
256 % \end{macro}
257 % \end{macro}
258 % \end{macro}
259 % \end{macro}
260 % \end{macro}
261 % \end{macro}
262 % \end{macro}
263 % \end{macro}
264 % \end{macro}
265 % \end{macro}
266 % \end{macro}
267 % \end{macro}
268 % \end{macro}
269 % \end{macro}
270 % \end{macro}
271 %
272 % \Finale
273 \endinput