From e1378d48a2e7d9c329f0073d8ce4ad98e6206284 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 9 Jan 2017 22:08:16 +0000 Subject: uantwerpendocs (9jan17) git-svn-id: svn://tug.org/texlive/trunk@42912 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/latex/uantwerpendocs/uantwerpendocs.dtx | 58 ++++++++++++++++------ 1 file changed, 44 insertions(+), 14 deletions(-) (limited to 'Master/texmf-dist/source/latex/uantwerpendocs') diff --git a/Master/texmf-dist/source/latex/uantwerpendocs/uantwerpendocs.dtx b/Master/texmf-dist/source/latex/uantwerpendocs/uantwerpendocs.dtx index 3977784ae62..09b2ab6b71b 100644 --- a/Master/texmf-dist/source/latex/uantwerpendocs/uantwerpendocs.dtx +++ b/Master/texmf-dist/source/latex/uantwerpendocs/uantwerpendocs.dtx @@ -30,8 +30,8 @@ %\ProvidesClass{uantwerpenletter} % [2016/05/01 v1.7 .dtx skeleton file] % -\def\fileversion{1.7} -\def\filedate{2016/05/01} +\def\fileversion{1.8} +\def\filedate{2017/01/08} %<*driver> \documentclass{ltxdoc} \usepackage{makeidx} @@ -81,6 +81,8 @@ % Applied Economics} % \changes{v1.7}{2016/05/01}{\@ Added babel translations of elements % of master's thesis title page} +% \changes{v1.8}{2018/01/08}{\@ Corrected minor typographic mistakes, +% added signature and solved problems with shell escape} % % \DoNotIndex{\newcommand,\newenvironment} % \setlength{\parindent}{0em} @@ -133,7 +135,7 @@ % They require (and use) the following packages: % \begin{itemize} % \item the |ifthen| package -% \item the |mtarg| package +% \item the |ifmtarg| package % \item the |geometry| package % \item teh |atbegshi| package % \item the |hyperref| package @@ -651,6 +653,11 @@ % \DescribeMacro{\closing} [letter] (mandatory) \\ % Closing clause of the letter. E.g. 'Best regards,'. % +% \DescribeMacro{\signature} [letter] (optional) \\ +% Add a signature (in between the closing statement of the +% letter and the sender's name. This might be a text message or a +% picture of your signature. +% % \DescribeMacro{\carboncopy} [letter] (optional)\\ % List of persons receiving a copy of this letter. Format at will. % @@ -1031,7 +1038,8 @@ doloribus asperiores repellat. doloribus asperiores repellat. \closing{Kind regards,} - + % you might want to insert a signature picture or text: + % \signature{\includegraphics{signature.jpg}} \carboncopy{Prof. S. Mariotte, Mumford University} \enclosed{ \begin{enumerate} @@ -1185,10 +1193,14 @@ doloribus asperiores repellat. % % \subsubsection{Boilerplate packages} % -% Some boilerplate packages and an empty macro to test against (using|\ifx|) +% Some boilerplate packages and an empty macro to test against +% (using|\ifx|) +% \changes{v1.8}{2017/01/08}{Added missing packages ifmtarg and shellesc} % \begin{macrocode} %<*ct|mt|le> \RequirePackage{ifthen} +\RequirePackage{ifmtarg} +\RequirePackage{shellesc} \newcommand{\@emptymacro}{} % % \end{macrocode} @@ -1968,6 +1980,18 @@ E cursusdienst.cgb@uantwerpen.be} % \end{macrocode} % \end{macro} % +% \begin{macro}{\signature} +% \changes{v1.8}{2017/01/08}{Added signature} +% This macro sets the |\@signature| tag that will be used to finish +% the letter. By default this corresponds to a decent amount of vertical white space +% \begin{macrocode} +%<*le> +\newcommand{\@signature}{\vspace*{8ex}} +\renewcommand*{\signature}[1]{\renewcommand{\@signature}{#1}} +% +% \end{macrocode} +% \end{macro} +% % % \begin{macro}{\carboncopy} % This macro will set the |\@carboncopy| tag that will be used in @@ -2377,6 +2401,7 @@ L: \@qrlectureri % Below, one can find the code for the final page of the % |uantwerpencoursetext| class: % \changes{v1.3}{2015/12/31}{Changed eso-pic for tikz} +% \changes{v1.8}{2016/07/06}{Inserted blank one but last page} % \begin{macrocode} %<*ct> \newcommand\makefinalpage{ @@ -2384,6 +2409,9 @@ L: \@qrlectureri \else \cleardoublepage \thispagestyle{empty} + ~% intentionally blank page + \clearpage + \thispagestyle{empty} \begin{tikzpicture}[remember picture,overlay] \node at (current page.center) { \begin{tikzpicture}[inner sep=0pt] @@ -2517,6 +2545,7 @@ L: \@qrlectureri % command. % % \changes{v1.5}{2016/01/11}{Implemented new footer} +% \changes{v1.8}{2016/01/08}{Allowed for empty senderrole} % \begin{macrocode} %<*le> \newcommand\maketitle{% @@ -2545,8 +2574,8 @@ L: \@qrlectureri {\includegraphics{\footername}}; \end{tikzpicture} ~\\[3ex] - \textcolor{uacorpblue}{\bf \@sender}\\* - \@senderrole\\[1.75ex] + \textcolor{uacorpblue}{\bf \@sender} + \ifx\@senderrole\@emptymacro\\[1.75ex]\else \\*\@senderrole\\[1.75ex]\fi \@faculty \ifx\@unit\@emptymacro\else\\* \@unit\fi~\\[1.75ex] \@address\\[1.75ex] @@ -2570,18 +2599,19 @@ L: \@qrlectureri % \end{macro} % % The trailer of the page is automatically generated at the end of the document: -% \begin{macrocode} +% \changes{v1.8}{2016/01/08}{Allowed for empty senderrole} +% \begin{macrocode} %<*le> \AtEndDocument{ - \@closing\\*[12ex] - \@sender\\* - \@senderrole + \@closing\\*[3ex]\@signature~\\[3ex] + \@sender + \ifx\@senderrole\@emptymacro\\[8ex]\else\\*\@senderrole\\[8ex]\fi \setlength{\parskip}{0em} - \ifx\@carboncopy\@emptymacro\else ~\\[4ex] CC: \@carboncopy\fi - \ifx\@enclosed\@emptymacro\else ~\\[4ex] ENCL: \@enclosed\fi + \ifx\@carboncopy\@emptymacro\else CC: \@carboncopy\\[4ex]\fi + \ifx\@enclosed\@emptymacro\else ENCL: \@enclosed\fi \label{lastpage} } -% +% % \end{macrocode} % % \subsection{References} -- cgit v1.2.3