Initial version of tuos-logo.sty.
This commit is contained in:
parent
3204db76b3
commit
5da225adb0
|
@ -0,0 +1 @@
|
|||
tuos-logo/logo/*.jpg
|
|
@ -3,7 +3,9 @@ Various LaTeX templates mimicking the cooperate guidelines of the The
|
|||
University of Sheffield.
|
||||
|
||||
* **tuos-fonts:** LaTeX style for using the cooperate fonts used by
|
||||
The University Sheffield.
|
||||
The University of Sheffield.
|
||||
* **tuos-logo:** LaTeX style for using the logo of the The University of
|
||||
Sheffield.
|
||||
|
||||
|
||||
## License
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
Copyright (c) 2016 Achim D. Brucker
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@ -0,0 +1,47 @@
|
|||
# tuos-fonts
|
||||
Trivial LaTeX style for using logo of The University of Sheffield.
|
||||
|
||||
## Disclaimer
|
||||
Please not that this LaTeX setup is neither endorsed nor officially
|
||||
supported by the University of Sheffield.
|
||||
|
||||
## Prerequisites
|
||||
Download the following archives, unzip the them and store the
|
||||
extracted jpg-images in the `logo` folder.
|
||||
* [Colour logo for printing on a white background (medium)](https://www.shef.ac.uk/polopoly_fs/1.15339!/file/tuoslogo_key_cmyk_med.zip)
|
||||
* [Colour logo for printing on a white background (high)](https://www.shef.ac.uk/polopoly_fs/1.15338!/file/tuoslogo_key_cmyk_hi.zip)
|
||||
* [B/W logo for printing on a white background (medium)](https://www.shef.ac.uk/polopoly_fs/1.15336!/file/tuoslogo_key_bw_med.zip)
|
||||
* [B/W logo for printing on a white background (high)](https://www.shef.ac.uk/polopoly_fs/1.15337!/file/tuoslogo_key_bw_vhi.zip)
|
||||
* [Colour logo for printing on a colour background (medium)](https://www.shef.ac.uk/polopoly_fs/1.15343!/file/tuoslogo_cmyk_med.zip)
|
||||
* [Colour logo for printing on a colour background (high)](https://www.shef.ac.uk/polopoly_fs/1.15342!/file/tuoslogo_cmyk_hi.zip)
|
||||
* [B/W logo for printing on a colour background (medium)](https://www.shef.ac.uk/polopoly_fs/1.15340!/file/tuoslogo_bw_med.zip)
|
||||
* [B/W logo for printing on a colour background (high)](https://www.shef.ac.uk/polopoly_fs/1.15341!/file/tuoslogo_bw_vhi.zip)
|
||||
|
||||
Please note that the use of the logo is governed by the
|
||||
[terms and conditions](https://www.shef.ac.uk/marketing/help-yourself/visual-identity/downloads/logos/terms-and-conditions)
|
||||
set out by The University of Sheffield.
|
||||
|
||||
## Installation
|
||||
|
||||
## Usage
|
||||
Including the style in your latex document, i.e.,
|
||||
```
|
||||
\usepackage{tuos-logo}
|
||||
```
|
||||
defines two commands:
|
||||
```
|
||||
\tuosLogoLight
|
||||
\tuosLogoDark
|
||||
```
|
||||
where the first variant prints the logo designed for white (light)
|
||||
backgrounds and the latter print the logo designed for coloured (dark)
|
||||
backgrounds. Both commands take the same optional arguments as the
|
||||
`\includegraphics[]{}` command of the `graphicx` package.
|
||||
|
||||
The package itself has two options:
|
||||
* `high` for using the high resolution logo and
|
||||
* `bw` for using the black-and-white logo instead of the colour logo.
|
||||
|
||||
## License
|
||||
This project is dual-licensed under a 2-clause BSD-style license and/or the LPPL version 1 or any later version.
|
||||
|
Binary file not shown.
|
@ -0,0 +1,7 @@
|
|||
\documentclass{article}
|
||||
\usepackage{tuos-logo}
|
||||
\begin{document}
|
||||
\tuosLogoLight
|
||||
|
||||
\tuosLogoLight[width=2cm]
|
||||
\end{document}
|
|
@ -0,0 +1,50 @@
|
|||
%% Copyright (C) 2016 Achim D. Brucker, https://www.brucker.ch
|
||||
%%
|
||||
%% License:
|
||||
%% This program can be redistributed and/or modified under the terms
|
||||
%% of the LaTeX Project Public License Distributed from CTAN
|
||||
%% archives in directory macros/latex/base/lppl.txt; either
|
||||
%% version 1 of the License, or any later version.
|
||||
%% OR
|
||||
%% The 2-clause BSD-style license.
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{tuos-logo}
|
||||
[2016/07/27 The University of Sheffield Logo.]
|
||||
\RequirePackage{graphicx}
|
||||
\RequirePackage{ifthen}
|
||||
|
||||
\newboolean{high}
|
||||
\setboolean{high}{false}
|
||||
|
||||
\newboolean{bw}
|
||||
\setboolean{bw}{false}
|
||||
|
||||
\DeclareOption{high}{
|
||||
\setboolean{high}{true}
|
||||
}
|
||||
\DeclareOption{bw}{
|
||||
\setboolean{bw}{true}
|
||||
}
|
||||
|
||||
% Default setup: colour logo with low/medium resolution.
|
||||
\ProcessOptions\relax
|
||||
|
||||
\ifthenelse{\boolean{high}}{%
|
||||
\ifthenelse{\boolean{bw}}{
|
||||
\newcommand{\tuosLogoDark}[1][]{\includegraphics[#1]{logo/tuoslogo_bw_vhi}}
|
||||
\newcommand{\tuosLogoLight}[1][]{\includegraphics[#1]{logo/tuoslogo_key_bw_vhi}}
|
||||
}{
|
||||
\newcommand{\tuosLogoLight}[1][]{\includegraphics[#1]{logo/tuoslogo_key_cmyk_hi}}
|
||||
\newcommand{\tuosLogoDark}[1][]{\includegraphics[#1]{logo/tuoslogo_cmyk_hi}}
|
||||
}
|
||||
}{
|
||||
\ifthenelse{\boolean{bw}}{
|
||||
\newcommand{\tuosLogoDark}[1][]{\includegraphics[#1]{logo/tuoslogo_bw_med}}
|
||||
\newcommand{\tuosLogoLight}[1][]{\includegraphics[#1]{logo/tuoslogo_key_bw_med}}
|
||||
}{
|
||||
\newcommand{\tuosLogoDark}[1][]{\includegraphics[#1]{logo/tuoslogo_cmyk_med}}
|
||||
\newcommand{\tuosLogoLight}[1][]{\includegraphics[#1]{logo/tuoslogo_key_cmyk_med}}
|
||||
}
|
||||
}
|
||||
|
||||
\endinput
|
Reference in New Issue