texlive[60468] Master: uwa-letterhead (10sep21)

commits+karl at tug.org commits+karl at tug.org
Fri Sep 10 23:03:41 CEST 2021


Revision: 60468
          http://tug.org/svn/texlive?view=revision&revision=60468
Author:   karl
Date:     2021-09-10 23:03:41 +0200 (Fri, 10 Sep 2021)
Log Message:
-----------
uwa-letterhead (10sep21)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/uwa-letterhead/
    trunk/Master/texmf-dist/doc/latex/uwa-letterhead/README
    trunk/Master/texmf-dist/doc/latex/uwa-letterhead/example.tex
    trunk/Master/texmf-dist/doc/latex/uwa-letterhead/uwa-letterhead.pdf
    trunk/Master/texmf-dist/source/latex/uwa-letterhead/
    trunk/Master/texmf-dist/source/latex/uwa-letterhead/uwa-letterhead.dtx
    trunk/Master/texmf-dist/source/latex/uwa-letterhead/uwa-letterhead.ins
    trunk/Master/texmf-dist/tex/latex/uwa-letterhead/
    trunk/Master/texmf-dist/tex/latex/uwa-letterhead/uwa-letterhead.sty
    trunk/Master/tlpkg/tlpsrc/uwa-letterhead.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/uwa-letterhead/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/uwa-letterhead/README	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/uwa-letterhead/README	2021-09-10 21:03:41 UTC (rev 60468)
