diff options
author | Karl Berry <karl@freefriends.org> | 2016-01-08 22:25:35 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-01-08 22:25:35 +0000 |
commit | b6664640422f02610aa8624985b33edfa4d0f6b2 (patch) | |
tree | e8207ec230680a69a28c3b6a2666a724b1002b8b /Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenletter.cls | |
parent | 28ae25e8b8174c6312ec23f63edf12f160321412 (diff) |
uantwerpendocs (8jan16)
git-svn-id: svn://tug.org/texlive/trunk@39321 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenletter.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenletter.cls | 279 |
1 files changed, 279 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenletter.cls b/Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenletter.cls new file mode 100644 index 00000000000..51294f6de31 --- /dev/null +++ b/Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenletter.cls @@ -0,0 +1,279 @@ +%% +%% This is file `uantwerpenletter.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% uantwerpendocs.dtx (with options: `le') +%% +%% This is a generated file. +%% +%% Copyright (C) 2013-2016 by Paul Levrie <paul.levrie@uantwerpen.be> +%% and Walter Daems <walter.daems@uantwerpen.be> +%% +%% 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 Walter Daems. +%% +\ProvidesClass{uantwerpenletter} +\def\fileversion{1.4} +\def\filedate{2016/01/07} + +\newif\if@filled +\DeclareOption{filled}{\@filledtrue} +\ExecuteOptions{a4paper,10pt,final,oneside,openright} +\ProcessOptions +\LoadClassWithOptions{letter} +\newcommand\tat{\makeatletter @\makeatother} +\newcommand\tbs{\textbackslash} +\setlength{\parindent}{0pt} +\addtolength{\parskip}{0.75\baselineskip} +\setcounter{secnumdepth}{3} +\RequirePackage[top=1in, bottom=1.34in, left=1.34in, right=1in]{geometry} +\RequirePackage[normalem]{ulem} +\RequirePackage{atbegshi} +\RequirePackage{ifthen} +\newcommand{\@emptymacro}{} +\RequirePackage{graphicx} +\RequirePackage{color} +\RequirePackage{tikz} +\RequirePackage{fancyhdr} +\definecolor{uacorpbord}{cmyk} {0.00,1.00,0.60,0.37} +\definecolor{uacorpblue}{cmyk} {1.00,0.25,0.00,0.50} +\definecolor{uacorplightblue}{cmyk}{1.00,0.00,0.08,0.13} +\definecolor{uacorporange}{cmyk} {0.00,0.32,1.00,0.09} +\definecolor{uaftifresh}{cmyk} {0.34,1.00,0.00,0.00} +\definecolor{uaftisober}{cmyk} {0.10,1.00,0.00,0.49} +\definecolor{lightgray}{cmyk} {0.00,0.00,0.00,0.05} +\newcommand{\logoname}{UA_HOR_ENG_CMYK} +\newcommand{\orname}{of} +\newcommand{\domainname}{uantwerp.be} +\newcommand{\datename}{Date} +\newcommand{\subjectname}{Subject} +\AtBeginDocument{ + \@ifpackageloaded{babel}{ + \addto\captionsdutch{% + \renewcommand{\logoname}{UA_HOR_NED_CMYK} + \renewcommand{\orname}{van} + \renewcommand{\domainname}{uantwerpen.be} + \renewcommand{\subjectname}{Onderwerp}% + \renewcommand{\datename}{Datum}% + } + \addto\captionsgerman{% + \renewcommand{\logoname}{UA_HOR_DUI_CMYK} + \renewcommand{\orname}{von} + \renewcommand{\domainname}{uantwerpen.be} + \renewcommand{\subjectname}{Betreff}% + \renewcommand{\datename}{Datum}% + } + \addto\captionsfrench{% + \renewcommand{\logoname}{UA_HOR_FRA_CMYK} + \renewcommand{\orname}{de} + \renewcommand{\domainname}{uanvers.be} + \renewcommand{\subjectname}{Objet}% + \renewcommand{\datename}{Date}% + } + \addto\captionsspanish{% + \renewcommand{\logoname}{UA_HOR_SPA_CMYK} + \renewcommand{\orname}{de} + \renewcommand{\domainname}{uantwerp.be} + \renewcommand{\subjectname}{Asunto}% + \renewcommand{\datename}{Fecha}% + } + } + {} +} +\newcommand{\@facultyacronym}{} +\newcommand{\@faculty}{< Specify faculty using \tbs{}facultyacronym\{ABC\} >} +\newcommand{\facultyacronym}[1]{ + \renewcommand{\@facultyacronym}{#1} + \ifthenelse{\equal{#1}{CPG}}{\renewcommand\@faculty{Centrum + Pieter Gillis}}{ + \ifthenelse{\equal{#1}{FBD}}{\renewcommand\@faculty{Faculteit + Farmaceutische, Biomedische en Diergeneeskundige Wetenschappen}}{ + \ifthenelse{\equal{#1}{GGW}}{\renewcommand\@faculty{Faculteit + Geneeskunde en Gezondheidswetenschappen}}{ + \ifthenelse{\equal{#1}{IOB}}{\renewcommand\@faculty{Instituut + voor Ontwikkelingsbeleid- en beheer}}{ + \ifthenelse{\equal{#1}{IOIW}}{\renewcommand\@faculty{Instituut + voor Onderwijs- en Informatiewetenschappen}}{ + \ifthenelse{\equal{#1}{LW}}{\renewcommand\@faculty{Faculteit + Letteren en Wijsbegeerte}}{ + \ifthenelse{\equal{#1}{OW}}{\renewcommand\@faculty{Faculteit + Ontwerpwetenschappen}}{ + \ifthenelse{\equal{#1}{SW}}{\renewcommand\@faculty{Faculteit + Sociale Wetenschappen}}{ + \ifthenelse{\equal{#1}{REC}}{\renewcommand\@faculty{Faculteit + Rechten}}{ + \ifthenelse{\equal{#1}{TEW}}{\renewcommand\@faculty{Faculteit + Toegepaste Economische Wetenschappen}}{ + \ifthenelse{\equal{#1}{TI}}{\renewcommand\@faculty{Faculteit + Toegepaste Ingenieurswetenschappen}}{ + \ifthenelse{\equal{#1}{WET}}{\renewcommand\@faculty{Faculteit + Wetenschappen}}{ + \errmessage{Error: wrong faculty acronym; choose one of FBD, GGW, + LW, OW, PSW, REC, TEW, TI, WET}}}}}}}}}}}}}} +\newcommand{\@sender}{< Specify sender using + \tbs{}sender\{name\}\{role\} >} +\newcommand{\@senderrole}{~} +\newcommand{\sender}[2]{\renewcommand{\@sender}{#1}\renewcommand{\@senderrole}{#2}} +\newcommand{\@logo}{\logoname} +\newcommand{\logo}[1]{\renewcommand{\@unit}{#1}} +\newcommand{\@unit}{} +\newcommand{\unit}[1]{\renewcommand{\@unit}{#1}} +\newcommand{\@emailuser}{} +\newcommand{\@emaildomain}{} +\newcommand{\email}[2]{\renewcommand{\@emailuser}{#1}\renewcommand{\@emaildomain}{#2}} +\newcommand{\@phone}{} +\newcommand{\phone}[1]{\renewcommand{\@phone}{#1}} +\newcommand{\@fax}{} +\newcommand{\fax}[1]{\renewcommand{\@fax}{#1}} +\newcommand{\@mobile}{} +\newcommand{\mobile}[1]{\renewcommand{\@mobile}{#1}} +\newcommand{\@returnaddress}{<specify return-address using \tbs\{single-line-return-address\}>} +\renewcommand{\returnaddress}[1]{\renewcommand{\@returnaddress}{#1}} +\newcommand{\@to}{<Specify addressee using \tbs to\{name\}>} +\renewcommand{\to}[1]{\renewcommand{\@to}{#1}} +\newcommand{\@toorganization}{<Specify organization using + \tbs toorganization\{\}>} +\newcommand{\toorganization}[1]{\renewcommand{\@toorganization}{#1}} +\newcommand{\@toaddress}{<Specify (multiline) destination address\\using \tbs toaddress\{\}>} +\newcommand{\toaddress}[1]{\renewcommand{\@toaddress}{#1}} +\newcommand{\@subject}{-} +\newcommand*{\subject}[1]{\renewcommand{\@subject}{#1}} +\renewcommand*{\opening}[1]{#1} +\newcommand{\@closing}{<specify a closing formula using \tbs closing\{\}>} +\renewcommand*{\closing}[1]{\renewcommand{\@closing}{#1}} +\newcommand{\@carboncopy}{} +\newcommand{\carboncopy}[1]{\renewcommand{\@carboncopy}{#1}} +\newcommand{\@enclosed}{} +\newcommand{\enclosed}[1]{\renewcommand{\@enclosed}{#1}} +\newcommand{\@address}{< Put your multi-line address here\\using + \tbs address\{\} >} +\renewcommand{\address}[1]{\renewcommand{\@address}{#1}} +\lhead[]{} +\chead[]{} +\rhead[]{} +\lfoot[\small\textcolor{gray}{\@date}]{\textcolor{gray}{\@date}} +\cfoot[]{} +\rfoot[\small\textcolor{gray}{\pagename~\thepage~\orname~\pageref{lastpage}}]{\small\textcolor{gray}{\pagename~\thepage~\orname~\pageref{lastpage}}} +\renewcommand{\headrulewidth}{0pt} +\renewcommand{\footrulewidth}{0pt} +\if@filled\else + \raggedright +\fi +\raggedbottom +\onecolumn +\newcommand\maketitle{% + \pagestyle{fancy} + \thispagestyle{empty} + \begin{tikzpicture}[overlay,remember picture] + \path (current page.north west) +(1.8cm,-1.2cm) + node[anchor=north west] { + \includegraphics[height=1.1cm]{\@logo} + }; + \draw (current page.north west) + +(1cm,-98mm) -- +(1.5cm,-98mm); + % 90 x 45 + % pos: 20mm van kant, 15mm van onderkant + \path (current page.north east) +(-100mm,-65mm) + node[anchor=west,text width=80mm,align=left] { + \scriptsize\textcolor{gray}{\uline{\@returnaddress}}\\* + \normalsize\@to\\* + \@toorganization\\* + \@toaddress + }; + \end{tikzpicture} + % \begin{tikzpicture}[overlay,remember picture] + % \draw[fill,uacorpblue] (current page.south) + % ++(+2cm,+108cm) + % ++(-2cm*1.002,-2cm*28*1.002) + % circle (49cm); + % \draw[fill,white] (current page.south) + % ++(+2cm,+108cm) + % circle (105cm); + % \end{tikzpicture} + \begin{tikzpicture}[overlay,remember picture] + \coordinate (bordcirclecenter) at (-8cm,+107cm); + \begin{pgfinterruptboundingbox} + \path[clip, insert path={{[reset cm] + (-16383.9999pt,-16383.9999pt) rectangle + (16383.9999pt,16383.9999pt)}}] + (current page.south) + ++(bordcirclecenter) + circle (105cm); + \end{pgfinterruptboundingbox} + \draw[fill,uacorpbord] + (current page.south) + ++(bordcirclecenter) + ++(2cm*1.002,-2cm*14*1.002) + circle (77cm); + \end{tikzpicture} + \begin{tikzpicture}[overlay,remember picture] + \coordinate (bluecirclecenter) at (+2cm,+107cm); + \begin{pgfinterruptboundingbox} + \path[clip, insert path={{[reset cm] + (-16383.9999pt,-16383.9999pt) rectangle + (16383.9999pt,16383.9999pt)}}] + (current page.south) + ++(bluecirclecenter) + circle (105cm); + \end{pgfinterruptboundingbox} + \draw[fill,uacorpblue] (current page.south) + ++(bluecirclecenter) + ++(-2cm*1.002,-2cm*24*1.002) + circle (57cm); + \end{tikzpicture} + \begin{tikzpicture}[overlay,remember picture] + \path (current page.south east) + ++(-1in,+2.2cm) node[left,align=right] {\textcolor{uacorpblue}{\LARGE \domainname}}; + \end{tikzpicture} + ~\\[3ex] + \textcolor{uacorpblue}{\bf \@sender}\\* + \@senderrole\\[1.75ex] + \@faculty + \ifx\@unit\@emptymacro\else\\* \@unit\fi~\\[1.75ex] + \@address\\[1.75ex] + \ifx\@email\@emptymacro\else E \@emailuser\tat{}\@emaildomain\\\fi + \ifx\@phone\@emptymacro\else T \@phone\\\fi + \ifx\@fax\@emptymacro\else F \@fax\\\fi + \ifx\@mobile\@emptymacro\else M \@mobile\\\fi + ~\\[4ex] + \begin{tikzpicture}[anchor=north west,align=left,outer sep=0,inner sep=0] + \path + (0,0) node { \scriptsize \strut + \textcolor{gray}{\uppercase\expandafter{\datename} } } + (4cm,0) node { \scriptsize \strut + \textcolor{gray}{\uppercase\expandafter{\subjectname} } } + (0,-2.5ex) node { \strut \@date } + (4cm,-2.5ex) node[align=left] { \strut \@subject }; + \end{tikzpicture}~\\[4ex] + % dirty but effective hack to enlarge the page after the first one + \makeatletter + \AtBeginShipoutNext{% + \global\addtolength{\textheight}{0.34in}% + \global\setlength{\@colht}{\textheight}} + \makeatother +} +\AtEndDocument{ + \@closing\\*[12ex] + \@sender\\* + \@senderrole + \setlength{\parskip}{0em} + \ifx\@carboncopy\@emptymacro\else ~\\[4ex] CC: \@carboncopy\fi + \ifx\@enclosed\@emptymacro\else ~\\[4ex] ENCL: \@enclosed\fi + \label{lastpage} +} +\endinput +%% +%% End of file `uantwerpenletter.cls'. |