summaryrefslogtreecommitdiff
path: root/vutinf.dtx
blob: ff34497055e8c401cf66ff7805f6bef5db11b0a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
% \iffalse meta-comment
% vim: textwidth=75
%<*internal>
\iffalse
%</internal>
%<*readme>
|
-------:| -----------------------------------------------------------------
 vutinf:| TU Wien Faculty for Informatics template
 Author:| David Kaufmann
 E-mail:| david.kaufmann@tuwien.ac.at
License:| Released under the LaTeX Project Public License v1.3c or later
    See:| http://www.latex-project.org/lppl.txt


Short description:
Some text about the class: probably the same as the abstract.
%</readme>
%<*internal>
\fi
\def\nameofplainTeX{plain}
\ifx\fmtname\nameofplainTeX\else
  \expandafter\begingroup
\fi
%</internal>
%<*install>
\input docstrip.tex
\keepsilent
\askforoverwritefalse
\preamble
-------:| -----------------------------------------------------------------
 vutinf:| TU Wien Faculty for Informatics template
 Author:| David Kaufmann
 E-mail:| david.kaufmann@tuwien.ac.at
License:| Released under the LaTeX Project Public License v1.3c or later
    See:| http://www.latex-project.org/lppl.txt

\endpreamble
\postamble

Copyright (C) 2020 by David Kaufmann <david.kaufmann@tuwien.ac.at>

This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License (LPPL), either
version 1.3c of this license or (at your option) any later
version.  The latest version of this license is in the file:

http://www.latex-project.org/lppl.txt

This work is "maintained" (as per LPPL maintenance status) by
David Kaufmann.

This work consists of the file .dtx and a Makefile.
Running "make" generates the derived files README.vutinf, vutinf.pdf and vutinf.cls.
Running "make inst" installs the files in the user's TeX tree.
Running "make install" installs the files in the local TeX tree.

\endpostamble

\usedir{tex/latex/}
\generate{
  \file{\jobname.cls}{\from{\jobname.dtx}{class}}
}
%</install>
%<install>\endbatchfile
%<*internal>
\usedir{source/latex/}
\generate{
  \file{\jobname.ins}{\from{\jobname.dtx}{install}}
}
\nopreamble\nopostamble
\usedir{doc/latex/}
\generate{
  \file{README.vutinf.txt}{\from{\jobname.dtx}{readme}}
}
\ifx\fmtname\nameofplainTeX
  \expandafter\endbatchfile
\else
  \expandafter\endgroup
\fi
%</internal>
% \fi
%
% \iffalse
%<*driver>
\ProvidesFile{.dtx}
%</driver>
%<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<class>\ProvidesClass{}
%<*class>
    [2020/01/31 v1.00 TU Wien  for Informatics template]
%</class>
%<*driver>
\documentclass{ltxdoc}
\usepackage[a4paper,margin=25mm,left=50mm,nohead]{geometry}
\usepackage[numbered]{hypdoc}

\EnableCrossrefs
\CodelineIndex
\RecordChanges
\begin{document}
  \DocInput{\jobname.dtx}
\end{document}
%</driver>
% \fi
%
% \GetFileInfo{\jobname.dtx}
% \DoNotIndex{\newcommand,\newenvironment}
%
%\title{\textsf{} --- TU Wien Faculty for Informatics template\thanks{This file
%   describes version \fileversion, last revised \filedate.}
%}
%\author{David Kaufmann\thanks{E-mail: david.kaufmann@tuwien.ac.at}}
%\date{Released \filedate}
%
%\maketitle
%
%\changes{v1.00}{2020/01/31}{First public release}
%
% \begin{abstract}
% ==== Put abstract text here. ====
% \end{abstract}
%
% \section{Usage}
%
% ==== Put descriptive text here. ====
%
% \DescribeMacro{\dummyMacro}
% This macro does nothing.\index{doing nothing|usage} It is merely an
% example.  If this were a real macro, you would put a paragraph here
% describing what the macro is supposed to do, what its mandatory and
% optional arguments are, and so forth.
%
% \DescribeEnv{dummyEnv}
% This environment does nothing.  It is merely an example.
% If this were a real environment, you would put a paragraph here
% describing what the environment is supposed to do, what its
% mandatory and optional arguments are, and so forth.
%
%\StopEventually{^^A
%  \PrintChanges
%  \PrintIndex
%}
%
% \section{Implementation}
%
%    \begin{macrocode}
%<*class>
\LoadClass[a4paper,final]{article}
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage[a4paper,left=24mm,right=20mm,top=20mm,bottom=25mm]{geometry}
\RequirePackage{graphicx}
\RequirePackage{ifthen}
\RequirePackage{lastpage}
\RequirePackage{ragged2e}
%    \end{macrocode}
% sans serif font
%    \begin{macrocode}
\RequirePackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
%    \end{macrocode}
% clickable links, same font for links as rest of text
%    \begin{macrocode}
\RequirePackage[bookmarks]{hyperref}
\RequirePackage{xcolor}
\urlstyle{sf}
\hypersetup{%
  colorlinks=false,
  linkcolor=black,
  linkbordercolor=red,
  pdfborderstyle={/S/U/W 1}% border style will be underline of width 1pt
}
%    \end{macrocode}
% \begin{macro}{\prettyuline}
% This macro makes prettier underline lines.\\
% Sourced from: https://alexwlchan.net/2017/10/latex-underlines/
%    \begin{macrocode}
\RequirePackage{contour}
\RequirePackage{ulem}

\renewcommand{\ULdepth}{1.8pt}
\contourlength{0.8pt}

\newcommand{\prettyuline}[1]{%
  \uline{\phantom{#1}}%
  \llap{\contour{white}{#1}}%
}
%    \end{macrocode}
% \end{macro}
% line spacing
%    \begin{macrocode}
\RequirePackage{setspace}
\onehalfspacing
%    \end{macrocode}
% header
%    \begin{macrocode}
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
%    \end{macrocode}
% header logo and page numbers
%    \begin{macrocode}
\setlength\headheight{13mm}
\renewcommand{\headrulewidth}{0pt}
\lhead{\includegraphics[height=11mm]{vutinf-logo.pdf}}
\rhead{\ifthenelse{\value{page}=1}{}{Seite \thepage|\pageref*{LastPage}\\}}
\lfoot{}
\cfoot{}
\rfoot{}
%    \end{macrocode}
% no indentation at line start
%    \begin{macrocode}
\setlength{\parindent}{0cm}
%    \end{macrocode}
% un-justify document (equal to flushleft) - align left
%    \begin{macrocode}
\raggedright
%    \end{macrocode}
%
% \begin{environment}{dummyEnv}
% This is a dummy environment.  If it did anything, we'd describe its
% implementation here.
%    \begin{macrocode}
\newenvironment{dummyEnv}{%
}{%
%    \end{macrocode}
% \changes{v1.00a}{2020/01/31}{Added a spurious change log entry to
%   show what a change \emph{within} an environment definition looks
%   like.}
% Don't use |%| to introduce a code comment within a |macrocode|
% environment.  Instead, you should typeset all of your comments with
% LaTeX---doing so gives much prettier results.  For comments within a
% macro/environment body, just do an |\end{macrocode}|, include some
% commentary, and do another |\begin{macrocode}|.  It's that simple.
%    \begin{macrocode}
}
%    \end{macrocode}
% \end{environment}
%
%    \begin{macrocode}
\endinput
%</class>
%    \end{macrocode}
%\Finale