@@ -0,0 +1,23 @@
+This package generates the letterhead of the University of Western Australia.
+
+It requires the UWA logo in PDF format, which is available in SVG format at
+https://static-listing.weboffice.uwa.edu.au/visualid/core-rebrand/img/uwacrest/,
+and uses the Arial (https://docs.microsoft.com/en-us/typography/font-list/arial)
+and UWA Slab (https://www.brand.uwa.edu.au/) fonts by default.
+
+Copyright 2019, 2021 Anthony Di Pietro
+
+This work may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either version 1.3
+of this license or (at your option) any later version.
+The latest version of this license is in
+  http://www.latex-project.org/lppl.txt
+and version 1.3 or later is part of all distributions of LaTeX
+version 2005/12/01 or later.
+
+This work has the LPPL maintenance status `maintained'.
+
+The Current Maintainer of this work is Anthony Di Pietro.
+
+This work consists of the files uwa-letterhead.dtx, uwa-letterhead.ins, and
+example.tex and the derived files uwa-letterhead.sty and uwa-letterhead.pdf.


Property changes on: trunk/Master/texmf-dist/doc/latex/uwa-letterhead/README
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/uwa-letterhead/example.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/uwa-letterhead/example.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/uwa-letterhead/example.tex	2021-09-10 21:03:41 UTC (rev 60468)
@@ -0,0 +1,43 @@
+% Copyright 2019, 2021 Anthony Di Pietro
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+%   http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Anthony Di Pietro.
+%
+% This work consists of the files uwa-letterhead.dtx, uwa-letterhead.ins, and
+% example.tex and the derived files uwa-letterhead.sty and uwa-letterhead.pdf.
+
+\documentclass[a4paper,11pt]{article}
+\usepackage{uwa-letterhead}
+
+\author{John Smith}
+\school{School of Psychological Science}
+\mbdp{000}
+\phone{+61 8 6488 0000}
+\mobile{+61 000 000 000}
+\email{john.smith at uwa.edu.au}
+
+\begin{document}
+
+Joe Bloggs \\
+1 Main Street \\
+Perth WA 6000
+
+\vspace{2\baselineskip}
+
+Dear Joe,
+
+This is an example of the \texttt{uwa-letterhead} package.
+
+Yours sincerely, \\
+John Smith
+
+\end{document}


Property changes on: trunk/Master/texmf-dist/doc/latex/uwa-letterhead/example.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/uwa-letterhead/uwa-letterhead.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/uwa-letterhead/uwa-letterhead.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/uwa-letterhead/uwa-letterhead.pdf	2021-09-10 21:02:58 UTC (rev 60467)
+++ trunk/Master/texmf-dist/doc/latex/uwa-letterhead/uwa-letterhead.pdf	2021-09-10 21:03:41 UTC (rev 60468)

Property changes on: trunk/Master/texmf-dist/doc/latex/uwa-letterhead/uwa-letterhead.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/uwa-letterhead/uwa-letterhead.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/uwa-letterhead/uwa-letterhead.dtx	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/uwa-letterhead/uwa-letterhead.dtx	2021-09-10 21:03:41 UTC (rev 60468)
@@ -0,0 +1,889 @@
+% \iffalse meta-comment
+% Copyright 2019, 2021 Anthony Di Pietro
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+%   http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Anthony Di Pietro.
+%
+% This work consists of the files uwa-letterhead.dtx, uwa-letterhead.ins, and
+% example.tex and the derived files uwa-letterhead.sty and uwa-letterhead.pdf.
+% \fi
+%
+% \iffalse
+%<*driver>
+\ProvidesFile{uwa-letterhead.dtx}
+%</driver>
+%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
+%<package>\ProvidesPackage{uwa-letterhead}
+%<*package>
+    [2019/08/31 1.0.0 UWA Letterhead]
+%</package>
+%
+%<*driver>
+\documentclass[
+        a4paper,
+        10pt
+]{ltxdoc}
+\usepackage{hypdoc}
+\PassOptionsToPackage{scale=0.9}{sourcecodepro}
+\usepackage[
+        regular,
+        nouwafont,
+        noarial
+]{uwa-letterhead}[2019/08/31]
+\GetFileInfo{uwa-letterhead.dtx}
+\setcounter{secnumdepth}{3}
+\geometry{
+        left=5cm,
+        right=2cm
+}
+\hypersetup{colorlinks=true}
+\date{}
+\makeatletter
+\title{%
+        {The UWA Letterhead Package} \\
+        {\Large uwa-letterhead \fileversion{} (\filedate{})}%
+}
+\renewcommand{\uwalh at makeletterhead}{}
+\c at IndexColumns = 2
+\makeatother
+\DoNotIndex{\newcommand, \newenvironment}
+\DisableCrossrefs
+\CodelineIndex
+\RecordChanges
+\CheckSum{545}
+\begin{document}
+        \DocInput{uwa-letterhead.dtx}
+\end{document}
+%</driver>
+% \fi
+%
+% \CharacterTable
+%  {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
+%   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
+%   Digits        \0\1\2\3\4\5\6\7\8\9
+%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%   Dollar        \$     Percent       \%     Ampersand     \&
+%   Acute accent  \'     Left paren    \(     Right paren   \)
+%   Asterisk      \*     Plus          \+     Comma         \,
+%   Minus         \-     Point         \.     Solidus       \/
+%   Colon         \:     Semicolon     \;     Less than     \<
+%   Equals        \=     Greater than  \>     Question mark \?
+%   Commercial at \@     Left bracket  \[     Backslash     \\
+%   Right bracket \]     Circumflex    \^     Underscore    \_
+%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%   Right brace   \}     Tilde         \~}
+%
+% \changes{1.0.0}{2019/08/31}{Initial version}
+%
+% \maketitle
+%
+% \section{Introduction}
+%
+% This package generates the letterhead of The University of Western Australia.
+%
+% \section{Usage}
+%
+% \subsection{External Dependencies}
+%
+% You must supply the university logo (as |uwacrest-blue.pdf| by default).
+% It is available in SVG format at
+% \href{https://static-listing.weboffice.uwa.edu.au/visualid/core-rebrand/img/uwacrest/}
+% {https://static-listing.weboffice.uwa.edu.au/visualid/core-rebrand/img/uwacrest/}.
+%
+% The letterhead uses the
+% \href{https://docs.microsoft.com/en-us/typography/font-list/arial}{Arial}
+% typeface for the first-page footer and the
+% \href{https://www.brand.uwa.edu.au/}{UWA Slab} typeface for headings.
+% The fonts must be installed on the system for this to work. Arial is
+% available as part of Microsoft's TypeType core fonts for the web
+% (\url{https://sourceforge.net/projects/mscorefonts2/}), and UWA Slab is
+% available from the UWA website
+% (\url{https://static-listing.weboffice.uwa.edu.au/visualid/core-rebrand/fonts/uwa/}).
+% Alternatively, you can use the |noarial| and |nouwafont| package options
+% to substitute these with the body text typeface.
+%
+% \subsection{Package Options}
+%
+% \DescribeMacro{\usepackage}
+% To load the package, add this to your preamble:
+% \begin{quote}
+% |\usepackage{uwa-letterhead}|
+% \end{quote}
+%
+% You can pass the following options to specify the font weights:
+% \begin{itemize}
+%         \item |light|: Use light and semibold fonts (default).
+%         \item |regular|: Use regular and bold fonts.
+% \end{itemize}
+%
+% You can pass the following options to specify whether to use UWA Slab
+% for headings:
+% \begin{itemize}
+%         \item |uwafont|: Use UWA Slab for headings (default).
+%         \item |nouwafont|: Use the body text typeface for headings.
+% \end{itemize}
+%
+% You can pass the following options to specify whether to use Arial
+% for the first-page footer:
+% \begin{itemize}
+%         \item |arial|: Use Arial for the first-page footer (default).
+%         \item |noarial|: Use the body text typeface for the first-page footer.
+% \end{itemize}
+%
+% \subsection{Letterhead Fields}
+%
+% Use the following commands in the preamble to set the letterhead fields:
+%
+% \DescribeMacro{\author}
+% \begin{minipage}[t]{\textwidth}
+% |\author|\marg{author} \\
+% The author of the document. \\
+% Required
+% \end{minipage}
+%
+% \DescribeMacro{\school}
+% \begin{minipage}[t]{\textwidth}
+% |\school|\marg{school} \\
+% The author's school within the university. \\
+% Required
+% \end{minipage}
+%
+% \DescribeMacro{\mbdp}
+% \begin{minipage}[t]{\textwidth}
+% |\mbdp|\marg{mbdp} \\
+% The author's
+% \href{https://www.uniprint.uwa.edu.au/mail/mailbag-delivery-points}
+% {mailbag delivery point (MBDP)}. \\
+% Required
+% \end{minipage}
+%
+% \DescribeMacro{\university}
+% \begin{minipage}[t]{\textwidth}
+% |\university|\marg{university} \\
+% The name of the university. \\
+% Default: \textit{The University of Western Australia}
+% \end{minipage}
+%
+% \DescribeMacro{\address}
+% \begin{minipage}[t]{\textwidth}
+% |\address|\marg{address} \\
+% The university's address. \\
+% Default: \textit{35 Stirling Highway, Crawley WA 6009}
+% \end{minipage}
+%
+% \DescribeMacro{\phone}
+% \begin{minipage}[t]{\textwidth}
+% |\phone|\marg{phone} \\
+% The author's phone number. \\
+% Required
+% \end{minipage}
+%
+% \DescribeMacro{\mobile}
+% \begin{minipage}[t]{\textwidth}
+% |\mobile|\marg{mobile} \\
+% The author's mobile number. \\
+% Required
+% \end{minipage}
+%
+% \DescribeMacro{\email}
+% \begin{minipage}[t]{\textwidth}
+% |\email|\marg{email} \\
+% The author's email address. \\
+% Required
+% \end{minipage}
+%
+% \DescribeMacro{\website}
+% \begin{minipage}[t]{\textwidth}
+% |\website|\marg{website} \\
+% The author's website, or their school's website. \\
+% Omit the scheme (|https://|) and path (|/|). \\
+% Default: \textit{www.uwa.edu.au}
+% \end{minipage}
+%
+% \DescribeMacro{\footeraddress}
+% \begin{minipage}[t]{\textwidth}
+% |\footeraddress|\marg{footeraddress} \\
+% The university's address, shortened for the first-page footer. \\
+% Default: \textit{Perth WA 6009 Australia}
+% \end{minipage}
+%
+% \DescribeMacro{\cricos}
+% \begin{minipage}[t]{\textwidth}
+% |\cricos|\marg{cricos} \\
+% The university's
+% \href{http://cricos.education.gov.au/}{CRICOS} provider code. \\
+% Default: \textit{00126G}
+% \end{minipage}
+%
+% \DescribeMacro{\uwacrest}
+% \begin{minipage}[t]{\textwidth}
+% |\uwacrest|\marg{uwacrest} \\
+% The filename of the UWA crest in PDF format (available in SVG format at
+% \href{https://static-listing.weboffice.uwa.edu.au/visualid/core-rebrand/img/uwacrest/}
+% {https://static-listing.weboffice.uwa.edu.au/visualid/core-rebrand/img/uwacrest/}). \\
+% Default: \textit{uwacrest-blue.pdf}
+% \end{minipage}
+%
+% \StopEventually{\PrintChanges\PrintIndex}
+%
+% \section{Implementation}
+%
+% \subsection{Package Options}
+%
+% \begin{minipage}{\textwidth}
+% \begin{macro}{\uwalh at uwafont}
+% \begin{macro}{\uwalh at arialfont}
+% Define conditionals for the package options.
+%    \begin{macrocode}
+\newif\ifuwalh at uwafont
+\newif\ifuwalh at arialfont
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{minipage}
+%
+% The |uwafont| and |nouwafont| options respectively enable and disable
+% using the UWA Slab for headings.
+%    \begin{macrocode}
+\DeclareOption{uwafont}{
+        \uwalh at uwafonttrue
+}
+\DeclareOption{nouwafont}{
+        \uwalh at uwafontfalse
+}
+%    \end{macrocode}
+%
+% The |arial| and |noarial| options respectively enable and disable
+% using Arial for the first-page footer.
+%    \begin{macrocode}
+\DeclareOption{arial}{
+        \uwalh at arialfonttrue
+}
+\DeclareOption{noarial}{
+        \uwalh at arialfontfalse
+}
+%    \end{macrocode}
+%
+% The |light| option uses light and semibold fonts.
+%    \begin{macrocode}
+\DeclareOption{light}{
+        \PassOptionsToPackage{
+                default,
+                light,
+                semibold
+        }{sourcesanspro}
+        \PassOptionsToPackage{
+                light,
+                semibold
+        }{sourcecodepro}
+}
+%    \end{macrocode}
+% The |regular| option uses regular and bold fonts.
+%    \begin{macrocode}
+\DeclareOption{regular}{
+        \PassOptionsToPackage{
+                default,
+                regular,
+                bold
+        }{sourcesanspro}
+        \PassOptionsToPackage{
+                regular,
+                bold
+        }{sourcecodepro}
+}
+%    \end{macrocode}
+% Use the |uwafont|, |arial|, and |light| options by default.
+%    \begin{macrocode}
+\ExecuteOptions{
+        uwafont,
+        arial,
+        light
+}
+%    \end{macrocode}
+% Complete option processing.
+%    \begin{macrocode}
+\ProcessOptions\relax
+%    \end{macrocode}
+%
+% \subsection{Page Configuration}
+%
+% Use |geometry| to configure the page margins.
+%    \begin{macrocode}
+\RequirePackage[
+        margin=1cm,
+        top=1.7cm,
+        left=2.5cm,
+        bottom=2.2cm,
+        right=2.5cm
+]{geometry}
+%    \end{macrocode}
+% Disable page numbering.
+%    \begin{macrocode}
+\pagestyle{empty}
+%    \end{macrocode}
+%
+% \subsection{Font Configuration}
+%
+% Use |fontspec| for access to OpenType and TrueType fonts.
+%    \begin{macrocode}
+\RequirePackage[no-math]{fontspec}
+%    \end{macrocode}
+%
+% Set default fonts.
+%    \begin{macrocode}
+\RequirePackage{sourcesanspro}
+\RequirePackage{sourcecodepro}
+%    \end{macrocode}
+%
+% Set font for headings.
+%    \begin{macrocode}
+\ifuwalh at uwafont
+        \newfontfamily{\uwalh at uwa}{UWA}
+\else
+        \newcommand*{\uwalh at uwa}{\sffamily}
+\fi
+%    \end{macrocode}
+%
+% Set font for first-page footer.
+%    \begin{macrocode}
+\ifuwalh at arialfont
+        \newfontfamily{\uwalh at arial}{Arial}
+\else
+        \newcommand*{\uwalh at arial}{\sffamily}
+\fi
+%    \end{macrocode}
+%
+% \subsection{Paragraph Configuration}
+%
+% Use |microtype| to enable microtypographic extensions.
+%    \begin{macrocode}
+\RequirePackage{microtype}
+%    \end{macrocode}
+%
+% Delineate paragraphs with vertical space rather than indentation.
+%    \begin{macrocode}
+\parindent0pt
+\setlength{\parskip}{0.8\baselineskip}
+%    \end{macrocode}
+%
+% \subsection{Heading Configuration}
+%
+% Use |titlesec| to configure headings.
+%    \begin{macrocode}
+\RequirePackage[sf]{titlesec}
+\titleformat{\section}{\color{black}\Large\uwalh at uwa}{\thesection}{1em}{}
+\titleformat{\subsection}{\color{black}\large\uwalh at uwa}{\thesubsection}{1em}{}
+\titlespacing*{\section}{0em}{2\baselineskip}{0em}
+\titlespacing*{\subsection}{0em}{\baselineskip}{0em}
+%    \end{macrocode}
+% Disable section numbering.
+%    \begin{macrocode}
+\setcounter{secnumdepth}{0}
+%    \end{macrocode}
+%
+% \subsection{Hyperlink Configuration}
+%
+% Use |hyperref| for hyperlinks, disabling visual indicators by default.
+%    \begin{macrocode}
+\RequirePackage{hyperref}
+\hypersetup{
+        colorlinks=false,
+        pdfborder={0 0 0}
+}
+%    \end{macrocode}
+% Do not typeset URLs in a different font by default.
+%    \begin{macrocode}
+\urlstyle{same}
+%    \end{macrocode}
+%
+% \subsection{Colour Configuration}
+%
+% Use |xcolor| for colour support, and enable |hyperref| compatibility.
+%    \begin{macrocode}
+\RequirePackage[hyperref]{xcolor}
+%    \end{macrocode}
+% Define letterhead colours.
+%    \begin{macrocode}
+\definecolor{UWALetterheadBlue}{RGB}{33, 64, 154}
+\definecolor{UWALetterheadGold}{RGB}{221, 177, 10}
+\definecolor{UWALetterheadFooter}{RGB}{77, 77, 79}
+%    \end{macrocode}
+%
+% \subsection{Miscellaneous Packages}
+%
+% Use |stringstrings| to remove spaces from phone numbers.
+%    \begin{macrocode}
+\RequirePackage{stringstrings}
+%    \end{macrocode}
+% Use |textpos| in |absolute| mode to place letterhead elements
+% at arbitrary positions on the page.
+%    \begin{macrocode}
+\RequirePackage[absolute]{textpos}
+%    \end{macrocode}
+% Use |graphicx| to add the university logo.
+%    \begin{macrocode}
+\RequirePackage{graphicx}
+%    \end{macrocode}
+%
+% \subsection{Letterhead Layout}
+%
+% \begin{minipage}{\textwidth}
+% \begin{macro}{\uwalh at bluewidth}
+% \begin{macro}{\uwalh at goldwidth}
+% \begin{macro}{\uwalh at barheight}
+% \begin{macro}{\uwalh at barleft}
+% \begin{macro}{\uwalh at bartop}
+% Define dimensions and positions for the coloured bar at the top
+% of the letterhead.
+%    \begin{macrocode}
+\newlength{\uwalh at bluewidth}
+\setlength{\uwalh at bluewidth}{4.79cm}
+\newlength{\uwalh at goldwidth}
+\setlength{\uwalh at goldwidth}{14.41cm}
+\newlength{\uwalh at barwidth}
+\setlength{\uwalh at barwidth}{\uwalh at bluewidth}
+\addtolength{\uwalh at barwidth}{\uwalh at goldwidth}
+\newlength{\uwalh at barheight}
+\setlength{\uwalh at barheight}{0.59cm}
+\newlength{\uwalh at barleft}
+\setlength{\uwalh at barleft}{\paperwidth}
+\addtolength{\uwalh at barleft}{-1\uwalh at barwidth}
+\newlength{\uwalh at bartop}
+\setlength{\uwalh at bartop}{0cm}
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{minipage}
+%
+% \begin{minipage}{\textwidth}
+% \begin{macro}{\uwalh at logowidth}
+% \begin{macro}{\uwalh at logoheight}
+% \begin{macro}{\uwalh at logoleft}
+% \begin{macro}{\uwalh at logotop}
+% Define dimensions and position of the university logo.
+%    \begin{macrocode}
+\newlength{\uwalh at logowidth}
+\setlength{\uwalh at logowidth}{5cm}
+\newlength{\uwalh at logoheight}
+\setlength{\uwalh at logoheight}{1.64cm}
+\newlength{\uwalh at logoleft}
+\setlength{\uwalh at logoleft}{1.78cm}
+\newlength{\uwalh at logotop}
+\setlength{\uwalh at logotop}{1.58cm}
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{minipage}
+%
+% \begin{minipage}{\textwidth}
+% \begin{macro}{\uwalh at addresswidth}
+% \begin{macro}{\uwalh at addresstop}
+% \begin{macro}{\uwalh at addressleft}
+% Define width and position of the address block.
+%    \begin{macrocode}
+\newlength{\uwalh at addresswidth}
+\setlength{\uwalh at addresswidth}{6.25cm}
+\newlength{\uwalh at addresstop}
+\setlength{\uwalh at addresstop}{1.71cm}
+\newlength{\uwalh at addressleft}
+\setlength{\uwalh at addressleft}{12.25cm}
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{minipage}
+%
+% \begin{macro}{\uwalh at vspaceatstart}
+% The vertical space at the start of the document before the title.
+%    \begin{macrocode}
+\newlength{\uwalh at vspaceatstart}
+\setlength{\uwalh at vspaceatstart}{3.34cm}
+%    \end{macrocode}
+% \end{macro}
+%
+% \subsection{Internal Macros}
+%
+% \begin{macro}{\uwalh at noadvance}
+% \begin{macro}{\uwalh at noadvancewidth}
+% Add text without advancing the current position.
+%    \begin{macrocode}
+\newlength{\uwalh at noadvancewidth}
+\newcommand{\uwalh at noadvance}[1]{%
+        \settowidth{\uwalh at noadvancewidth}{#1}%
+        #1\hspace*{-1\uwalh at noadvancewidth}%
+}
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \subsection{Template Fields}
+%
+% \begin{minipage}{\textwidth}
+% \begin{macro}{\uwalh at school}
+% \begin{macro}{\uwalh at mbdp}
+% \begin{macro}{\uwalh at footermbdp}
+% \begin{macro}{\uwalh at university}
+% \begin{macro}{\uwalh at footeruniversity}
+% \begin{macro}{\uwalh at address}
+% \begin{macro}{\uwalh at footeraddress}
+% \begin{macro}{\uwalh at cricos}
+% \begin{macro}{\uwalh at uwacrest}
+% \begin{macro}{\uwalh at phone}
+% \begin{macro}{\uwalh at footerphone}
+% \begin{macro}{\uwalh at mobile}
+% \begin{macro}{\uwalh at email}
+% \begin{macro}{\uwalh at footeremail}
+% \begin{macro}{\uwalh at website}
+% Set default values for the template fields.
+%    \begin{macrocode}
+\newcommand*{\uwalh at school}{}
+\newcommand*{\uwalh at mbdp}{}
+\newcommand*{\uwalh at footermbdp}{}
+\newcommand*{\uwalh at university}{The University of Western Australia}
+\newcommand*{\uwalh at footeruniversity}{The University of Western Australia}
+\newcommand*{\uwalh at address}{35 Stirling Highway, Crawley WA 6009}
+\newcommand*{\uwalh at footeraddress}{Perth WA 6009 Australia}
+\newcommand*{\uwalh at cricos}{00126G}
+\newcommand*{\uwalh at uwacrest}{uwacrest-blue.pdf}
+\newcommand*{\uwalh at phone}{}
+\newcommand*{\uwalh at footerphone}{}
+\newcommand*{\uwalh at mobile}{}
+\newcommand*{\uwalh at email}{}
+\newcommand*{\uwalh at footeremail}{}
+\newcommand*{\uwalh at website}{www.uwa.edu.au}
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{minipage}
+%
+% \begin{minipage}{\textwidth}
+% \begin{macro}{\school}
+% \begin{macro}{\mbdp}
+% \begin{macro}{\university}
+% \begin{macro}{\address}
+% \begin{macro}{\phone}
+% \begin{macro}{\mobile}
+% \begin{macro}{\email}
+% \begin{macro}{\website}
+% \begin{macro}{\footeraddress}
+% \begin{macro}{\cricos}
+% \begin{macro}{\uwacrest}
+% Define macros to set the template fields.
+%    \begin{macrocode}
+\newcommand*{\school}[1]{\renewcommand*{\uwalh at school}{#1}}
+\newcommand*{\mbdp}[1]{%
+        \renewcommand*{\uwalh at mbdp}{#1}%
+        \renewcommand*{\uwalh at footermbdp}{#1}%
+}
+\newcommand*{\university}[1]{%
+        \renewcommand*{\uwalh at university}{#1}%
+        \renewcommand*{\uwalh at footeruniversity}{#1}%
+}
+\newcommand*{\address}[1]{\renewcommand*{\uwalh at address}{#1}}
+\newcommand*{\footeraddress}[1]{\renewcommand*{\uwalh at footeraddress}{#1}}
+\newcommand*{\phone}[1]{%
+        \renewcommand*{\uwalh at phone}{#1}%
+        \renewcommand*{\uwalh at footerphone}{#1}%
+}
+\newcommand*{\mobile}[1]{\renewcommand*{\uwalh at mobile}{#1}}
+\newcommand*{\email}[1]{%
+        \renewcommand*{\uwalh at email}{#1}%
+        \renewcommand*{\uwalh at footeremail}{#1}%
+}
+\newcommand*{\website}[1]{\renewcommand*{\uwalh at website}{#1}}
+\newcommand*{\cricos}[1]{\renewcommand*{\uwalh at cricos}{#1}}
+\newcommand*{\uwacrest}[1]{\renewcommand*{\uwalh at uwacrest}{#1}}
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{minipage}
+%
+% \subsection{Document Title}
+%
+% \begin{macro}{\@maketitle}
+% The default |\@maketitle| forces a new page, adds vertical space
+% at the top of the page, and includes the author and date, all of
+% which are inappropriate when using the letterhead; so redefine
+% |\@maketitle| without those parts.
+%    \begin{macrocode}
+\def\@maketitle{%
+        \begin{center}%
+                \let\footnote\thanks
+                {\LARGE \uwalh at uwa \@title \par}%
+        \end{center}%
+        \par
+        \vskip 1.5em%
+}
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\maketitle}
+% The default |\maketitle| handles the |twocolumn| and |title page| options,
+% both of which are inappropriate when using the letterhead, so redefine
+% |\maketitle| without those parts.
+%    \begin{macrocode}
+\renewcommand\maketitle{\par
+        \begingroup
+        \renewcommand\thefootnote{\@fnsymbol\c at footnote}%
+        \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+        \long\def\@makefntext##1{\parindent 1em\noindent
+                \hb at xt@1.8em{%
+                        \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+        \global\@topnum\z@
+        \@maketitle
+        \thispagestyle{empty}\@thanks
+        \endgroup
+        \setcounter{footnote}{0}%
+        \global\let\thanks\relax
+        \global\let\maketitle\relax
+        \global\let\@maketitle\relax
+        \global\let\@thanks\@empty
+        \global\let\@author\@empty
+        \global\let\@date\@empty
+        \global\let\@title\@empty
+        \global\let\title\relax
+        \global\let\author\relax
+        \global\let\date\relax
+        \global\let\and\relax
+}
+%    \end{macrocode}
+% \end{macro}
+%
+% \subsection{Letterhead Components}
+%
+% \begin{macro}{\uwalh at bar@blue}
+% The blue part of the coloured bar at the top of the letterhead.
+%    \begin{macrocode}
+\newcommand{\uwalh at bar@blue}{%
+        \colorbox{UWALetterheadBlue}{%
+                \parbox[b][\uwalh at barheight]{\uwalh at bluewidth}{\vfill\hfill}%
+        }%
+}
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\uwalh at bar@gold}
+% The gold part of the coloured bar at the top of the letterhead.
+%    \begin{macrocode}
+\newcommand{\uwalh at bar@gold}{%
+        \colorbox{UWALetterheadGold}{%
+                \parbox[b][\uwalh at barheight]{\uwalh at goldwidth}{\vfill\hfill}%
+        }%
+}
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\uwalh at bar}
+% Add the coloured bar at the top of the letterhead.
+%    \begin{macrocode}
+\newcommand{\uwalh at bar}{%
+        \addtolength{\uwalh at barwidth}{12pt}
+        \begin{textblock*}{\uwalh at barwidth}(\uwalh at barleft, \uwalh at bartop)
+                \uwalh at bar@blue{}%
+                \uwalh at bar@gold{}%
+        \end{textblock*}%
+}
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\uwalh at logo}
+% Add the university logo.
+%    \begin{macrocode}
+\newcommand{\uwalh at logo}{%
+        \begin{textblock*}{\uwalh at logowidth}(\uwalh at logoleft, \uwalh at logotop)
+                \includegraphics[
+                        width=\uwalh at logowidth,
+                        height=\uwalh at logoheight
+                ]{\uwalh at uwacrest}
+        \end{textblock*}%
+}
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\uwalh at addressblock}
+% Add the address block.
+%    \begin{macrocode}
+\newcommand{\uwalh at addressblock}{%
+        \begin{textblock*}%
+                {\uwalh at addresswidth}(\uwalh at addressleft, \uwalh at addresstop)
+                \begin{minipage}[t]{\uwalh at addresswidth}
+                        \sffamily\fontsize{11.19}{13.49}\selectfont%
+                        \@author{} \\
+                        \uwalh at school{}, M\uwalh at mbdp{} \\
+                        \uwalh at university{} \\
+                        \uwalh at address{} \\
+                        \noblanks[q]{\uwalh at phone}%
+                        Tel: \href{tel:\thestring}{\uwalh at phone} \\
+                        Email: \href{mailto:\uwalh at email}{\uwalh at email} \\
+                        \href{https://\uwalh@website/}{\uwalh at website}
+                \end{minipage}
+        \end{textblock*}%
+}
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\uwalh at fpf@address}
+% The address component of the first-page footer.
+%    \begin{macrocode}
+\newcommand{\uwalh at fpf@address}{%
+        \begin{minipage}[t]{4.94cm}
+                \vspace*{-1\parskip}%
+                \rule{\textwidth}{1pt}%
+                \vspace{-1\baselineskip}\vspace{0.45cm} \\
+                \hspace*{0.005cm}\uwalh at footeruniversity{} \\
+                \hspace*{0.005cm}M\uwalh at footermbdp{} \uwalh at footeraddress{}
+        \end{minipage}%
+}
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\uwalh at fpf@phone}
+% The phone component of the first-page footer.
+%    \begin{macrocode}
+\newcommand{\uwalh at fpf@phone}{%
+        \begin{minipage}[t]{4.945cm}
+                \vspace*{-1\parskip}%
+                \rule{\textwidth}{1pt}%
+                \vspace{-1\baselineskip}\vspace{0.45cm} \\
+                \uwalh at noadvance{\textcolor{UWALetterheadBlue}{\textbf{T}}}%
+                \hspace{0.375cm}%
+                \noblanks[q]{\uwalh at footerphone}%
+                \href{tel:\thestring}{\uwalh at footerphone} \\
+                \uwalh at noadvance{\textcolor{UWALetterheadBlue}{\textbf{M}}}%
+                \hspace{0.375cm}%
+                \noblanks[q]{\uwalh at mobile}%
+                \href{tel:\thestring}{\uwalh at mobile}
+        \end{minipage}%
+}
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\uwalh at fpf@email}
+% The email component of the first-page footer.
+%    \begin{macrocode}
+\newcommand{\uwalh at fpf@email}{%
+        \begin{minipage}[t]{5.31cm}
+                \vspace*{-1\parskip}%
+                \rule{\textwidth}{1pt}%
+                \vspace{-1\baselineskip}\vspace{0.45cm} \\
+                \uwalh at noadvance{\textcolor{UWALetterheadBlue}{\textbf{E}}}%
+                \hspace{0.38cm}%
+                \href{mailto:\uwalh at footeremail}{\uwalh at footeremail} \\
+                \vspace{-1\baselineskip}\vspace{-0.018cm} \\
+                {\uwalh at arial\fontsize{5}{6.7}\selectfont%
+                        CRICOS Provider Code \uwalh at cricos{}%
+                }%
+        \end{minipage}%
+}
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\uwalh at firstpagefooter}
+% Add the first-page footer.
+%    \begin{macrocode}
+\newcommand{\uwalh at firstpagefooter}{%
+        \begin{textblock*}{16cm}(2.5cm, 27.35cm)
+                {%
+                        \microtypesetup{activate=false}%
+                        \vspace*{-1\parskip}\vspace*{10.88pt}%
+                        \uwalh at arial\fontsize{7.5}{8.7}\selectfont%
+                        \color{UWALetterheadFooter}%
+                        \uwalh at fpf@address{}%
+                        \hspace{0.402cm}%
+                        \uwalh at fpf@phone{}%
+                        \hspace{0.402cm}%
+                        \uwalh at fpf@email{}%
+                        \microtypesetup{activate=true}%
+                }%
+        \end{textblock*}%
+}
+%    \end{macrocode}
+% \end{macro}
+%
+% \subsection{Field Validation}
+%
+% \begin{macro}{\uwalh at checkfield}
+% Check that a required template field is set.
+%    \begin{macrocode}
+\newcommand{\uwalh at checkfield}[2]{%
+        \setbox0=\hbox{#1\unskip}\ifdim\wd0=0pt
+                \@latex at warning@no at line{No #2given}
+        \else
+                \relax%
+        \fi%
+}
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\uwalh at checkfields}
+% Check that the required template fields are set.
+%    \begin{macrocode}
+\newcommand{\uwalh at checkfields}{%
+        \uwalh at checkfield{\uwalh at school}{\noexpand\school}
+        \uwalh at checkfield{\uwalh at mbdp}{\noexpand\mbdp}
+        \uwalh at checkfield{\uwalh at phone}{\noexpand\phone}
+        \uwalh at checkfield{\uwalh at mobile}{\noexpand\mobile}
+        \uwalh at checkfield{\uwalh at email}{\noexpand\email}
+}
+%    \end{macrocode}
+% \end{macro}
+%
+% \subsection{Letterhead Generation}
+%
+% \begin{macro}{\uwalh at makeletterhead}
+% Generate the letterhead.
+%    \begin{macrocode}
+\newcommand{\uwalh at makeletterhead}{%
+        \uwalh at checkfields{}%
+        \uwalh at bar{}%
+        \uwalh at logo{}%
+        \uwalh at addressblock{}%
+        \uwalh at firstpagefooter{}%
+        \vspace*{\uwalh at vspaceatstart}%
+}
+%    \end{macrocode}
+% \end{macro}
+%
+% Automatically generate the letterhead at the beginning of the document.
+%    \begin{macrocode}
+\AtBeginDocument{\uwalh at makeletterhead}
+%    \end{macrocode}
+%
+% \Finale
+\endinput


Property changes on: trunk/Master/texmf-dist/source/latex/uwa-letterhead/uwa-letterhead.dtx
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/uwa-letterhead/uwa-letterhead.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/uwa-letterhead/uwa-letterhead.ins	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/uwa-letterhead/uwa-letterhead.ins	2021-09-10 21:03:41 UTC (rev 60468)
@@ -0,0 +1,58 @@
+%% Copyright 2019 Anthony Di Pietro
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%%   http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%% 
+%% The Current Maintainer of this work is Anthony Di Pietro.
+%%
+%% This work consists of the files uwa-letterhead.dtx, uwa-letterhead.ins, and
+%% example.tex and the derived files uwa-letterhead.sty and uwa-letterhead.pdf.
+
+\input docstrip.tex
+\keepsilent
+
+\usedir{tex/latex/uwa-letterhead}
+
+\preamble
+
+Copyright 2019 Anthony Di Pietro
+
+This work may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either version 1.3
+of this license or (at your option) any later version.
+The latest version of this license is in
+  http://www.latex-project.org/lppl.txt
+and version 1.3 or later is part of all distributions of LaTeX
+version 2005/12/01 or later.
+
+This work has the LPPL maintenance status `maintained'.
+
+The Current Maintainer of this work is Anthony Di Pietro.
+
+This work consists of the files uwa-letterhead.dtx, uwa-letterhead.ins, and
+example.tex and the derived files uwa-letterhead.sty and uwa-letterhead.pdf.
+
+\endpreamble
+
+\askforoverwritefalse
+\generate{\file{uwa-letterhead.sty}{\from{uwa-letterhead.dtx}{package}}}
+
+\obeyspaces
+\Msg{*************************************************************}
+\Msg{*                                                           *}
+\Msg{* To complete the installation, move uwa-letterhead.sty     *}
+\Msg{* into a directory searched by LaTeX.                       *}
+\Msg{*                                                           *}
+\Msg{* To produce the documentation, run uwa-letterhead.dtx      *}
+\Msg{* through pdfLaTeX.                                         *}
+\Msg{*                                                           *}
+\Msg{*************************************************************}
+
+\endbatchfile

Added: trunk/Master/texmf-dist/tex/latex/uwa-letterhead/uwa-letterhead.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/uwa-letterhead/uwa-letterhead.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/uwa-letterhead/uwa-letterhead.sty	2021-09-10 21:03:41 UTC (rev 60468)
@@ -0,0 +1,339 @@
+%%
+%% This is file `uwa-letterhead.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% uwa-letterhead.dtx  (with options: `package')
+%% 
+%% Copyright 2019 Anthony Di Pietro
+%% 
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%%   http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%% 
+%% This work has the LPPL maintenance status `maintained'.
+%% 
+%% The Current Maintainer of this work is Anthony Di Pietro.
+%% 
+%% This work consists of the files uwa-letterhead.dtx, uwa-letterhead.ins, and
+%% example.tex and the derived files uwa-letterhead.sty and uwa-letterhead.pdf.
+%% 
+\NeedsTeXFormat{LaTeX2e}[2005/12/01]
+\ProvidesPackage{uwa-letterhead}
+    [2019/08/31 1.0.0 UWA Letterhead]
+\newif\ifuwalh at uwafont
+\newif\ifuwalh at arialfont
+\DeclareOption{uwafont}{
+        \uwalh at uwafonttrue
+}
+\DeclareOption{nouwafont}{
+        \uwalh at uwafontfalse
+}
+\DeclareOption{arial}{
+        \uwalh at arialfonttrue
+}
+\DeclareOption{noarial}{
+        \uwalh at arialfontfalse
+}
+\DeclareOption{light}{
+        \PassOptionsToPackage{
+                default,
+                light,
+                semibold
+        }{sourcesanspro}
+        \PassOptionsToPackage{
+                light,
+                semibold
+        }{sourcecodepro}
+}
+\DeclareOption{regular}{
+        \PassOptionsToPackage{
+                default,
+                regular,
+                bold
+        }{sourcesanspro}
+        \PassOptionsToPackage{
+                regular,
+                bold
+        }{sourcecodepro}
+}
+\ExecuteOptions{
+        uwafont,
+        arial,
+        light
+}
+\ProcessOptions\relax
+\RequirePackage[
+        margin=1cm,
+        top=1.7cm,
+        left=2.5cm,
+        bottom=2.2cm,
+        right=2.5cm
+]{geometry}
+\pagestyle{empty}
+\RequirePackage[no-math]{fontspec}
+\RequirePackage{sourcesanspro}
+\RequirePackage{sourcecodepro}
+\ifuwalh at uwafont
+        \newfontfamily{\uwalh at uwa}{UWA}
+\else
+        \newcommand*{\uwalh at uwa}{\sffamily}
+\fi
+\ifuwalh at arialfont
+        \newfontfamily{\uwalh at arial}{Arial}
+\else
+        \newcommand*{\uwalh at arial}{\sffamily}
+\fi
+\RequirePackage{microtype}
+\parindent0pt
+\setlength{\parskip}{0.8\baselineskip}
+\RequirePackage[sf]{titlesec}
+\titleformat{\section}{\color{black}\Large\uwalh at uwa}{\thesection}{1em}{}
+\titleformat{\subsection}{\color{black}\large\uwalh at uwa}{\thesubsection}{1em}{}
+\titlespacing*{\section}{0em}{2\baselineskip}{0em}
+\titlespacing*{\subsection}{0em}{\baselineskip}{0em}
+\setcounter{secnumdepth}{0}
+\RequirePackage{hyperref}
+\hypersetup{
+        colorlinks=false,
+        pdfborder={0 0 0}
+}
+\urlstyle{same}
+\RequirePackage[hyperref]{xcolor}
+\definecolor{UWALetterheadBlue}{RGB}{33, 64, 154}
+\definecolor{UWALetterheadGold}{RGB}{221, 177, 10}
+\definecolor{UWALetterheadFooter}{RGB}{77, 77, 79}
+\RequirePackage{stringstrings}
+\RequirePackage[absolute]{textpos}
+\RequirePackage{graphicx}
+\newlength{\uwalh at bluewidth}
+\setlength{\uwalh at bluewidth}{4.79cm}
+\newlength{\uwalh at goldwidth}
+\setlength{\uwalh at goldwidth}{14.41cm}
+\newlength{\uwalh at barwidth}
+\setlength{\uwalh at barwidth}{\uwalh at bluewidth}
+\addtolength{\uwalh at barwidth}{\uwalh at goldwidth}
+\newlength{\uwalh at barheight}
+\setlength{\uwalh at barheight}{0.59cm}
+\newlength{\uwalh at barleft}
+\setlength{\uwalh at barleft}{\paperwidth}
+\addtolength{\uwalh at barleft}{-1\uwalh at barwidth}
+\newlength{\uwalh at bartop}
+\setlength{\uwalh at bartop}{0cm}
+\newlength{\uwalh at logowidth}
+\setlength{\uwalh at logowidth}{5cm}
+\newlength{\uwalh at logoheight}
+\setlength{\uwalh at logoheight}{1.64cm}
+\newlength{\uwalh at logoleft}
+\setlength{\uwalh at logoleft}{1.78cm}
+\newlength{\uwalh at logotop}
+\setlength{\uwalh at logotop}{1.58cm}
+\newlength{\uwalh at addresswidth}
+\setlength{\uwalh at addresswidth}{6.25cm}
+\newlength{\uwalh at addresstop}
+\setlength{\uwalh at addresstop}{1.71cm}
+\newlength{\uwalh at addressleft}
+\setlength{\uwalh at addressleft}{12.25cm}
+\newlength{\uwalh at vspaceatstart}
+\setlength{\uwalh at vspaceatstart}{3.34cm}
+\newlength{\uwalh at noadvancewidth}
+\newcommand{\uwalh at noadvance}[1]{%
+        \settowidth{\uwalh at noadvancewidth}{#1}%
+        #1\hspace*{-1\uwalh at noadvancewidth}%
+}
+\newcommand*{\uwalh at school}{}
+\newcommand*{\uwalh at mbdp}{}
+\newcommand*{\uwalh at footermbdp}{}
+\newcommand*{\uwalh at university}{The University of Western Australia}
+\newcommand*{\uwalh at footeruniversity}{The University of Western Australia}
+\newcommand*{\uwalh at address}{35 Stirling Highway, Crawley WA 6009}
+\newcommand*{\uwalh at footeraddress}{Perth WA 6009 Australia}
+\newcommand*{\uwalh at cricos}{00126G}
+\newcommand*{\uwalh at uwacrest}{uwacrest-blue.pdf}
+\newcommand*{\uwalh at phone}{}
+\newcommand*{\uwalh at footerphone}{}
+\newcommand*{\uwalh at mobile}{}
+\newcommand*{\uwalh at email}{}
+\newcommand*{\uwalh at footeremail}{}
+\newcommand*{\uwalh at website}{www.uwa.edu.au}
+\newcommand*{\school}[1]{\renewcommand*{\uwalh at school}{#1}}
+\newcommand*{\mbdp}[1]{%
+        \renewcommand*{\uwalh at mbdp}{#1}%
+        \renewcommand*{\uwalh at footermbdp}{#1}%
+}
+\newcommand*{\university}[1]{%
+        \renewcommand*{\uwalh at university}{#1}%
+        \renewcommand*{\uwalh at footeruniversity}{#1}%
+}
+\newcommand*{\address}[1]{\renewcommand*{\uwalh at address}{#1}}
+\newcommand*{\footeraddress}[1]{\renewcommand*{\uwalh at footeraddress}{#1}}
+\newcommand*{\phone}[1]{%
+        \renewcommand*{\uwalh at phone}{#1}%
+        \renewcommand*{\uwalh at footerphone}{#1}%
+}
+\newcommand*{\mobile}[1]{\renewcommand*{\uwalh at mobile}{#1}}
+\newcommand*{\email}[1]{%
+        \renewcommand*{\uwalh at email}{#1}%
+        \renewcommand*{\uwalh at footeremail}{#1}%
+}
+\newcommand*{\website}[1]{\renewcommand*{\uwalh at website}{#1}}
+\newcommand*{\cricos}[1]{\renewcommand*{\uwalh at cricos}{#1}}
+\newcommand*{\uwacrest}[1]{\renewcommand*{\uwalh at uwacrest}{#1}}
+\def\@maketitle{%
+        \begin{center}%
+                \let\footnote\thanks
+                {\LARGE \uwalh at uwa \@title \par}%
+        \end{center}%
+        \par
+        \vskip 1.5em%
+}
+\renewcommand\maketitle{\par
+        \begingroup
+        \renewcommand\thefootnote{\@fnsymbol\c at footnote}%
+        \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+        \long\def\@makefntext##1{\parindent 1em\noindent
+                \hb at xt@1.8em{%
+                        \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+        \global\@topnum\z@
+        \@maketitle
+        \thispagestyle{empty}\@thanks
+        \endgroup
+        \setcounter{footnote}{0}%
+        \global\let\thanks\relax
+        \global\let\maketitle\relax
+        \global\let\@maketitle\relax
+        \global\let\@thanks\@empty
+        \global\let\@author\@empty
+        \global\let\@date\@empty
+        \global\let\@title\@empty
+        \global\let\title\relax
+        \global\let\author\relax
+        \global\let\date\relax
+        \global\let\and\relax
+}
+\newcommand{\uwalh at bar@blue}{%
+        \colorbox{UWALetterheadBlue}{%
+                \parbox[b][\uwalh at barheight]{\uwalh at bluewidth}{\vfill\hfill}%
+        }%
+}
+\newcommand{\uwalh at bar@gold}{%
+        \colorbox{UWALetterheadGold}{%
+                \parbox[b][\uwalh at barheight]{\uwalh at goldwidth}{\vfill\hfill}%
+        }%
+}
+\newcommand{\uwalh at bar}{%
+        \addtolength{\uwalh at barwidth}{12pt}
+        \begin{textblock*}{\uwalh at barwidth}(\uwalh at barleft, \uwalh at bartop)
+                \uwalh at bar@blue{}%
+                \uwalh at bar@gold{}%
+        \end{textblock*}%
+}
+\newcommand{\uwalh at logo}{%
+        \begin{textblock*}{\uwalh at logowidth}(\uwalh at logoleft, \uwalh at logotop)
+                \includegraphics[
+                        width=\uwalh at logowidth,
+                        height=\uwalh at logoheight
+                ]{\uwalh at uwacrest}
+        \end{textblock*}%
+}
+\newcommand{\uwalh at addressblock}{%
+        \begin{textblock*}%
+                {\uwalh at addresswidth}(\uwalh at addressleft, \uwalh at addresstop)
+                \begin{minipage}[t]{\uwalh at addresswidth}
+                        \sffamily\fontsize{11.19}{13.49}\selectfont%
+                        \@author{} \\
+                        \uwalh at school{}, M\uwalh at mbdp{} \\
+                        \uwalh at university{} \\
+                        \uwalh at address{} \\
+                        \noblanks[q]{\uwalh at phone}%
+                        Tel: \href{tel:\thestring}{\uwalh at phone} \\
+                        Email: \href{mailto:\uwalh at email}{\uwalh at email} \\
+                        \href{https://\uwalh@website/}{\uwalh at website}
+                \end{minipage}
+        \end{textblock*}%
+}
+\newcommand{\uwalh at fpf@address}{%
+        \begin{minipage}[t]{4.94cm}
+                \vspace*{-1\parskip}%
+                \rule{\textwidth}{1pt}%
+                \vspace{-1\baselineskip}\vspace{0.45cm} \\
+                \hspace*{0.005cm}\uwalh at footeruniversity{} \\
+                \hspace*{0.005cm}M\uwalh at footermbdp{} \uwalh at footeraddress{}
+        \end{minipage}%
+}
+\newcommand{\uwalh at fpf@phone}{%
+        \begin{minipage}[t]{4.945cm}
+                \vspace*{-1\parskip}%
+                \rule{\textwidth}{1pt}%
+                \vspace{-1\baselineskip}\vspace{0.45cm} \\
+                \uwalh at noadvance{\textcolor{UWALetterheadBlue}{\textbf{T}}}%
+                \hspace{0.375cm}%
+                \noblanks[q]{\uwalh at footerphone}%
+                \href{tel:\thestring}{\uwalh at footerphone} \\
+                \uwalh at noadvance{\textcolor{UWALetterheadBlue}{\textbf{M}}}%
+                \hspace{0.375cm}%
+                \noblanks[q]{\uwalh at mobile}%
+                \href{tel:\thestring}{\uwalh at mobile}
+        \end{minipage}%
+}
+\newcommand{\uwalh at fpf@email}{%
+        \begin{minipage}[t]{5.31cm}
+                \vspace*{-1\parskip}%
+                \rule{\textwidth}{1pt}%
+                \vspace{-1\baselineskip}\vspace{0.45cm} \\
+                \uwalh at noadvance{\textcolor{UWALetterheadBlue}{\textbf{E}}}%
+                \hspace{0.38cm}%
+                \href{mailto:\uwalh at footeremail}{\uwalh at footeremail} \\
+                \vspace{-1\baselineskip}\vspace{-0.018cm} \\
+                {\uwalh at arial\fontsize{5}{6.7}\selectfont%
+                        CRICOS Provider Code \uwalh at cricos{}%
+                }%
+        \end{minipage}%
+}
+\newcommand{\uwalh at firstpagefooter}{%
+        \begin{textblock*}{16cm}(2.5cm, 27.35cm)
+                {%
+                        \microtypesetup{activate=false}%
+                        \vspace*{-1\parskip}\vspace*{10.88pt}%
+                        \uwalh at arial\fontsize{7.5}{8.7}\selectfont%
+                        \color{UWALetterheadFooter}%
+                        \uwalh at fpf@address{}%
+                        \hspace{0.402cm}%
+                        \uwalh at fpf@phone{}%
+                        \hspace{0.402cm}%
+                        \uwalh at fpf@email{}%
+                        \microtypesetup{activate=true}%
+                }%
+        \end{textblock*}%
+}
+\newcommand{\uwalh at checkfield}[2]{%
+        \setbox0=\hbox{#1\unskip}\ifdim\wd0=0pt
+                \@latex at warning@no at line{No #2given}
+        \else
+                \relax%
+        \fi%
+}
+\newcommand{\uwalh at checkfields}{%
+        \uwalh at checkfield{\uwalh at school}{\noexpand\school}
+        \uwalh at checkfield{\uwalh at mbdp}{\noexpand\mbdp}
+        \uwalh at checkfield{\uwalh at phone}{\noexpand\phone}
+        \uwalh at checkfield{\uwalh at mobile}{\noexpand\mobile}
+        \uwalh at checkfield{\uwalh at email}{\noexpand\email}
+}
+\newcommand{\uwalh at makeletterhead}{%
+        \uwalh at checkfields{}%
+        \uwalh at bar{}%
+        \uwalh at logo{}%
+        \uwalh at addressblock{}%
+        \uwalh at firstpagefooter{}%
+        \vspace*{\uwalh at vspaceatstart}%
+}
+\AtBeginDocument{\uwalh at makeletterhead}
+\endinput
+%%
+%% End of file `uwa-letterhead.sty'.


Property changes on: trunk/Master/texmf-dist/tex/latex/uwa-letterhead/uwa-letterhead.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2021-09-10 21:02:58 UTC (rev 60467)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2021-09-10 21:03:41 UTC (rev 60468)
@@ -826,7 +826,8 @@
     upca uplatex upmethodology uppunctlm upquote
     uptex-base uptex-fonts upzhkinsoku
     uri url urlbst urcls urwchancal usebib ushort uspace uspatent
-    ut-thesis utexasthesis utf8add utf8mex utfsym uwa-colours uwmslide uwthesis
+    ut-thesis utexasthesis utf8add utf8mex utfsym
+    uwa-colours uwa-letterhead uwmslide uwthesis
   vak vancouver variablelm variations varindex varisize
     varsfromjobname varwidth vaucanson-g vcell vdmlisting
     velthuis venn venndiagram venturisadf

Modified: trunk/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc	2021-09-10 21:02:58 UTC (rev 60467)
+++ trunk/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc	2021-09-10 21:03:41 UTC (rev 60468)
@@ -242,6 +242,7 @@
 depend ut-thesis
 depend utexasthesis
 depend uwa-colours
+depend uwa-letterhead
 depend uwthesis
 depend vancouver
 depend xduthesis

Added: trunk/Master/tlpkg/tlpsrc/uwa-letterhead.tlpsrc
===================================================================


More information about the tex-live-commits mailing list.