diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/uvaletter/LICENSE | 21 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/uvaletter/README.md | 54 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/uvaletter/demo/uvaletter-demo.pdf | bin | 0 -> 134477 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/uvaletter/demo/uvaletter-demo.tex | 35 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/uvaletter/uvaletter.sty | 108 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 2 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-publishers.tlpsrc | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/uvaletter.tlpsrc | 0 |
8 files changed, 220 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/uvaletter/LICENSE b/Master/texmf-dist/doc/latex/uvaletter/LICENSE new file mode 100644 index 00000000000..0e3bcfd4923 --- /dev/null +++ b/Master/texmf-dist/doc/latex/uvaletter/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Michele Piazzai + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Master/texmf-dist/doc/latex/uvaletter/README.md b/Master/texmf-dist/doc/latex/uvaletter/README.md new file mode 100644 index 00000000000..eb1edbfc0a0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/uvaletter/README.md @@ -0,0 +1,54 @@ +<!-- +uvaletter v1.1.0 +author: Michele Piazzai +contact: michele.piazzai@uc3m.es +license: MIT +--> + +# uvaletter + +This is an unofficial LaTeX package that provides a letterhead template for the University of Amsterdam. The design mimics the [official Word template](https://www.uva.nl/over-de-uva/over-de-universiteit/huisstijl/downloadstools/brief/brief.html) of the University and complies with the University's [house style](https://www.uva.nl/over-de-uva/over-de-universiteit/huisstijl/huisstijl.html). + +![](https://github.com/piazzai/uvaletter/blob/master/screenshot.jpg) + +## Installation + +This package is hosted on CTAN and distributed as part of MikTex and TeXLive. It can also be installed manually by cloning this repository in your `$HOME/texmf/tex/latex` folder, which is searched by LaTeX. If you do not have such a folder, you can [create it](https://www.ias.edu/math/computing/faq/local-latex-style-files). + +## Usage + +The package can be loaded with a `pageno` option that enables page numbering. Be aware that, in order for the layout to display, your letter body should be wrapped in a `letterhead` environment. + +Here is a minimal working example: + +```tex +\documentclass{letter} +\usepackage{uvaletter} + +\logo{logo.jpg} +\recipient{foo} +\department{bar} +\visiting{} +\postal{} +\website{} +\date{} +\yourreference{} +\ourreference{} +\contactperson{} +\phone{} +\email{} +\subject{} +\enclosed{} + +\begin{document} +\begin{letterhead} + + Hello world! + +\end{letterhead} +\end{document} +``` + +The `\recipient{}` and `\department{}` commands are mandatory and their arguments must be non-empty. All other commands are optional and can be removed, commented out, or left empty. + +In order for a logo to be displayed, you must indicate a path to the image in `\logo{}`. All official logos of the University of Amsterdam, including faculties, departments, and institutes, can be found [here](https://www.uva.nl/over-de-uva/over-de-universiteit/huisstijl/huisstijlelementen/logo/logo.html). If a path is not provided or the file is not found, the logo space is left blank. diff --git a/Master/texmf-dist/doc/latex/uvaletter/demo/uvaletter-demo.pdf b/Master/texmf-dist/doc/latex/uvaletter/demo/uvaletter-demo.pdf Binary files differnew file mode 100644 index 00000000000..4d666822853 --- /dev/null +++ b/Master/texmf-dist/doc/latex/uvaletter/demo/uvaletter-demo.pdf diff --git a/Master/texmf-dist/doc/latex/uvaletter/demo/uvaletter-demo.tex b/Master/texmf-dist/doc/latex/uvaletter/demo/uvaletter-demo.tex new file mode 100644 index 00000000000..72276484f12 --- /dev/null +++ b/Master/texmf-dist/doc/latex/uvaletter/demo/uvaletter-demo.tex @@ -0,0 +1,35 @@ +\documentclass[11pt]{letter} +\usepackage[pageno]{uvaletter} + +\logo{logo.jpg} +\recipient{Place Holder \\ University of \TeX \\ 123 Main St \\ Anytown \\ USA} +\department{Amsterdam Business School} +\visiting{Plantage Muidergracht 12 \\ 1018 TV Amsterdam \\ The Netherlands} +\postal{P.O.~Box 15953 \\ 1001 NL Amsterdam \\ The Netherlands} +\website{www.abs.uva.nl} +\date{January 1, 1970} +\yourreference{Foo} +\ourreference{Bar} +\contactperson{Dr.~Plaatsvervanger} +\phone{+31\,(0)20\,525\,5250} +\email{p.holder@uva.nl} +\subject{Lorem ipsum dolor sit amet, consectetur adipisicing elit} +\enclosed{Attachment 1 \\ Attachment 2} + +\begin{document} +\begin{letterhead} + + Beste aanhef, + + Lorem ipsum dolor sit amet, consectetur adipisicing elit. Donec gravida velit in ornare accumsan. Maecenas id lorem non dui tempus pretium ut rhoncus lectus. Donec odio nibh, ultricies non imperdiet in, interdum eget enim. Sed fringilla dui at arcu auctor, consequat aliquam mauris faucibus. Mauris fringilla magna erat, a bibendum mi interdum non. Nulla mauris massa, tincidunt et fermentum vel, auctor ac felis. Nullam quis tristique orci, nec molestie mauris. Etiam velit odio, rhoncus quis sem ac, bibendum placerat sapien. Aenean ornare magna sit amet consectetur mattis. Etiam at ante iaculis, rutrum diam ac, dignissim purus. Vivamus vehicula scelerisque aliquet. + + Morbi et placerat turpis. Sed placerat ligula a ipsum pretium efficitur. In tincidunt urna quis faucibus ornare. Fusce commodo laoreet gravida. Donec tempus ante at ullamcorper imperdiet. Morbi lobortis neque eget eros luctus, vel dictum ex molestie. Proin eget viverra est. Morbi rhoncus, neque id molestie convallis, urna quam vulputate sem, id rhoncus est ex at nunc. Curabitur nisl felis, vehicula nec sapien rhoncus, imperdiet placerat erat. Curabitur tristique ipsum at odio mollis fringilla. Donec nisl leo, posuere in cursus a, ultricies ac massa. In imperdiet tempus tellus, ultrices iaculis metus bibendum ac. In quis interdum nisi. + + Nulla semper maximus nibh, vel sagittis odio. Aenean feugiat nunc erat, non auctor orci fringilla vel. Maecenas in finibus odio, nec elementum lorem. Ut varius tellus nec efficitur interdum. Ut orci turpis, auctor vel odio sed, euismod malesuada mi. Sed id bibendum nisl. Aliquam erat volutpat. Integer varius sapien non nunc interdum tempor. In rutrum ac quam at vulputate. Aenean. + + Met vriendelijke groet, + + Dr.~Plaatsvervanger, \\ Hoogleraar Sjablonen + +\end{letterhead} +\end{document} diff --git a/Master/texmf-dist/tex/latex/uvaletter/uvaletter.sty b/Master/texmf-dist/tex/latex/uvaletter/uvaletter.sty new file mode 100644 index 00000000000..c1148eeab7c --- /dev/null +++ b/Master/texmf-dist/tex/latex/uvaletter/uvaletter.sty @@ -0,0 +1,108 @@ +% uvaletter v1.1.0 +% Author: Michele Piazzai +% Contact: michele.piazzai@uc3m.es +% License: MIT + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{uvaletter}[2023/03/02 UvA Letter] + +\RequirePackage[T1]{fontenc} +\RequirePackage[utf8]{inputenc} +\RequirePackage[a4paper,margin=3.05cm]{geometry} +\RequirePackage{times,microtype,fancyhdr,setspace,graphicx,ifthen,soul,lastpage} + +\pagestyle{fancy} +\fancyhf{} +\DeclareOption{pageno}{\rfoot{\tabentry Page~\thepage~of~\pageref{LastPage}}} + +\newenvironment{letterhead}{% + \ifthenelse{\equal{\@logo}{}}{}{% + \IfFileExists{\@logo}{% + \begin{minipage}{\textwidth} + \vspace{-2cm}\hspace{-1.31cm}\includegraphics[width=.65\textwidth]{\@logo} + \end{minipage} + }{}} + \begin{minipage}[b]{.4975\textwidth} + \raggedright\@recipient + \end{minipage} + \begin{minipage}[b]{.4975\textwidth} + \raggedleft\small\sffamily + {\bfseries\@department} \\ + \ifthenelse{\equal{\@visiting}{}}{}{\medskip\@visiting \\} + \ifthenelse{\equal{\@postal}{}}{}{\medskip\@postal \\} + \medskip\@website + \end{minipage} + + \bigskip\bigskip\bigskip\bigskip + \begin{minipage}{.3\textwidth} + {\tabentry Date} + \newline\@date + \end{minipage} + \begin{minipage}{.3\textwidth} + {\tabentry Your reference} + \newline\@yourreference + \end{minipage} + \begin{minipage}{.3\textwidth} + {\tabentry Our reference} + \newline\@ourreference + \end{minipage} + + \begin{minipage}{.3\textwidth} + {\tabentry Contact person} + \newline\@contactperson + \end{minipage} + \begin{minipage}{.3\textwidth} + {\tabentry Telephone} + \newline\@phone + \end{minipage} + \begin{minipage}{.3\textwidth} + {\tabentry Email} + \newline\@email + \end{minipage} + + \begin{minipage}{\textwidth} + {\tabentry Subject} + \newline\@subject + \end{minipage} + + \ifthenelse{\equal{\@enclosed}{}}{\bigskip}{% + \begin{minipage}{\textwidth} + {\tabentry Enclosed} + \newline\@enclosed + \end{minipage} + \bigskip + } + \raggedright +}{} + +\ProcessOptions +\setlength{\parindent}{0pt} +\setlength{\parskip}{1em plus 0.2em minus 0.2em} +\renewcommand{\headrulewidth}{0pt} +\newcommand\tabentry{\scriptsize\sffamily} +\newcommand\logo[1]{\renewcommand\@logo{#1}} +\newcommand\@logo{} +\newcommand\recipient[1]{\renewcommand\@recipient{#1}} +\newcommand\@recipient{} +\newcommand\department[1]{\renewcommand\@department{#1}} +\newcommand\@department{} +\newcommand\visiting[1]{\renewcommand\@visiting{#1}} +\newcommand\@visiting{} +\newcommand\postal[1]{\renewcommand\@postal{#1}} +\newcommand\@postal{} +\newcommand\website[1]{\renewcommand\@website{#1}} +\newcommand\@website{} +\newcommand\yourreference[1]{\renewcommand\@yourreference{#1}} +\newcommand\@yourreference{} +\newcommand\ourreference[1]{\renewcommand\@ourreference{#1}} +\newcommand\@ourreference{} +\newcommand\contactperson[1]{\renewcommand\@contactperson{#1}} +\newcommand\@contactperson{} +\newcommand\phone[1]{\renewcommand\@phone{#1}} +\newcommand\@phone{} +\newcommand\email[1]{\renewcommand\@email{#1}} +\newcommand\@email{} +\newcommand\subject[1]{\renewcommand\@subject{#1}} +\newcommand\@subject{} +\newcommand\enclosed[1]{\renewcommand\@enclosed{#1}} +\newcommand\@enclosed{} diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index d21721aa0c9..49ca3a261da 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -865,7 +865,7 @@ my @TLP_working = qw( 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 + ut-thesis utexasthesis utf8add utf8mex utfsym uvaletter uwa-colours uwa-letterhead uwa-pcf uwa-pif uwmslide uwthesis vak vancouver variablelm variations varindex varisize varsfromjobname varwidth vaucanson-g vcell vdmlisting diff --git a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc index b99aac384b9..2198114388b 100644 --- a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc @@ -264,6 +264,7 @@ depend uowthesistitlepage depend uspatent depend ut-thesis depend utexasthesis +depend uvaletter depend uwa-colours depend uwa-letterhead depend uwa-pcf diff --git a/Master/tlpkg/tlpsrc/uvaletter.tlpsrc b/Master/tlpkg/tlpsrc/uvaletter.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/uvaletter.tlpsrc |