summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/uadocs/uadocs.dtx
blob: fcd06030621c42cb377f906ccb2119e0985aeb9a (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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
% \iffalse meta-comment
%
% Copyright (C) 2013-2014  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.
%
% This work consists of the files listed in the file manifest.txt.
%
% \fi
%
% \iffalse
%<*driver>
\ProvidesFile{uadocs.dtx}
%</driver>
%<ct|mt>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<ct>\ProvidesClass{uacoursetext}
%<mt>\ProvidesClass{uamasterthesis}
%<ct|mt>    [2013/05/21 v1.1 .dtx skeleton file]
%
\def\fileversion{1.2}
\def\filedate{2014/08/22}
%<*driver>
\documentclass{ltxdoc}
\usepackage{makeidx}
\usepackage{alltt}
\usepackage{booktabs}
\IfFileExists{tocbibind.sty}{\usepackage{tocbibind}}{}
\IfFileExists{hyperref.sty}{\usepackage[bookmarksopen]{hyperref}}{}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
\begin{document}
  \DocInput{uadocs.dtx}
\end{document}
%</driver>
% \fi
%
% \CheckSum{0}
%
% \CharacterTable
%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%   Digits        \0\1\2\3\4\5\6\7\8\9
%   Exclamation   \!     Double quote  \"     Hash (number) \#
%   Dollar        \$     Percent       \%     Ampersand     \&
%   Acute accent  \'     Left paren    \(     Right paren   \)
%   Asterisk      \*     Plus          \+     Comma         \,
%   Minus         \-     Point         \.     Solidus       \/
%   Colon         \:     Semicolon     \;     Less than     \<
%   Equals        \=     Greater than  \>     Question mark \?
%   Commercial at \@     Left bracket  \[     Backslash     \\
%   Right bracket \]     Circumflex    \^     Underscore    \_
%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%   Right brace   \}     Tilde         \~}
%
%
% \changes{v1.0}{2013/05/11}{\@ Consolidated uacoursetext class}
% \changes{v1.1}{2013/05/29}{\@ Small bugfixes and 'filled' option}
% \changes{v1.2}{2014/08/22w}{\@ Added lmodern package and increased
% headheight to 13.7pt to please Fancyhdr}
%
% \DoNotIndex{\newcommand,\newenvironment}
% \setlength{\parindent}{0em}
% \addtolength{\parskip}{0.5\baselineskip}
%
% \title{The \textsf{uacoursetext} class\thanks{This document
%   corresponds to \textsf{uacoursetext}~\fileversion, dated \filedate.}}
% \author{Paul Levrie (\texttt{paul.levrie@uantwerpen.be})\\
%         Walter Daems (\texttt{walter.daems@uantwerpen.be})}
% \date{\filedate}
%
% \maketitle
%
% \section{Introduction}
%
% This package implements the house style of Universiteit Antwerpen
% for course texts and master's theses except for the font. Computer
% Modern Bright is used instead of the non-free Auto1.
% Using these class files will make it easy for you to make and keep
% your course texts and master's theses compliant to this version and
% future versions of the UA house style.
%
% If you think
% \begin{itemize}
%   \item there's an error in compliancy w.r.t. the house style,
%   \item there's a feature missing in this class file,
%   \item there's a bug in this class file,
% \end{itemize}
% please, contact us through e-mail (|walter.daems@uantwerpen.be|).
% We'll provide you with an answer
% and if (and as soon as) possible with a solution to the problem
% you spotted.
%
% Do you like these class files? You're welcome to send us beer, wine,
% or just kind words.
%
% \section{Synopsis}
% The |uacoursetext| and |uamasterthesis| classes are an extension
% to the standard \LaTeX{} |book| class.
% It is intended to be used for writing course texts and master's
% theses. It provides a title page that is compliant to the UA house
% style, and it also typesets the rest of your document
% appropriately.
%
% It requires (and uses) the following packages:
% \begin{itemize}
%   \item the |ifthen| package
%   \item the |mtarg| package
%   \item the |geometry| package
%   \item the |hyperref| package
%   \item the |cmbright| package
%   \item the |graphicx| package
%   \item the |eso-pic| package
%   \item the |color| package
%   \item the |tikz| package
%   \item the |fancyhdr| package
%   \item the |pst-barcode| package
%   \item the |auto-pst-pdf| package
% \end{itemize}
% and optionally
% \begin{itemize}
%   \item the |varioref| package.
% \end{itemize}
% So make sure these packages are available to your
% \LaTeX{} compiler.
%
% \section{Portability}
% This class file should be ready to use with all common \LaTeX{}
% compilers (PDF\LaTeX{}, \LaTeX{}, Xe\LaTeX{},\ldots) from the major
% \TeX{}-distributions (TeTeX, TexLive, MikTeX). If you experience
% problems, please inform the authors.
%
% \section{Usage}
%
% \subsection{Basic Usage}
%
% \subsubsection{\texttt{uacoursetext} class}
% Use the following harness for your \LaTeX{} course text:
% \begin{verbatim}
% \documentclass[a4paper]{uacoursetext}
%
% \usepackage{<include any packages you require here>}
%
% \facultyacronym{<put your faculty's acronym here}
%
% \title{<put your title here>}
% \subtitle{<put your subtitle here>}
% \author{<put your name here>}
%
% \courseversion{<put a version identifier here>}
% \versionyear{<the publication date of the course here>}
% 
% \lecturer{<person teaching the course>}
% \programme{<descriptor of first programme>}
% \course{<course code>}{<name of the course>}% 
%
% \academicyear{<XXXX-YYYY>}
%
% \begin{document}
%
%   \maketitle
%
%   % put your LaTeX code here
%
%   \finalpage
%
% \end{document}
% \end{verbatim}
%
% \subsubsection{\texttt{uamasterthesis} class}
% Use the following harness for your \LaTeX{} master's thesis:
% \begin{verbatim}
% \documentclass[a4paper]{uamasterthesis}
%
% \usepackage{<include any packages you require here>}
%
% \facultyacronym{<put your faculty's acronym here>}
%
% \title{<put your title here>}
% \author{<put your name here>}
% \supervisori{<put the first supervisor's name(s) here}
% \supervisorii<put the first supervisor's name(s) here}
% \supervisoriii{<put the first supervisor's name(s) here}
% \supervisoriv{<put the first supervisor's name(s) here}
%
% % classmarker
% \academicyear{<XXXX-YYYY>}
%
% \begin{document}
%
%   \maketitle
%
%   % put your LaTeX code here
%
%   \finalpage
%
% \end{document}
% \end{verbatim}
%
% 
% \subsection{The class options explained}
%
% The class has several options. They are listed below.
% After every option, it has been indicated to which class the option
% applies (between square brackets).
% \changes{v1.1}{2013/05/28}{Added option user documentation}
%
% \DescribeMacro{copyright} [uacoursetext]\\
%   This option forces printing a watermark on every page. For the paper
%   version of your document, this is inappropriate, but for any e-copy
%   you make available, this may be appropriate;
%
% \DescribeMacro{filled} [uacoursetext / uamasterthesis]\\
%   This option causes the text to be filled (simultaneous left and right
%   alignment). Though this setting is not recommended, it is provided
%   because the default |\raggedright| cannot be undone. The |filled|
%   option prevents the |\raggddright| from being issued. However, if
%   you care about the readability of your text, you shouldn't use this
%   option.
%
% \DescribeMacro{titlepagenoartwork} [uacoursetext / uamasterthesis]\\
%   This option forces the title pages to be typeset without circle graphics and
%   logo. This allows for printing on a pre-printed color sheet that
%   already contains circle graphics and logo;
%
% \DescribeMacro{titlepagetableonly} [uacoursetext / uamasterthesis]\\
%   This option forces the title-page data to be printed in table form
%   as first page. Some publishers require the manuscript to be
%   delivered in this form. They perform the entire typesetting of the
%   title page.
%
% \DescribeMacro{qr} [uacoursetext]\\
%   This option allows you to generate a QR code containing the details of
%   the course on the title page (or the table-only) title page. For
%   this option to work, the package pstricks is loaded. It will not
%   work with pdf\LaTeX{} unless you enable shell escape. Read your
%   pdf\LaTeX{}-package documentation on how to do that.
%
% Common sets of options depend on the purpose:
% \begin{itemize}
% \item to make a text ready for electronic distribution:
% |a4paper|, |copyright|.
% \item to make a camera-ready text (for printing) in case
% the cover is printed on a pre-printed color artwork cover sheet is:
% |a4paper|, |qr|, |titlepagenoartwork|.
% \item to make a camera-ready text (for printing) in case the cover
% is typeset based on table data:
% |a4paper|, |qr|, |titlepagetableonly|. 
% \end{itemize}
%
% \subsection{The macros explained}
%
% After every macro, it has been indicated to which class the macro
% applies (between square brackets), and whether it is mandatory or not.
%
% \DescribeMacro{\facultyacronym} [uacoursetext / uamasterthesis] (mandatory)\\
% This macro sets the acronym of the faculty.
% This macro also sets the faculty name according to the specified
% acronym.
% If you're missing an faculty or institute, please ask the
% authors to complete the list.
% 
% The available acronyms are:
% \begin{center}
% \begin{tabular}{cl}
%   \toprule
%   Acronym & Faculty name \\
%   \midrule
%   CPG
%   & Centrum Pieter Gillis\\
%   FBD 
%   & Faculteit Farmaceutische, Biomedische en Diergeneeskundige Wetenschappen\\
%   GGW    
%   & Faculteit Geneeskunde en Gezondheidswetenschappen\\
%   IOB
%   & Instituut voor Ontwikkelingsbeleid- en beheer\\
%   IOIW
%   & Instituut voor Onderwijs- en Informatiewetenschappen\\
%   LW
%   & Faculteit Letteren en Wijsbegeerte\\
%   OW
%   & Faculteit Ontwerpwetenschappen\\
%   PSW
%   & Faculteit Politieke en Sociale Wetenschappen\\
%   REC
%   & Faculteit Rechten\\
%   TEW
%   & Faculteit Toegepaste Economische Wetenschappen\\
%   TI     
%   & Faculteit Toegepaste Ingenieurswetenschappen\\
%   WET    
%   & Faculteit Wetenschappen\\
%   \bottomrule
% \end{tabular}
% \end{center}
%
% \DescribeMacro{\title} [uacoursetext / uamasterthesis] (mandatory)\\
% This macro sets the title of the document.
% It also sets the |pdftitle| tag of the hyperref package, so that
% the PDF-document meta-information is correct.
%
% \DescribeMacro{\subtitle} [uacoursetext] (optional)\\
% This macro sets the title of the document. You may use this 
% \begin{itemize}
% \item to further clarify the title
% \item to indicate the nature of this document
% \end{itemize}
% The latter is to be considered when you want to provide multiple
% documents as parts of the full course text (e.g., Course Notes,
% Formula Collection, Exercise Book, Solution Book).
% This macro also sets the |subject| tag of the hyperref package,
% so that the PDF-document meta-information is correct.
%
% \DescribeMacro{\author} [uacoursetext / uamasterthesis] (mandatory)\\
% This macro sets the author of the document.
% It also sets the |pdfauthor| tag of the hyperref package, so that
% the PDF-document meta-information is correct.
%
% \DescribeMacro{\publisher} [uacoursetext] (mandatory)\\
% This macro sets the publisher information of the document.
% It is printed on the front page. It defaults to Universitas
% printing, one of the standard printing service of Universiteit
% Antwerpen.
%
% \DescribeMacro{\publishercode} [uacoursetext] (mandatory)\\
% This macro sets the publisher code of the document.
% It is printed on the front page. This is code that the publisher
% uses for its internal administration. It may be a proprietary code,
% or an ISBN number.
%
% \DescribeMacro{\courseversion} [uacoursetext] (optional)\\
% This macro indicates which version of the course this is.
% You may use your own versioning system that puts things clear for you.
%
% \DescribeMacro{\versionyear} [uacoursetext] (mandatory)\\
% This is to be the year in which you published the current version of
% the course in the form YYYY.
%
% \DescribeMacro{\lecturer} [uacoursetext] (mandatory)\\
% This is the name of the person that actually teaches the course (in
% Dutch: titularis). If there are mutliple persons, please, use the
% macros |\lectureri|, |\lecturerii|, |\lectureriii|,
% |\lectureriv|. 
%
% \DescribeMacro{\programme} [uacoursetext] (mandatory)\\
% This macro takes three arguments:
% \begin{itemize}
% \item the type of the programme: BA, SP, VP or MA
% \item the domain of the programme: IW
% \item the qualifier of the programme: BK, CH, BCH, EM, EI
% \end{itemize}
% If you need more programme classes or qualifiers, ask the authors to
% complete the available codes.
% Correct usage of the macro will result in error-free descriptions on
% your title page.
% You can overrule the standard descriptions, by specifying 'FREE' as
% frist argument and a free text description as second, leaving the third
% one empty. However, we strongly advise against taking this route.
% Instead, ask the authors to copmlete the available codes.
%
% \DescribeMacro{\supervisor} [uamasterthesis] (mandatory)\\
% This is the name of the person that promotes the thesis.
% If there are mutliple persons, please, use the
% macros |\supervisori|, |\supervisorii|, |\supervisoriii|,
% |\supervisoriv|. 
%
% \DescribeMacro{\course} [uacoursetext] (mandatory)\\
% Code (first argument) and name (second argument) of the curriculum
% course this coursematerial belongs to. The code should be of the form:\\
% |TNNNFFFAAA|,
% with:
% \begin{center}
%   \begin{tabular}{cp{10cm}}
%     \toprule
%       Code & Explanation \\
%     \midrule
%       |T|    & a number indicating the type of programme \\
%              & (1 for Bachelor courses, 2 for Master courses , 5 for
%                specific courses of preparatory programmes) \\
%       |NNN|  & a number assigned by the Faculty's administration\\
%       |FFF|  & the acronym of your Faculty, e.g., FTI\\
%       |AAA|  & an alphanumeric code assigned by the Faculty's
%                administration \\
%     \bottomrule
%   \end{tabular}
% \end{center}
%
% An example of such a code: 1001FTIWIS, for the first-semester
% mathematics course of the Faculty of Applied Engineering.
%
% The name should be of the form |x-YYYYYYYY| with |x| the number of the
% semester and |YYYYYYYY| the official name of the course.
%
% \DescribeMacro{\course} [uacoursetext] (mandatory)\\
% In case the course's name contains accented characters, one should
% also provide a qr version, containing utf8-characters only.
% The macro for this purpose takes only one argument, i.e. the
% course's name! This is to avoid inconsistencies in the course codes.
%
% \DescribeMacro{\academicyear} [uacoursetext / uamasterthesis] (mandatory)\\
% Use this macro to specify the academicyear in full, i.e. in the form
% |XXXX-YYYY|. 
% 
% \DescribeMacro{\diploma} [uamasterthesis] (mandatory)\\
% This must be the official title, in Dutch. To avoid errors, we chose
% to use specific codes, that will expand to the correct description.
% \begin{center}
%   \begin{tabular}{lp{10cm}}
%     \toprule
%     Code & Description (in Dutch!) \\
%     \midrule
%     |MA-IW-BK| 
%     & Master of Science in de industri\"ele wetenschappen: bouwkunde\\
%     |MA-IW-BCH| 
%     & Master of Science in de industri\"ele wetenschappen: biochemie\\
%     |MA-IW-CH|
%     & Master of Science in de industri\"ele wetenschappen: chemie\\
%     |MA-IW-EI|
%     & Master of Science in de industri\"ele wetenschappen: elektronica-ICT\\
%     |MA-IW-EI-AE|
%     & Master of Science in de industri\"ele wetenschappen: elektronica-ICT,
%     afstudeerrichting, Automotive Engineering\\
%     |MA-IW-EI-ICT|
%     & Master of Science in de industri\"ele wetenschappen: elektronica-ICT,
%     afstudeerrichting ICT\\
%     |MA-IW-EM-AE|
%     & Master of Science in de industri\"ele wetenschappen: Elektromechanica,
%     afstudeerrichting Automotive Engineering\\
%     |MA-IW-EM-AU|
%     & Master of Science in de industri\"ele wetenschappen: Elektromechanica,
%     afstudeerrichting Automatisering\\
%     |MA-IW-EM-EM|
%     & Master of Science in de industri\"ele wetenschappen: Elektromechanica,
%     afstudeerrichting Elektromechanica\\
%     \bottomrule
%   \end{tabular}
% \end{center}
% 
% \DescribeMacro{\defensedate} [uamasterthesis] (mandatory)\\
% Date of the defense in Dutch, in the form 'month year', e.g. ``juni 2012''.
% 
% \DescribeMacro{\defenselocation} [uamasterthesis] (optional)\\
% Location of the defense. Defaults to ``Antwerpen''.
% 
% \DescribeMacro{\copyrightnotices} [uacoursetext] (optional)\\
% Use this macro to specify additional copyright notice messages to
% appear in het copyright notice on the bottom of page 2 of your
% course text.
% 
% 
% \subsection{Examples}
% \subsubsection{\texttt{uacoursetext}}
% 
% \begin{verbatim}
%<*ct-example> 
\documentclass[a4paper,11pt,oneside,openright,english,qr]{uacoursetext}

\usepackage[english,dutch]{babel}
\selectlanguage{english}

\title{Z\'agen, zoeken en zuchten}
\qrtitle{Zágen, zoeken en zuchten}
\subtitle{Cursusnota's}
\author{Walter Daems en Paul Levrie}

\courseversion{1.3}
\versionyear{2013}

\lectureri{Zoltan Zoekers}
\qrlectureri{Zoltan Zoëkers}
\lecturerii{Siana Sigh}
\lectureriii{Zeger de Zager}
\qrlectureriii{Zeger de Záger}

\facultyacronym{TI}
\programme{MA}{IW}{EI}
\coursei{2023FTIZZZ}{5-Zoekmachines in een zaagperspectief}
\courseii{2045FTIIII}{6-Zaagmachines in \'e\'en zuchtperspectief}
\qrcourseii{6-Zaagmachines in één zuchtperspectief}

\academicyear{2012-2013}

\publisher{Cursusdienst\\UNIVERSITAS\\
Prinsesstraat 16\\
2000 Antwerpen\\
T +32 3 233 23 72\\
F +32 3 233 65 81\\
E info@cursusdienst.be\\
W www.universitas.be}

\publishercode{C11111102}

\copyrightnotices{
  The graphics in this document have been typeset using \texttt{TikZ}.\\
  This document has been \TeX-ed on a GNU/Linux workstation.
}

\begin{document}
\selectlanguage{dutch} % or english if your text is in English

\maketitle

\frontmatter

\tableofcontents

\mainmatter
\chapter*{Inleiding}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.


\chapter{Onzin voor dummies}

\section{Een beetje Cicero}
Sed ut perspiciatis unde omnis iste natus error sit voluptatem
accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae
ab illo inventore veritatis et quasi architecto beatae vitae dicta
sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit
aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos
qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui
dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed
quia non numquam eius modi tempora incidunt ut labore et dolore magnam
aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum
exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex
ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in
ea voluptate velit esse quam nihil molestiae consequatur, vel illum
qui dolorem eum fugiat quo voluptas nulla pariatur?

\begin{equation}
  e^{-j\pi} + 1 = 0
\end{equation}

At vero eos et accusamus et iusto odio dignissimos ducimus qui
blanditiis praesentium voluptatum deleniti atque corrupti quos dolores
et quas molestias excepturi sint occaecati cupiditate non provident,
similique sunt in culpa qui officia deserunt mollitia animi, id est
laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita
distinctio. Nam libero tempore, cum soluta nobis est eligendi optio
cumque nihil impedit quo minus id quod maxime placeat facere possimus,
omnis voluptas assumenda est, omnis dolor repellendus. Temporibus
autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe
eveniet ut et voluptates repudiandae sint et molestiae non
recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut
reiciendis voluptatibus maiores alias consequatur aut perferendis
doloribus asperiores repellat.

\section{En waartoe het geleid heeft}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.

\subsection{Herhaling}
Sed ut perspiciatis unde omnis iste natus error sit voluptatem
accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae
ab illo inventore veritatis et quasi architecto beatae vitae dicta
sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit
aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos
qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui
dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed
quia non numquam eius modi tempora incidunt ut labore et dolore magnam
aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum
exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex
ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in
ea voluptate velit esse quam nihil molestiae consequatur, vel illum
qui dolorem eum fugiat quo voluptas nulla pariatur?

\subsection{Begint vervelend te worden}
At vero eos et accusamus et iusto odio dignissimos ducimus qui
blanditiis praesentium voluptatum deleniti atque corrupti quos dolores
et quas molestias excepturi sint occaecati cupiditate non provident,
similique sunt in culpa qui officia deserunt mollitia animi, id est
laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita
distinctio. Nam libero tempore, cum soluta nobis est eligendi optio
cumque nihil impedit quo minus id quod maxime placeat facere possimus,
omnis voluptas assumenda est, omnis dolor repellendus. Temporibus
autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe
eveniet ut et voluptates repudiandae sint et molestiae non
recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut
reiciendis voluptatibus maiores alias consequatur aut perferendis
doloribus asperiores repellat.

\newpage

\subsection{Begint echt vervelend te worden}
At vero eos et accusamus et iusto odio dignissimos ducimus qui
blanditiis praesentium voluptatum deleniti atque corrupti quos dolores
et quas molestias excepturi sint occaecati cupiditate non provident,
similique sunt in culpa qui officia deserunt mollitia animi, id est
laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita
distinctio. Nam libero tempore, cum soluta nobis est eligendi optio
cumque nihil impedit quo minus id quod maxime placeat facere possimus,
omnis voluptas assumenda est, omnis dolor repellendus. Temporibus
autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe
eveniet ut et voluptates repudiandae sint et molestiae non
recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut
reiciendis voluptatibus maiores alias consequatur aut perferendis
doloribus asperiores repellat.


\chapter{Besluit}

\backmatter
\appendix

\chapter{Symbolen}
\chapter{Romeinse sprekers}
\chapter{Referentielijst}

\makefinalpage

\end{document}
%</ct-example> 
% \end{verbatim}
% 
% 
% \subsubsection{\texttt{uamasterthesis}}
% 
% \begin{verbatim}
%<*mt-example> 
\documentclass[a4paper,11pt,twoside,openright,english]{uamasterthesis}

\usepackage[english,dutch]{babel}

\selectlanguage{english}

\title{Minimax optimisatie voor performantieruimtemodellering}
\author{Bert Bibber}

\supervisori{Prof. dr. ir. Kumulus (Universiteit Antwerpen)}
\supervisorii{Prof. dr. Hilarius Warwinkel (TNT-Bang, N.V.)}
\supervisoriii{ing. Piet Pienter (POM)}

\facultyacronym{TI}
\academicyear{2012-2013}
\diploma{MA-IW-EI-ICT}
\defenselocation{Antwerpen}
\defensedate{juni 2012}

\begin{document}
\selectlanguage{dutch} % or english if your text is in English

\maketitle

\frontmatter

\tableofcontents

\mainmatter
\chapter*{Inleiding}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.

\chapter{Onderzoeksvraag}

\section{Een beetje Cicero}
Sed ut perspiciatis unde omnis iste natus error sit voluptatem
accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae
ab illo inventore veritatis et quasi architecto beatae vitae dicta
sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit
aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos
qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui
dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed
quia non numquam eius modi tempora incidunt ut labore et dolore magnam
aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum
exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex
ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in
ea voluptate velit esse quam nihil molestiae consequatur, vel illum
qui dolorem eum fugiat quo voluptas nulla pariatur?

\begin{equation}
  e^{-j\pi} + 1 = 0
\end{equation}

At vero eos et accusamus et iusto odio dignissimos ducimus qui
blanditiis praesentium voluptatum deleniti atque corrupti quos dolores
et quas molestias excepturi sint occaecati cupiditate non provident,
similique sunt in culpa qui officia deserunt mollitia animi, id est
laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita
distinctio. Nam libero tempore, cum soluta nobis est eligendi optio
cumque nihil impedit quo minus id quod maxime placeat facere possimus,
omnis voluptas assumenda est, omnis dolor repellendus. Temporibus
autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe
eveniet ut et voluptates repudiandae sint et molestiae non
recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut
reiciendis voluptatibus maiores alias consequatur aut perferendis
doloribus asperiores repellat.

\chapter{Literatuurstudie}

\chapter{Theoretische achtergrond}

\chapter{Eigen realisatie}

\chapter{Besluit}

\backmatter
\appendix

\chapter{Symbolen}
\chapter{Referentielijst}

\makefinalpage

\end{document}
%</mt-example> 
% \end{verbatim}
% 
% 
% \StopEventually{\PrintChanges\PrintIndex}
% 
% \section{Implementation}
% 
% \subsection{Class inheritance}
% 
% 
% For convenience, we'll derive everything from the standard |book|
% class.
% 
% \changes{v1.0}{2013/05/11}{Added option titlepagetableonly}
% \changes{v1.0}{2013/05/11}{Added option titlepagenoartwork}
% \changes{v1.0}{2013/05/11}{Added option qr}
%
% Before loading the class, we provide the extra options.
% 
%    \begin{macrocode}
%<*ct>      
\newif\if@copyright
\DeclareOption{copyright}{\@copyrighttrue}
\newif\if@qr
\DeclareOption{qr}{\@qrtrue}
%</ct>
%    \end{macrocode}
%
%    \begin{macrocode}
%<*ct|mt>
\newif\if@titlepagenoartwork
\DeclareOption{titlepagenoartwork}{\@titlepagenoartworktrue}
\newif\if@titlepagetableonly
\DeclareOption{titlepagetableonly}{\@titlepagetableonlytrue}
\newif\if@filled
\DeclareOption{filled}{\@filledtrue}
%</ct|mt>
%    \end{macrocode}
%
% We execute some standard options:
% We load the |book| class.
%    \begin{macrocode}
%<*ct|mt> 
\ExecuteOptions{a4paper,11pt,final,oneside,openright}
\ProcessOptions
\LoadClassWithOptions{book}
%</ct|mt> 
%    \end{macrocode}
% 
% \subsection{Modern typesetting}
% Let's force some modern typesetting without paragraph indentation
% and with a decent paragraph spacing.
% 
%    \begin{macrocode}
%<*ct|mt>      
\setlength{\parindent}{0pt}
\addtolength{\parskip}{0.75\baselineskip}
\setcounter{secnumdepth}{3}
%</ct|mt> 
%    \end{macrocode}
% 
% \subsection{Auxiliary packages}
% Reinventing the wheel is a waste of time, let's preload some
% appropriate auxiliary packages that have proven their value.
%
% \subsubsection{Geometry}
% Let's reduce the margins to 1 inch each.
%    \begin{macrocode}
%<*ct|mt>      
\RequirePackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
%</ct|mt> 
%    \end{macrocode}
% 
% \subsubsection{Font packages}
% The utf8 stuff has been disabled because of the barcode package that
% screws up on that encoding.
% \changes{v1.2}{2014/08/22}{Added lmodern package to please MikTeX}
%    \begin{macrocode}
%<*ct|mt>      
\RequirePackage{lmodern}
\RequirePackage{cmbright}
\RequirePackage{ifluatex}
\RequirePackage{ifxetex}
\ifluatex
\RequirePackage{fontspec}
%\setmainfont{Calibri}
%\setsansfont{Calibri}
\else
\ifxetex
\RequirePackage{fontspec}
%\setmainfont{Calibri}
%\setsansfont{Calibri}
\else
\usepackage[final,expansion=true,protrusion=true,spacing=true,kerning=true]{microtype}
\fi
\fi
%</ct|mt>
%    \end{macrocode}
%
% \subsubsection{Boilerplate packages}
% 
% Some boilerplate packages and an empty macro to test against (using|\ifx|)
%    \begin{macrocode}
%<*ct|mt>      
\RequirePackage{ifthen}
%\RequirePackage{ifmtarg}
\newcommand{\@emptymacro}{}
%</ct|mt> 
%    \end{macrocode}
% 
% \subsubsection{Graphics packages}
% 
% Graphics packages that are required for the title page, but may come
% in handy for regular use as well.
%
% Some packages for coursetext and masterthesis:
%    \begin{macrocode}
%<*ct|mt>      
\RequirePackage{graphicx}
\RequirePackage{eso-pic}
\RequirePackage{color}
\RequirePackage{tikz}
%</ct|mt>
%    \end{macrocode}
%
% In uacoursetext we also want to generate a qr code.
% Therefore we load the |pst-barcode| and |auto-pst-pdf| package.
%
%    \begin{macrocode}
%<*ct>
\if@qr
\RequirePackage{pst-barcode}
\RequirePackage{auto-pst-pdf}
\fi
%</ct>
%    \end{macrocode}
%
% \subsubsection{Header/Footer}
% 
% The de-facto standard for headers and footers:
%    \begin{macrocode}
%<*ct|mt>      
\RequirePackage{fancyhdr}
%</ct|mt> 
%    \end{macrocode}
% 
% \subsection{Colors}
%
%    \begin{macrocode}
%<*ct|mt> 
\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}
%</ct|mt>
%    \end{macrocode}
%
% \subsection{Tags}
% 
% \begin{macro}{\facultyacronym}
%   The |facultyacronym| sets the faculty acronym tag
%   |\@facultyacronym| that is used in the header/footer
%   information. The correct acronym also sets the faculty's name
%   correctly.
%
%    \begin{macrocode}
%<*ct|mt>      
\newcommand{\@facultyacronym}{}
\newcommand{\@faculty}{}
\newcommand{\@qrfaculty}{}
\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}{PSW}}{\renewcommand\@faculty{Faculteit
      Politieke en 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}}}}}}}}}}}}}}
