From b79a6235289329238aed57f2b8afca0a577c770d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 20 Jun 2018 21:03:52 +0000 Subject: uantwerpendocs (20jun18) git-svn-id: svn://tug.org/texlive/trunk@48061 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/latex/uantwerpendocs/uantwerpendocs.dtx | 169 ++++++++++++--------- 1 file changed, 95 insertions(+), 74 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 f311585d103..087249b1796 100644 --- a/Master/texmf-dist/source/latex/uantwerpendocs/uantwerpendocs.dtx +++ b/Master/texmf-dist/source/latex/uantwerpendocs/uantwerpendocs.dtx @@ -30,7 +30,7 @@ %\ProvidesClass{uantwerpenphdthesis} %\ProvidesClass{uantwerpenletter} %\ProvidesClass{uantwerpenexam} -% [2018/05/16 v2.0 .dtx skeleton file] +% [2018/06/20 v2.1 .dtx skeleton file] % \def\fileversion{2.0} \def\filedate{2018/05/16} @@ -91,6 +91,8 @@ % package} % \changes{v2.0}{2018/05/16}{\@ Implemented uantwerpenphdthesis class % into package} +% \changes{v2.1}{2018/06/20}{\@ Bugfix release after promotion event +% on research day} % % % \DoNotIndex{\newcommand,\newenvironment} @@ -343,7 +345,6 @@ % % % write your PhD text here % -% \backmatter % \appendix % % % write appendix material here @@ -653,7 +654,7 @@ % uses for its internal administration. It may be a proprietary code, % or an ISBN number. % -% \DescribeMacro{\subtitle} [coursetext] (optional)\\ +% \DescribeMacro{\subtitle} [coursetext / phdthesis] (optional)\\ % This macro sets the title of the document. You may use this % \begin{itemize} % \item to further clarify the title @@ -929,7 +930,6 @@ \chapter{Besluit} -\backmatter \appendix \chapter{Symbolen} @@ -998,7 +998,6 @@ \chapter{Besluit} -\backmatter \appendix \chapter{Symbolen} @@ -1021,13 +1020,15 @@ % You may want to use common fonts \usepackage{mathptmx} \usepackage{fontspec} -\setmainfont{Times New Roman} \setsansfont{Calibri} \usepackage[dutch]{babel} % or dutch if your text is in Dutch \usepackage{lipsum} % this is just for some dummy text, please remove -\title{Harmonische Signaalanalyse\\met behulp van\\Lineaire Operatoren} +\title{Harmonische Signaalanalyse\\met behulp van Lineaire + Operatoren} +\subtitle{Waarom moeten titels van doctoraatsthesissen toch altijd + lang en onverstaanbaar zijn?} \author{Ing. Theofiel Hoekaff} \facultyacronym{TI} \programme{PHD}{IW}{EI} @@ -1097,11 +1098,10 @@ \lipsum[25] -\backmatter \appendix - \chapter{Symbolen} +\chapter{Publicaties} % Put your bibliography here using BibTeX \makefinalpage @@ -1115,10 +1115,15 @@ %<*pt-example2> \documentclass[b5paper,10pt,twoside,openright,filled]{uantwerpenphdthesis} +% use some fancy font +\usepackage{newpxtext} +\usepackage{newpxmath} + \usepackage[english]{babel} % or dutch if your text is in Dutch \usepackage{lipsum} % this is just for some dummy text, please remove \title{Harmonic Signal analysis\\based on Linear Operators} +\subtitle{How did Mindy linearly kill Mork's IC signal analyzer?} \author{Ing. Theodore Edgeoff} \facultyacronym{TI} \affiliation{University of Antwerp\\ @@ -1188,7 +1193,6 @@ \lipsum[25] -\backmatter \appendix \chapter{Symbols} @@ -1381,6 +1385,8 @@ Succes! } \studentnr{127} +\setmcsymbol{\bigcirc} + \begin{document} \maketitle \question{[VLATOP-BISTRO]} @@ -1400,7 +1406,7 @@ Welk van de onderstaande ingredi\"enten hoort niet thuis in \mc{Eieren} \mc{Suiker} -\insertsolutionspagepartial{22} +\insertsolutionspagepartial{2} \insertsolutionspage{} \clearpage @@ -1416,7 +1422,7 @@ Welk van de onderstaande ingredi\"enten hoort niet thuis in Gault-Millau. \end{enumerate} -\insertsolutionspagepartial{25} +\insertsolutionspagepartial{23} \foreach \i in {1,2,3} { \insertsolutionspage{} } @@ -1571,7 +1577,7 @@ Welk van de onderstaande ingredi\"enten hoort niet thuis in \insertsolutionspage{} } \foreach \i in {1,2} { - \insertsolutionspage{Kladpapier} + \insertsolutionspage{Scrap/Klad} } \end{document} % @@ -1722,6 +1728,7 @@ Welk van de onderstaande ingredi\"enten hoort niet thuis in \RequirePackage{graphicx} \RequirePackage{color} \RequirePackage{tikz} +\usetikzlibrary{positioning} \RequirePackage{eso-pic} % %<*ct> @@ -2113,12 +2120,18 @@ Welk van de onderstaande ingredi\"enten hoort niet thuis in % \end{macro} % % \begin{macro}{\subtitle} +% \changes{v2.1}{2018/06/20}{Added subtitle to phd text} +% \changes{v2.1}{2018/06/20}{Ensured that subtitle is really +% optional by adding default space value} % This macro sets the |\@subtitle| tag that later will be used on % the title page, in the header/footer and to set the appropriate % |hyperref| tag. % \begin{macrocode} -%<*ct> -\newcommand{\@subtitle}{} +%<*mt> +\newcommand{\@subtitle}{Master's thesis} +% +%<*ct|pt> +\newcommand{\@subtitle}{~} \newcommand{\@qrsubtitle}{} \newcommand{\subtitle}[1]{% \renewcommand\@subtitle{#1} @@ -2129,7 +2142,7 @@ Welk van de onderstaande ingredi\"enten hoort niet thuis in \newcommand{\qrsubtitle}[1]{% \renewcommand\@qrsubtitle{#1} } -% +% % \end{macrocode} % \end{macro} % @@ -2951,9 +2964,10 @@ E cursusdienst.cgb@uantwerpen.be} % \begin{macro}{\extrainfo} % This macro will set the |\@extrainfo| tag that will be used on % the back of the exam title page. +% \changes{v2.1}{2018/06/20}{Changed default to empty} % \begin{macrocode} %<*ex> -\newcommand{\@extrainfo}{TBD} +\newcommand{\@extrainfo}{} \newcommand{\extrainfo}[1]{\renewcommand{\@extrainfo}{#1}} % % \end{macrocode} @@ -3107,7 +3121,7 @@ E cursusdienst.cgb@uantwerpen.be} % % \subsection{Fancy chapter headers for the phdthesis class} % -% +% \changes{v2.1}{2018/06/20}{Added appropriate \textbackslash{}appendix command} % \begin{macrocode} %<*pt> \def\@makechapterhead#1{% @@ -3124,11 +3138,10 @@ E cursusdienst.cgb@uantwerpen.be} \rule{\textwidth}{1pt} \vspace{5\p@}\par\nobreak } - \def\@schapter#1{% \@makeschapterhead{#1}% \@afterheading - } +} \def\@makeschapterhead#1{% \vspace*{1ex}% \begin{flushright} @@ -3136,7 +3149,13 @@ E cursusdienst.cgb@uantwerpen.be} \end{flushright} \rule{\textwidth}{1pt} \vspace{5\p@}\par - } +} +% overwrite appendix +\def\appendix{ + \setcounter{chapter}{0} + \renewcommand*{\thechapter}{\Alph{chapter}} + \renewcommand\chaptername\appendixname +} % % \end{macrocode} % @@ -3557,38 +3576,15 @@ L: \@qrlectureri % \begin{macro}{\maketitle} % Below, one can find the code for the title page of the % |uantwerpenphdthesis| class: -% \changes{v2.0}{2018/03/14}{Implemented title page} +% \changes{v2.0}{2018/03/14}{Implemented title page} +% \changes{v2.1}{2018/06/20}{Corrected information page (p4) jury spacing} % \begin{macrocode} %<*pt> \renewcommand\maketitle{% \pagestyle{empty} \begin{titlepage} \if@titlepagetableonly - Dit is een cursustekst van Universiteit Antwerpen.\\ - Het titelblad dient opgemaakt te worden met de volgende gegevens: - \begin{center} - \begin{tabular}{|l|l|} - \hline - \bfseries I & Universiteit Antwerpen \\\hline - \bfseries F & \@faculty \\\hline - \bfseries P & \parbox[t]{14cm}{\@programmet - \@programmec\@programmes \@programmeq} \\\hline - \bfseries C & \parbox[t]{14cm}{ - \texttt{\@coursecodei} \@coursei\\ - \texttt{\@coursecodeii} \@courseii\\ - \texttt{\@coursecodeiii} \@courseiii\\ - \texttt{\@coursecodeiv} \@courseiv} \\\hline - \bfseries Y & \\\hline - \bfseries T & \parbox[t]{14cm}{\@title}\\\hline - \bfseries S & \parbox[t]{14cm}{SUBTITLE}\\\hline - \bfseries A & \parbox[t]{14cm}{\@author}\\\hline - \bfseries L & \parbox[t]{14cm}{LECTURERS}\\\hline - \end{tabular} - \end{center} - ~\\ - Waarbij: I = instelleng, F = faculteit, P = programma, C = - cursusmodule, T = titel, S = subtitel, A = auteur(s), L = - lesgever(s)\\~\\ + Dit is een doctoraatsthesis van Universiteit Antwerpen. \else \begin{tikzpicture}[remember picture,overlay] \node at (current page.center) { @@ -3636,16 +3632,21 @@ L: \@qrlectureri \ifdefvoid{\@supervisoriv}{}{\\\@supervisoriv}}} }; - \node[anchor=north west,text width=\textwidth,align=left,font=\Huge] + \node[anchor=north west,text + width=\ua@X-6*\ua@Z,align=left,font=\Huge] + (title) at (3*\ua@Z pt,\ua@Y-4*\ua@Z pt) { \textsf{\textbf{\@title}} }; - \node[anchor=north west,text width=\textwidth,align=left] - at (3*\ua@Z pt,\ua@Y - 11.5*\ua@Z pt) + \node[anchor=north west,below=2.5ex of title,text width=\ua@X-6*\ua@Z,align=left,font=\large] + { \textsf{\textbf{\@subtitle}} }; + + \node[anchor=north west,text width=\ua@X-6*\ua@Z,align=left] + at (3*\ua@Z pt,\ua@Y - 12.5*\ua@Z pt) { \textsf{\pthesisnamei{} \@phddegree{} \pthesisnameii{}} }; \node[anchor=north west, text width=\textwidth,align=left,font=\LARGE] - at (3*\ua@Z pt, \ua@Y-14.5*\ua@Z pt) + at (3*\ua@Z pt, \ua@Y-15.5*\ua@Z pt) { \textsf{\textbf{\@author}} }; \end{tikzpicture} }; @@ -3660,6 +3661,7 @@ L: \@qrlectureri \@programmeq\par \vfill \Huge\textsf{\@title}\par + \large\textsf{\@subtitle}\par \vfill \normalsize\pthesisnamei\\ \@phddegree\\ @@ -3681,12 +3683,11 @@ L: \@qrlectureri \end{minipage} \end{center} \clearpage - \textbf{\juryname}\\ - \medskip - \textbf{\jurychairmanname}\\ + \textbf{\juryname}\hfill\par + \textbf{\jurychairmanname}\hfill\break \@jurychairman{}\ifdefvoid{\@jurychairmanaff}{}{, \@jurychairmanaff}\\ - \smallskip - \textbf{\supervisorsname}\\ + \hfill\break + \textbf{\supervisorsname}\hfill\break \ifdefvoid{\@supervisori}{}{\@supervisori \ifdefvoid{\@supervisoriaff}{}{, \@supervisoriaff}\\} \ifdefvoid{\@supervisorii}{}{\@supervisorii @@ -3695,9 +3696,8 @@ L: \@qrlectureri \ifdefvoid{\@supervisoriiiaff}{}{, \@supervisoriiiaff}\\} \ifdefvoid{\@supervisoriv}{}{\@supervisoriv \ifdefvoid{\@supervisorivaff}{}{, \@supervisorivaff}\\} - - \smallskip - \textbf{\jurymembersname}\\ + \hfill\break + \textbf{\jurymembersname}\hfill\break \ifdefvoid{\@jurymemberi}{}{\@jurymemberi \ifdefvoid{\@jurymemberiaff}{}{, \@jurymemberiaff\\}} \ifdefvoid{\@jurymemberii}{}{\@jurymemberii @@ -3710,6 +3710,7 @@ L: \@qrlectureri \ifdefvoid{\@jurymembervaff}{}{, \@jurymembervaff\\}} \ifdefvoid{\@jurymembervi}{}{\@jurymembervi \ifdefvoid{\@jurymemberviaff}{}{, \@jurymemberviaff\\}} + \hfill\break \vfill \textbf{Contact}\\ \smallskip @@ -3860,6 +3861,7 @@ L: \@qrlectureri % % \subsection{Title page for the exam class} % +% \changes{v2.1}{2018/06/20}{Corrected spacing in title + exampart} % \begin{macro}{\maketitle} % The title page of the exam class is generated using the |\maketitle| % command. @@ -3911,7 +3913,7 @@ L: \@qrlectureri (3.3,21.9) node[anchor=north west] { \parbox{16cm}{ \fontfamily{phv}\fontsize{18}{22}\fontseries{b}\fontshape{n}\selectfont - \raggedright \@coursei --- \@exampart + \raggedright \@coursei{} --- \@exampart \fontfamily{phv}\fontsize{12}{18}\fontseries{m}\fontshape{n}\selectfont\\ Groep \@examgroupnumber{} \hfill \@examdate{} } } @@ -3978,8 +3980,11 @@ L: \@qrlectureri } \vspace*{15cm} \clearpage + \ifx\@qrtitle\@emptymacro + \else \@extrainfo \clearpage + \fi } % % \end{macrocode} @@ -4027,16 +4032,16 @@ L: \@qrlectureri % typesets the question in two columns, the left column taking the % English variant of the question and the right column taking the % Dutch variant. -% +% \changes{v2.1}{2018/06/20}{\@ Increased intercolumn spacing for engdut} % \begin{macrocode} %<*ex> \newcommand{\engdut}[2]{% - \begin{tabular}{cc}% + \begin{tabular}{ccc}% \selectlanguage{english}% \begin{minipage}[t]{0.45\textwidth}% #1 \end{minipage}% - & + &~~~& \selectlanguage{dutch}% \begin{minipage}[t]{0.45\textwidth}% #2 @@ -4048,25 +4053,41 @@ L: \@qrlectureri % \end{macrocode} % \end{macro} % +% +% \changes{v2.1}{2018/06/20}{Allow for setting the multiple choice +% mark symbol} +% \begin{macro}{\setmcsymbol} +% sets the symbol to be used as multiple choice mark (by default a +% square). +% \begin{macrocode} +%<*ex> +\newcommand\@mcsymbol{\square} +\newcommand\setmcsymbol[1]{\renewcommand\@mcsymbol{#1}} +% +% \end{macrocode} +% \end{macro} +% +% \changes{v2.1}{2018/06/20}{Corrected erroneous line breaking} % \begin{macro}{\mc} % typesets a multiple choice answer candidate (monolingual, i.e. in a % single column). -% % \begin{macrocode} %<*ex> -\newcommand{\mc}[1]{% - \qquad\begin{tabular}{cc} - $\square$ +\newcommand\mc[1]{% + \hfill\break\qquad\begin{tabular}{cc} + $\@mcsymbol$ & - \begin{minipage}[t]{0.8\textwidth}% + \begin{minipage}[t]{0.9\textwidth}% #1 \end{minipage}% - \end{tabular}\\ + \end{tabular} } % % \end{macrocode} % \end{macro} % +% \changes{v2.1}{2018/06/20}{Corrected erroneous line breaking} +% % \begin{macro}{\engdutmc} % typesets a multiple choice answer candidate in two columns, the left % column taking the English variant of the question and the right @@ -4075,16 +4096,16 @@ L: \@qrlectureri % \begin{macrocode} %<*ex> \newcommand{\engdutmc}[2]{% - \begin{tabular}{cccc} - $\square$ + \hfill\break\begin{tabular}{cccc} + $\@mcsymbol$ & \selectlanguage{english}% - \begin{minipage}[t]{0.4\textwidth}% + \begin{minipage}[t]{0.42\textwidth}% #1 \end{minipage}% &---& \selectlanguage{dutch}% - \begin{minipage}[t]{0.4\textwidth}% + \begin{minipage}[t]{0.42\textwidth}% #2 \end{minipage}% \end{tabular} @@ -4224,7 +4245,7 @@ L: \@qrlectureri \AtBeginDocument{ \hypersetup{ pdftitle={\@title}, - pdfsubject={Master's Thesis}, + pdfsubject={\@subtitle}, pdfauthor={\@author} } } -- cgit v1.2.3