%</ct|mt>
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{\title}
%   The |title| tag is native to \LaTeX{}. It sets the |\@title| tag
%   that will be used on the title page.
%   However, in view of the qr trouble, we fiddle a little with it.
%   In case the title contains accented characters, you also
%   need to provide a qr version in full unicode (so without the
%   traditional \LaTeX{} accented characters.
%
%    \begin{macrocode}
%<*ct>      
\newcommand{\@qrtitle}{}
\renewcommand{\title}[1]{%
  \renewcommand\@title{#1}
  \ifx\@qrtitle\@emptymacro
  \renewcommand\@qrtitle{#1}
  \fi
}
\newcommand{\qrtitle}[1]{%
  \renewcommand\@qrtitle{#1}
}
%</ct> 
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{\subtitle}
%   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}{}
\newcommand{\@qrsubtitle}{}
\newcommand{\subtitle}[1]{%
  \renewcommand\@subtitle{#1}
  \ifx\@qrsubtitle\@emptymacro
    \renewcommand\@qrsubtitle{#1}
  \fi
}
\newcommand{\qrsubtitle}[1]{%
  \renewcommand\@qrsubtitle{#1}
}
%</ct> 
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{\author}
%   The |author| tag is native to \LaTeX{}. It sets the |\@author|
%   tag that will be used on the title page.
%   However, in view of the qr trouble, we fiddle a little with it.
%   In case the title contains accented characters, you also
%   need to provide a qr version in full unicode (so without the
%   traditional \LaTeX{} accented characters.
%
%    \begin{macrocode}
%<*ct>      
\newcommand{\@qrauthor}{}
\renewcommand{\author}[1]{%
  \renewcommand\@author{#1}
  \ifx\@qrauthor\@emptymacro
  \renewcommand\@qrauthor{#1}
  \fi
}
\newcommand{\qrauthor}[1]{%
  \renewcommand\@qrauthor{#1}
}
%</ct> 
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{\courseversion}
%   This macro sets the |\@courseversion| tag that later will be used
%   on the title page and in the header/footer.
%    \begin{macrocode}
%<*ct>      
\newcommand{\@courseversion}{}
\newcommand{\courseversion}[1]{\renewcommand{\@courseversion}{#1}}
%</ct> 
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{\versionyear}
%   This macro sets the |\@versionyear| tag that later will be used on
%   the title page and in the copyright message.
%    \begin{macrocode}
%<*ct>      
\newcommand{\@versionyear}{}
\newcommand{\versionyear}[1]{\renewcommand{\@versionyear}{#1}}
%</ct> 
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{\publisher}
%   This macro sets the |\@publisher| tag that later will be used on
%   the title page.
%    \begin{macrocode}
%<*ct>      
\newcommand{\@publisher}{Cursusdienst\\
UNIVERSITAS\\
Prinsesstraat 16\\
2000 Antwerpen\\
T +32 3 233 23 72\\
F + 32 3 233 65 81\\
E info@cursusdienst.be\\
W www.cursusdienst.be}
\newcommand{\publisher}[1]{\renewcommand{\@publisher}{#1}}
%</ct> 
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{\publishercode}
%   This macro sets the |\@publishercode| tag that later will be used on
%   the title page.
%    \begin{macrocode}
%<*ct>      
\newcommand{\@publishercode}{}
\newcommand{\publishercode}[1]{\renewcommand{\@publishercode}{#1}}
%</ct> 
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{\lecturer}
%   This macro sets many |\@lecturer| tags (max. 4) that later will be used on
%   the title page. If there is only one teaching lecturer one can
%   use the convenient shorthand without counter.
%   In case the lecturer's name contains accented characters, you also
%   need to provide a qr version in full unicode (so without the
%   traditional \LaTeX{} accented characters.
%    \begin{macrocode}
%<*ct>
\newcommand{\@lectureri}{}
\newcommand{\@lecturerii}{}
\newcommand{\@lectureriii}{}
\newcommand{\@lectureriv}{}
\newcommand{\@qrlectureri}{}
\newcommand{\@qrlecturerii}{}
\newcommand{\@qrlectureriii}{}
\newcommand{\@qrlectureriv}{}
\newcommand{\lecturer}[1]{
  \renewcommand{\@lectureri}{#1}
  \ifx\@qrlectureri\@emptymacro
  \renewcommand\@qrlectureri{#1}
  \fi
}
\newcommand{\qrlecturer}[1]{
  \renewcommand\@qrlectureri{#1}
}
\newcommand{\lectureri}[1]{
  \renewcommand{\@lectureri}{#1}
  \ifx\@qrlectureri\@emptymacro
  \renewcommand\@qrlectureri{#1}
  \fi
}
\newcommand{\qrlectureri}[1]{
  \renewcommand\@qrlectureri{#1}
}
\newcommand{\lecturerii}[1]{
  \renewcommand{\@lecturerii}{#1}
  \ifx\@qrlecturerii\@emptymacro
  \renewcommand\@qrlecturerii{#1}
  \fi
}
\newcommand{\qrlecturerii}[1]{
  \renewcommand\@qrlecturerii{#1}
}
\newcommand{\lectureriii}[1]{
  \renewcommand{\@lectureriii}{#1}
  \ifx\@qrlectureriii\@emptymacro
  \renewcommand\@qrlectureriii{#1}
  \fi
}
\newcommand{\qrlectureriii}[1]{
  \renewcommand\@qrlectureriii{#1}
}
\newcommand{\lectureriv}[1]{
  \renewcommand{\@lectureriv}{#1}
  \ifx\@qrlectureriv\@emptymacro
  \renewcommand\@qrlectureriv{#1}
  \fi
}
\newcommand{\qrlectureriv}[1]{
  \renewcommand\@qrlectureriv{#1}
}
%</ct> 
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{\supervisor}
%   This macro sets many |\@supervisor| tags (max. 4) that later will be used on
%   the title page. If there is only one supervisor one can
%   use the convenient shorthand without counter.
%    \begin{macrocode}
%<*mt>      
\newcommand{\@supervisori}{}
\newcommand{\@supervisorii}{}
\newcommand{\@supervisoriii}{}
\newcommand{\@supervisoriv}{}
\newcommand{\supervisor}[1]{\renewcommand{\@supervisori}{#1}}
\newcommand{\supervisori}[1]{\renewcommand{\@supervisori}{#1}}
\newcommand{\supervisorii}[1]{\renewcommand{\@supervisorii}{#1}}
\newcommand{\supervisoriii}[1]{\renewcommand{\@supervisoriii}{#1}}
\newcommand{\supervisoriv}[1]{\renewcommand{\@supervisoriv}{#1}}
%</mt> 
%    \end{macrocode}
% \end{macro}
% 
% 
% \begin{macro}{\programme}
%   This macro sets the |\@programme| tags that later will
%   be used on the title page. The involved way of repeatedly calling
%   the renewcommand to set the tags is required for inclusion of the
%   data as QR data.
%
%    \begin{macrocode}
%<*ct>      
\newcommand{\@programmet}{} % type
\newcommand{\@programmec}{} % class
\newcommand{\@programmecqr}{} % class for qr code
\newcommand{\@programmes}{} % class
\newcommand{\@programmeq}{} % qualifier
\newcommand{\programme}[3]{%
    \ifthenelse{\equal{#1}{BA}}%
    {\renewcommand{\@programmet}{Bachelor of Science in de }}{%
    \ifthenelse{\equal{#1}{MA}}%
    {\renewcommand{\@programmet}{Master of Science in de }}{%
    \ifthenelse{\equal{#1}{VP}}%
    {\renewcommand{\@programmet}{Voorbereidingsprogramma voor Master of Science in de }}{%
    \ifthenelse{\equal{#1}{SP}}%
    {\renewcommand{\@programmet}{Schakelprogramma voor Master of Science in de }}{%
    \ifthenelse{\equal{#1}{FREE}}%
    {}{
    \errmessage{Error in 1st arg of macro programme[3]: invalid
      programme type!}}}}}}%
    %
    \ifthenelse{\equal{#2}{IW}}%
    {\renewcommand{\@programmec}{industri\"ele wetenschappen}
     \renewcommand{\@programmecqr}{industriële wetenschappen}}{
    \ifthenelse{\equal{#2}{}}%
    {}{
    \errmessage{{Error in 2nd arg of macro programme[3]: invalid 
      programme class! }}}}%
    %
    \ifthenelse{\equal{#3}{BK}}%
    {\renewcommand{\@programmeq}{bouwkunde}}{%
    \ifthenelse{\equal{#3}{CH}}%
    {\renewcommand{\@programmeq}{chemie}}{%
    \ifthenelse{\equal{#3}{BCH}}%
    {\renewcommand{\@programmeq}{biochemie}}{%
    \ifthenelse{\equal{#3}{EM}}%
    {\renewcommand{\@programmeq}{elektromechanica}}{%
    \ifthenelse{\equal{#3}{EI}}%
    {\renewcommand{\@programmeq}{elektronica-ICT}}{%
    \ifthenelse{\equal{#3}{}}%
    {}{%
    \ifthenelse{\equal{#1}{FREE}}
    {\renewcommand{\@programmeq}{#3}}{
    \errmessage{Error in 3rd arg to macro programme[3]: invalid
      programme qualifier}}}}}}}}% 
    %
    \ifthenelse{\equal{#2}{IW}\and\not\equal{#3}{}}
    {\renewcommand{\@programmes}{: }}{}
}
%</ct> 
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{\course}
%   This macro sets many |\@coursecode| and |\@course| tags (max. 4)
%   that later will 
%   be used on the title page. If there is only one course code
%   one can use the convenient shorthand without counter.
%    \begin{macrocode}
%<*ct>      
\newcommand{\@coursecodei}{}
\newcommand{\@coursecodeii}{}
\newcommand{\@coursecodeiii}{}
\newcommand{\@coursecodeiv}{}
\newcommand{\@coursei}{}
\newcommand{\@courseii}{}
\newcommand{\@courseiii}{}
\newcommand{\@courseiv}{}
\newcommand{\@qrcoursei}{}
\newcommand{\@qrcourseii}{}
\newcommand{\@qrcourseiii}{}
\newcommand{\@qrcourseiv}{}
\newcommand{\course}[2]{
  \renewcommand{\@coursecodei}{#1}
  \renewcommand{\@coursei}{#2}
  \ifx\@qrcoursei\@emptymacro
  \renewcommand{\@qrcoursei}{#2}
  \fi
}
\newcommand{\qrcourse}[1]{
  \renewcommand{\@qrcoursei}{#1}
}
\newcommand{\coursei}[2]{
  \renewcommand{\@coursecodei}{#1}
  \renewcommand{\@coursei}{#2}
  \ifx\@qrcoursei\@emptymacro
  \renewcommand{\@qrcoursei}{#2}
  \fi
}
\newcommand{\qrcoursei}[1]{
  \renewcommand{\@qrcoursei}{#1}
}
\newcommand{\courseii}[2]{
  \renewcommand{\@coursecodeii}{#1}
  \renewcommand{\@courseii}{#2}
  \ifx\@qrcourseii\@emptymacro
  \renewcommand{\@qrcourseii}{#2}
  \fi
}
\newcommand{\qrcourseii}[1]{
  \renewcommand{\@qrcourseii}{#1}
}
\newcommand{\courseiii}[2]{
  \renewcommand{\@coursecodeiii}{#1}
  \renewcommand{\@courseiii}{#2}
  \ifx\@qrcourseiii\@emptymacro
  \renewcommand{\@qrcourseiii}{#2}
  \fi
}
\newcommand{\qrcourseiii}[1]{
  \renewcommand{\@qrcourseiii}{#1}
}
\newcommand{\courseiv}[2]{
  \renewcommand{\@coursecodeiv}{#1}
  \renewcommand{\@courseiv}{#2}
  \ifx\@qrcourseiv\@emptymacro
  \renewcommand{\@qrcourseiv}{#2}
  \fi
}
\newcommand{\qrcourseiv}[1]{
  \renewcommand{\@qrcourseiv}{#1}
}
%</ct> 
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{\diploma}
%   This macro sets the |\@diploma| tags that later will
%   be used on the title page. 
%   \changes{v1.1}{2013/05/21}{Fixed typo on programme's name (e-umlaut)}
%    \begin{macrocode}
%<*mt>
\newcommand{\@diploma}{ERROR}
\newcommand{\diploma}[1]{
  \newcommand{\MoSIW}{Master of Science in de industri\"ele wetenschappen}
  \renewcommand{\@diploma}{
    \ifthenelse{\equal{#1}{MA-IW-BK}}
                          {\MoSIW: bouwkunde}{
    \ifthenelse{\equal{#1}{MA-IW-BCH}}
                          {\MoSIW: biochemie}{
    \ifthenelse{\equal{#1}{MA-IW-CH}}
                          {\MoSIW: chemie}{
    \ifthenelse{\equal{#1}{MA-IW-EI}}
                          {\MoSIW: elektronica-ICT}{
    \ifthenelse{\equal{#1}{MA-IW-EI-AE}}
                          {\MoSIW:\\elektronica-ICT, afstudeerrichting automotive engineering}{
    \ifthenelse{\equal{#1}{MA-IW-EI-ICT}}
                          {\MoSIW:\\elektronica-ICT, afstudeerrichting ICT}{
    \ifthenelse{\equal{#1}{MA-IW-EM-AE}}
                          {\MoSIW:\\elektromechanica, afstudeerrichting automotive engineering}{
    \ifthenelse{\equal{#1}{MA-IW-EM-AU}}
                          {\MoSIW\\elektromechanica, afstudeerrichting automatisering}{
    \ifthenelse{\equal{#1}{MA-IW-EM-EM}}
                          {\MoSIW\\elektromechanica, afstudeerrichting elektromechanica}
    {\errmessage{Error in argument to macro diploma: must be one of MA-IW-XXX with XXX one of BCH, CH, EI, EI-AE, EI-ICT, EM-AE, EM-AU, EM-EM! <<}}}}}}}}}}
}
}
%</mt> 
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{\defensedate}
%   This macro sets the |\@defensedate| tags that later will
%   be used on the title page. 
%    \begin{macrocode}
%<*mt>      
\newcommand{\@defensedate}{ERROR}
\newcommand{\defensedate}[1]{\renewcommand{\@defensedate}{#1}}
%</mt> 
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{\defenselocation}
%   This macro sets the |\@defenselocation| tags that later will
%   be used on the title page. 
%    \begin{macrocode}
%<*mt>      
\newcommand{\@defenselocation}{Antwerpen}
\newcommand{\defenselocation}[1]{\renewcommand{\@defenselocation}{#1}}
%</mt> 
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{\academicyear}
%   This macro sets the |\@academicyear| tag that later will be used on
%   the title page.
%    \begin{macrocode}
%<*ct|mt>      
\newcommand{\@academicyear}{XXX-YYYY}
\newcommand{\academicyear}[1]{\renewcommand{\@academicyear}{#1}}
%</ct|mt> 
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{\copyrightnotices}
%    \begin{macrocode}
%<*ct>      
\newcommand{\@copyrightnotices}{}
\newcommand{\copyrightnotices}[1]{\renewcommand{\@copyrightnotices}{#1}}
%</ct> 
%    \end{macrocode}
% \end{macro}
% 
% \subsection{Header and Footer}
% The |fancyhdr| package is used to make a decent header ander footer.
% The header and footer of the |uacoursetext| package are defined to be:
%    \begin{macrocode}
%<*ct>      
\if@twoside
\lhead[\thepage]{\slshape\rightmark}
\chead[]{}
\rhead[\slshape\leftmark]{\thepage}
\lfoot[Universiteit Antwerpen -- \@facultyacronym]{\@courseversion}
\cfoot[]{}
\rfoot[]{\@title{}\@ifmtarg{\@subtitle}{}{ --- \@subtitle}}
\else
\lhead[]{\leftmark}
\chead[]{}
\rhead[]{\thepage}
\lfoot[]{\@courseversion}
\cfoot[]{UA--\@facultyacronym}
\rfoot[]{\@title{}}
\fi
%</ct> 
%    \end{macrocode}
% 
% The header and footer of the |uamasterthesis| package are defined to be:
%    \begin{macrocode}
%<*mt>
\if@twoside
  \lhead[\thepage]{\slshape\rightmark}
  \chead[]{}
  \rhead[\slshape\leftmark]{\thepage}
  \lfoot[Universiteit Antwerpen -- \@facultyacronym]{}
  \cfoot[]{}
  \rfoot[]{\@title{}}
\else
  \lhead[]{\leftmark}
  \chead[]{}
  \rhead[]{\thepage}
  \lfoot[]{}
  \cfoot[]{UA--\@facultyacronym}
  \rfoot[]{\@title{}}
\fi
%</mt>
%    \end{macrocode}
%
% Some common code remains:
% \changes{v1.1}{2013/05/28}{Made raggedright conditional on option
% 'filled', because it can't be undone}
% \changes{v1.2}{2014/08/22}{Increased headheight to please Fancyhdr}
%    \begin{macrocode}
%<*ct|mt>
\setlength{\headheight}{13.7pt}
\renewcommand{\headrulewidth}{1pt}
\renewcommand{\footrulewidth}{1pt}
\pagestyle{fancy}
\if@filled\else
  \raggedright
\fi
\raggedbottom
\pagenumbering{arabic}
\onecolumn
%</ct|mt>
%    \end{macrocode}
%
% \subsection{Copyright notice}
%
% \begin{macro}{\@crnotice}
%    \begin{macrocode}
%<*ct>
\newcommand{\@crnotice}{
  This document has been typeset using \LaTeX{} and the
  \texttt{uacoursetext} class.\\
  \@copyrightnotices

  \@courseversion

  CONFIDENTIAL AND PROPRIETARY.

  \copyright{} \@versionyear{} Universiteit Antwerpen, All rights reserved.
}
%</ct>
%    \end{macrocode}
% \end{macro}
%
%
% \subsection{Title page}
%
% \begin{macro}{\maketitle}
% The title page is generated using the |\maketitle| command. As the
% book class from which we inherit already defines this command, we
% need to renew it.
%
% The UA house style works with large-radius circles.
% We need some math in order to calculate center points an radiuses
% 
% \paragraph{Header circle:} the blue header-circle on top of the
% page. We calculate the center point and the radius based on:
% \begin{itemize}
% \item the fact that the center point is above the page's left edge;
% \item the distance of the intersection points at the left and right
%   edge of the page with respect to the top of the page, $X$ and $Y$
%   respectively;
% \item the width of the page $W$.
% \end{itemize}
% Some simple trigonometry leads to the elevation of the center point
% above the top of the page $Q$ and the radius $R$:
% \begin{eqnarray}
%   R &=& \frac{W^2 + (X-Y)^2}{2(X-Y)}\\
%   Q &=& R - X
% \end{eqnarray}
% We labeled the variables in the code below with a prefix
% |ua@| and a suffix h (from 'header'). We also took the paperheight into account (the page's
% coordinate system origins at the left bottom.
% Therefore:
%    \begin{macrocode}
%<*ct|mt>
\pgfmathsetmacro{\ua@Wh}{\paperwidth}
\pgfmathsetmacro{\ua@Xh}{0.2\paperheight}
\pgfmathsetmacro{\ua@Yh}{0.125\paperheight}
\pgfmathsetmacro{\ua@XMYh}{\ua@Xh-\ua@Yh}
\pgfmathsetmacro{\ua@Rh}{0.5*\ua@Wh/\ua@XMYh*\ua@Wh+0.5*\ua@XMYh}
\pgfmathsetmacro{\ua@Qh}{\ua@Rh-\ua@Xh+\paperheight}
%</ct|mt>
%    \end{macrocode}
%
% \paragraph{Bottom circle A:} the bottom circle with the largest
% radius. We calculate the center point and the radius based on:
% \begin{itemize}
% \item the fact that the center point is at a distance of 3/5 page
% width from the right page edge. We denote that distance as $W$;
% \item the fact that the horizontal bottom tangent line of the circle
% is at a specific height above the bottom page edge, labeled $S$;
% \item the distance of the intersection points at the right edge of
% the page with respect to the horizontal bottom tangent line of the
% circle, denoted as $X-Y$.
% \end{itemize}
% Given these definitions, almost the same equations as for the header
% circle hold:
% \begin{eqnarray}
%   R &=& \frac{W^2 + (X-Y)^2}{2(X-Y)}\\
%   Q &=& R + S
% \end{eqnarray}
% with $R$ the circle's radius, and $Q$ the elevation of the center
% point above the page's bottom.
%
% We labeled the variables in the code below with a prefix
% |ua@| and a suffix ba (from 'bottom a').
% Therefore:
%    \begin{macrocode}
%<*ct|mt>
\pgfmathsetmacro{\ua@Wba}{0.4*\paperwidth}
\pgfmathsetmacro{\ua@Sba}{0.125*\paperheight}
\pgfmathsetmacro{\ua@XMYba}{0.02\paperheight}
\pgfmathsetmacro{\ua@Rba}{0.5*\ua@Wba/\ua@XMYba*\ua@Wba+0.5*\ua@XMYba}
\pgfmathsetmacro{\ua@Qba}{\ua@Rba+\ua@Sba}
%</ct|mt>
%    \end{macrocode}
%
%
% \paragraph{Bottom circle B:} the bottom circle with the smallest
% radius. The same reasoning leads to:
%
%    \begin{macrocode}
%<*ct|mt>
\pgfmathsetmacro{\ua@Wbb}{0.65*\paperwidth}
\pgfmathsetmacro{\ua@Sbb}{0.14*\paperheight}
\pgfmathsetmacro{\ua@XMYbb}{0.06\paperheight}
\pgfmathsetmacro{\ua@Rbb}{0.5*\ua@Wbb/\ua@XMYbb*\ua@Wbb+0.5*\ua@XMYbb}
\pgfmathsetmacro{\ua@Qbb}{\ua@Rbb+\ua@Sbb}
%</ct|mt>
%    \end{macrocode}
%
% \paragraph{Text alignment':} The text is aligned around an imaginary
% vertical line around 2/5 page width distance from the left edge.
%  
%    \begin{macrocode}
%<*ct|mt>
\pgfmathsetmacro{\ua@ll}{0.15*\paperwidth}
\pgfmathsetmacro{\ua@l}{0.4*\paperwidth}
\pgfmathsetmacro{\ua@d}{0.1in}
\pgfmathsetmacro{\ua@rr}{0.85*\paperwidth}
%</ct|mt>
%    \end{macrocode}
%
% Below, one can find the code for the title page of the
% |uacoursetext| class:
%    \begin{macrocode}
%<*ct>
\newcommand\sprtr{ / }
\newcommand\myqrdata{
I: Universiteit Antwerpen\string\n
F: \@qrfaculty\string\n 
P: \@programmet  \@programmecqr  \@programmeq\string\n
C: \@coursecodei  \@qrcoursei  
\sprtr
\@coursecodeii  \@qrcourseii  
\sprtr
\@coursecodeiii  \@qrcourseiii 
\sprtr
\@coursecodeiv  \@cqrourseiv 
\string\n
Y: \@academicyear\string\n
T: \@qrtitle\string\n
S: \@qrsubtitle\string\n
A: \@qrauthor\string\n
L: \@qrlectureri
\sprtr
\@qrlecturerii
\sprtr
\@qrlectureriii
\sprtr
\@qrlectureriv}
\newsavebox{\myqrcode}
\renewcommand\maketitle{%
  \pagestyle{empty}
  \begin{titlepage}
    \if@qr
    \savebox{\myqrcode}[2.7in][t]{
      \begin{pspicture}(2.7in,2.7in)
        \psbarcode{\myqrdata}{version=22 encoding=byte eclevel=M}{qrcode}
      \end{pspicture}
    }
    \else
    \savebox{\myqrcode}[2.7in][t]{}
    \fi
    \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 & \@academicyear \\\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}{\@lectureri\\
                                       \@lecturerii\\
                                       \@lectureriii\\
                                       \@lectureriv} \\\hline
      \end{tabular}
    \end{center}
    ~\\
    Waarbij: I = instelleng, F = faculteit, P = programma, C =
    cursusmodule, T = titel, S = subtitel, A = auteur(s), L =
    lesgever(s)\\~\\
    Deze informatie is ook gecodeerd in de onderstaande QR-code.\\
    \if@qr
    \vspace*{1cm}
    \usebox{\myqrcode}
    \fi
    \else
    \AddToShipoutPicture*{%
      \setlength{\unitlength}{1cm}
      \put(0,0){%
        \begin{tikzpicture}[inner sep=0pt]
          \clip (0,0) rectangle(\paperwidth,\paperheight);
          \if@titlepagenoartwork\else
          \filldraw [uacorpbord] (0.55\paperwidth,\ua@Qba pt) circle (\ua@Rba pt);
          \filldraw [white] (0.35\paperwidth,\ua@Qbb pt) circle (\ua@Rbb pt);
          \filldraw [uacorpblue] (0,\ua@Qh pt) circle (\ua@Rh pt);
          \path 
          (0.95\paperwidth,0.1\paperheight) 
          node [anchor=north east] {
            \includegraphics[width=0.25\paperwidth]{ua_color}};
          \fi
          \path
          (\ua@l pt -\ua@d pt,0.77\paperheight) 
          node [anchor=north east, text width=0.35\paperwidth] {
            \begin{flushright}
              UNIVERSITEIT ANTWERPEN\\~\\
              Academiejaar \@academicyear
            \end{flushright}}
          (\ua@l pt +\ua@d pt,0.65\paperheight)
          node [anchor = north west, text width = 0.55\paperwidth] {
            {\large \@faculty{}}\\[0.05\paperheight]
            {\huge \bf \@title{}}\\[2ex]
            {\Large \bf \@subtitle{}}\\[3ex]
            {\Large \bf \@author{}}}
          (\ua@l pt +\ua@d pt,0.45\paperheight)
          node [anchor = north west, text width = 0.55\paperwidth] {
            \@lectureri~\\
            \@lecturerii~\\
            \@lectureriii~\\
            \@lectureriv}
          (\ua@l pt +\ua@d pt,0.35\paperheight)
          node [anchor = north west, text width = 0.55\paperwidth] {
            {\bf \@programmet \\ \@programmec\@programmes  \@programmeq}}
          (\ua@l pt +\ua@d pt,0.30\paperheight)
          node [anchor = north west, text width = 0.55\paperwidth] {
            \texttt{\@publishercode}~\\~\\
            \texttt{\@coursecodei{}} \@coursei~\\
            \texttt{\@coursecodeii{}} \@courseii~\\
            \texttt{\@coursecodeiii{}} \@courseiii~\\
            \texttt{\@coursecodeiv{}} \@courseiv}
          (\ua@l pt - 2\ua@d pt, 0.368\paperheight)
          node [anchor = north east, text width = 0.35\paperwidth] {
            {\normalsize\begin{flushright}
                \@publisher{}
              \end{flushright}}};
        \end{tikzpicture}
      }
    }%
    \phantom{Do not remove: this causes an empty title page to be
      generated}
    \fi
  \end{titlepage}%
  \clearpage
  \if@copyright
  \AddToShipoutPicture{
    \put(0,0){%
      \begin{tikzpicture}[inner sep=0pt]
        \clip (0,0) rectangle(\paperwidth,\paperheight);
        \path 
        (0.5\paperwidth,0.5\paperheight)
        node [anchor=center, rotate=55, color=lightgray] {
          \Huge Copyright Universiteit Antwerpen, All Rights Reserved
        };
      \end{tikzpicture}
    }
  }
  \fi
  \vspace*{\stretch{1}}
  \@crnotice
  \clearpage
  \setcounter{footnote}{0}%
  \global\let\thanks\relax
  \global\let\maketitle\relax
  \global\let\@thanks\@empty
  \global\let\title\relax
  \global\let\author\relax
  \global\let\date\relax
  \global\let\and\relax
  \pagestyle{fancy}
  \thispagestyle{empty}
}
%</ct> 
%    \end{macrocode}
%
% Below, one can find the code for the final page of the |uacoursetext| class:
%    \begin{macrocode}
%<*ct>
\newcommand\makefinalpage{
  \if@titlepagetableonly
  \else
  \if@qr
  \savebox{\myqrcode}{
    \begin{pspicture}(2.7in,2.7in)
      \psbarcode{\myqrdata}{version=22 encoding=byte eclevel=M}{qrcode}
    \end{pspicture}
  }
  \else
  \savebox{\myqrcode}[2.7in][t]{}
  \fi
  \cleardoublepage
  \thispagestyle{empty}
  \AddToShipoutPicture*{%
    \setlength{\unitlength}{1cm}
    \put(0,0){%
      \begin{tikzpicture}[inner sep=0pt]
        \clip (0,0) rectangle(\paperwidth,\paperheight);
        \if@titlepagenoartwork\else
        \filldraw [uacorpblue] (\paperwidth,\ua@Qh pt) circle (\ua@Rh pt);
        \fi
        \path 
        (0.1\paperwidth,0.1\paperheight)
        node [anchor = south west, text width = 0.6\paperwidth] {
          CONFIDENTIAL AND PROPRIETARY\\~\\
          \copyright{} \@versionyear{} Universiteit Antwerpen, 
          All rights reserved.}
        (0.9\paperwidth,0.1\paperheight)
        node [anchor = south east] {
          \if@qr
          \usebox{\myqrcode}
          \fi
        };
      \end{tikzpicture}
    }
  }
  \phantom{Do not remove: this causes an empty final page to be
    generated}
  \fi
}
%</ct> 
%    \end{macrocode}
% 
% And next, the code for the title page of the |uamasterthesis| class:
%    \begin{macrocode}
%<*mt>      
\renewcommand\maketitle{%
  \pagestyle{empty}
  \begin{titlepage}
    \AddToShipoutPicture*{%
      \setlength{\unitlength}{1cm}
      \put(0,0){%
        \begin{tikzpicture}[inner sep=0pt]
          \clip (0,0) rectangle(\paperwidth,\paperheight);
          \if@titlepagenoartwork\else
          \filldraw [lightgray] (0.55\paperwidth,\ua@Qba pt) circle (\ua@Rba pt);
          \filldraw [white] (0.35\paperwidth,\ua@Qbb pt) circle (\ua@Rbb pt);
          \filldraw [lightgray] (0,\ua@Qh pt) circle (\ua@Rh pt);
          \path 
          (0.95\paperwidth,0.1\paperheight) 
          node [anchor=north east] {
            \includegraphics[width=0.25\paperwidth]{ua_color}};
          \fi
          \path
          (\ua@ll pt,0.77\paperheight) 
          node [anchor=north west, text width=0.7\paperwidth] {
            UNIVERSITEIT ANTWERPEN\\~\\
            Academiejaar \@academicyear\\~\\
            {\large \@faculty{}}\\~\\
            Masterproef\\[0.05\paperheight]
            {\Large \bf \@title{}}}
          (\ua@ll pt,0.55\paperheight)
          node [anchor = north west, text width = 0.7\paperwidth] {
            {\large \bf \@author{}}\\~\\~\\
            \begin{tabular}{@{}p{2.5cm}p{11cm}}
              \textbf{Promotoren:} 
              & \@supervisori \\
              & \@supervisorii \\
              & \@supervisoriii \\
              & \@supervisoriv
            \end{tabular}
          }
          (\ua@ll pt,0.3\paperheight) node [anchor=north west, text width = 0.7\paperwidth]{%
            Proefschrift tot het behalen van de graad van\\
            \@diploma\\
            \@defenselocation, \@defensedate
          };
        \end{tikzpicture}
      }
    }%
    \phantom{Do not remove: this causes an empty title page to be
      generated}
  \end{titlepage}%
  \clearpage
  \setcounter{footnote}{0}%
  \global\let\thanks\relax
  \global\let\maketitle\relax
  \global\let\@thanks\@empty
  \global\let\title\relax
  \global\let\author\relax
  \global\let\date\relax
  \global\let\and\relax
  \pagestyle{fancy}
  \thispagestyle{empty}
  %       \end{tikzpicture}
  %     }
  %   }%
  %   \phantom{Do not remove: this causes an empty title page to be generated}
  % \end{titlepage}%
  % \if@twoside
  % \cleardoublepage
  % \else
  % \clearpage
  % \fi
  % \setcounter{footnote}{0}%
  % \global\let\thanks\relax
  % \global\let\maketitle\relax
  % \global\let\@thanks\@empty
  % \global\let\title\relax
  % \global\let\author\relax
  % \global\let\date\relax
  % \global\let\and\relax
  % \pagestyle{fancy}
  % \thispagestyle{empty}
  }
%</mt>
%    \end{macrocode}
% \end{macro}
%
% Below, one can find the code for the final page of the |uamasterthesis| class:
%    \begin{macrocode}
%<*mt>
\newcommand\makefinalpage{
  \cleardoublepage
  \thispagestyle{empty}
  \AddToShipoutPicture*{%
    \setlength{\unitlength}{1cm}
    \put(0,0){%
      \begin{tikzpicture}[inner sep=0pt]
        \clip (0,0) rectangle(\paperwidth,\paperheight);
        \if@titlepagenoartwork\else
        \filldraw [lightgray] (\paperwidth,\ua@Qh pt) circle (\ua@Rh pt);
        \fi
      \end{tikzpicture}
    }
  }
  \phantom{Do not remove: this causes an empty final page to be
    generated}
}
%</mt> 
%    \end{macrocode}
%
%
% \subsection{References}
%    \begin{macrocode}
%<*ct|mt>
\IfFileExists{varioref.sty}{\RequirePackage{varioref}}{}
%</ct|mt>
%
%<*ct>
\IfFileExists{hyperref.sty}{
    \RequirePackage{hyperref}
    \hypersetup{
      backref=true,
      breaklinks=true,
      colorlinks=true,
      citecolor=black,
      filecolor=black,
      hyperindex=true,
      linkcolor=black,
      pageanchor=true, 
      pagebackref=true,
      pagecolor=black,
      pdfpagemode=UseOutlines,
      urlcolor=black
    }
    \AtBeginDocument{
      \hypersetup{
        pdftitle={\@title},
        pdfsubject={\@subtitle},
        pdfauthor={\@author}
      }
    }
}{}
%</ct>
%
%
%<*mt>
\IfFileExists{hyperref.sty}{
    \RequirePackage{hyperref}
    \hypersetup{
      backref=true,
      breaklinks=true,
      colorlinks=true,
      citecolor=black,
      filecolor=black,
      hyperindex=true,
      linkcolor=black,
      pageanchor=true, 
      pagebackref=true,
      pagecolor=black,
      pdfpagemode=UseOutlines,
      urlcolor=black
    }
    \AtBeginDocument{
      \hypersetup{
        pdftitle={\@title},
        pdfsubject={Master's Thesis},
        pdfauthor={\@author}
      }
    }
}{}
%</mt> 
%    \end{macrocode}
%
% \Finale
\endinput