Debian Codegraph @

texmf-dist/doc/latex/se2thesis/se2thesis.tex

raw
1 \iffalse meta-comment
2
3 File: se2thesis.tex Copyright (C) 2022--2024 Stephan Lukasczyk
4
5 It may be distributed and/or modified under the conditions of the
6 LaTeX Project Public License (LPPL), either version 1.3c of this
7 license or (at your option) any later version. The latest version
8 of this license is in the file
9
10 https://www.latex-project.org/lppl.txt
11
12 This file is part of the "se2thesis bundle" (The Work in LPPL)
13 and all files in that bundle must be distributed together.
14
15 The released version of this bundle is available from CTAN.
16
17 ---------------------------------------------------------------------
18
19 The development version of the bundle can be found at
20
21 https://github.com/se2p/se2thesis
22
23 for those people who are interested.
24
25 ---------------------------------------------------------------------
26
27 \fi
28
29 \documentclass{l3doc}
30
31 % The next line is needed so that \GetFileInfo will be able to pick up
32 % version data.
33 \usepackage{se2colors}
34
35 %
36 % Commands for this document, taken from Joseph Wright's siunitx
37 % documentation:
38 \ExplSyntaxOn
39 \makeatletter
40 \NewDocumentCommand \acro { m }
41 {
42 \textsc
43 {
44 \exp_args:NV \tl_if_head_eq_charcode:nNTF \f@series { m }
45 { \text_lowercase:n }
46 { \use:n }
47 {#1}
48 }
49 }
50 \makeatother
51 \ExplSyntaxOff
52 \NewDocumentCommand{\email}{m}{\href{mailto:#1}{\nolinkurl{#1}}}
53 \NewDocumentCommand{\ext}{m}{\texttt.#1}
54 \NewDocumentCommand{\opt}{m}{\texttt{#1}}
55 % Tidy up the above in bookmarks
56 \makeatletter
57 \pdfstringdefDisableCommands{%
58 \let\acro\@firstofone
59 \let\ext\@firstofone
60 \let\opt\@firstofone
61 }
62 \makeatother
63
64 % For creating code demonstration, taken from Joseph Wright's siunitx
65 % documentation:
66 \usepackage{listings}
67 \makeatletter
68 \lst@RequireAspects{writefile}
69 \newsavebox\LaTeXdemo@box
70 \lstnewenvironment{LaTeXdemo}[1][code and example]
71 {%
72 \global\let\lst@intname\@empty
73 \edef\LaTeXdemo@end{%
74 \expandafter\noexpand\csname LaTeXdemo@@#1@end\endcsname
75 }%
76 \@nameuse{LaTeXdemo@@#1}%
77 }
78 {\LaTeXdemo@end}
79 \newcommand\LaTeXdemo@new[3]{%
80 \@namedef{LaTeXdemo@@#1}{#2}
81 \@namedef{LaTeXdemo@@#1@end}{#3}%
82 }
83 \newcommand*\LaTeXdemo@common{%
84 \setkeys{lst}
85 {%
86 basicstyle = \small\ttfamily,
87 breaklines = true,
88 basewidth = 0.51em,
89 captionpos = t,
90 extendedchars = true,
91 frame = single,
92 gobble = 2,
93 keywordstyle = \color{blue}\bfseries,
94 language = [LaTeX]{TeX},
95 showspaces = false,
96 showstringspaces = false,
97 showtabs = false,
98 tabsize = 2,
99 }%
100 }
101 \newcount\LaTeXdemo@count
102 \newcommand*\LaTeXdemo@input{%
103 \catcode`\^^M = 10\relax
104 \input{\jobname-\number\[email protected]}%
105 }
106 \LaTeXdemo@new{code and example}{%
107 \setbox\LaTeXdemo@box=\hbox\bgroup
108 \global\advance\LaTeXdemo@count by 1 %
109 \lst@BeginAlsoWriteFile{\jobname-\number\[email protected]}%
110 \LaTeXdemo@common
111 }{%
112 \lst@EndWriteFile
113 \egroup
114 \begin{center}
115 \ifdim\wd\LaTeXdemo@box > 0.48\linewidth
116 \begin{minipage}{\linewidth}
117 \usebox\LaTeXdemo@box
118 \end{minipage}%
119 \par
120 \begin{minipage}{\linewidth}
121 \LaTeXdemo@input
122 \end{minipage}
123 \else
124 \begin{minipage}{0.48\linewidth}
125 \LaTeXdemo@input
126 \end{minipage}%
127 \hspace{\fill}%
128 \begin{minipage}{0.48\linewidth}
129 \usebox\LaTeXdemo@box
130 \end{minipage}%
131 \fi
132 \end{center}
133 }
134 \LaTeXdemo@new{code and float}{%
135 \global\advance\LaTeXdemo@count by 1 %
136 \lst@BeginAlsoWriteFile{\jobname-\number\[email protected]}%
137 \LaTeXdemo@common
138 }{%
139 \lst@EndWriteFile
140 \LaTeXdemo@input
141 }
142 \LaTeXdemo@new{code only}{\LaTeXdemo@common}{}
143 \makeatother
144
145 \usepackage[UKenglish]{babel}
146 \usepackage{se2fonts}
147 \usepackage{hvlogos}
148
149 % Taken from xcolor.dtx
150 \makeatletter
151 \def\testclr#1#{\@testclr{#1}}
152 \def\@testclr#1#2{{\fboxsep\z@\fbox{\colorbox#1{#2}{\phantom{XX}}}}}
153 \makeatother
154
155 \usepackage{hvfloat}
156 \hypersetup{%
157 allcolors=UPSE2-Blue,%
158 pdftitle={se2thesis---A Thesis Class for the Chair of Software Engineering II
159 at the University of Passau, Germany},%
160 pdfauthor={Stephan Lukasczyk},
161 }
162 \usepackage[capitalise]{cleveref}
163
164 \begin{document}
165
166 \GetFileInfo{se2colors.sty}
167
168 \title{%
169 \pkg{se2thesis}---A Thesis Class for the Chair of Software
170 Engineering~II at the University of Passau, Germany%
171 \thanks{This file describes \fileversion,
172 last revised \filedate.}%
173 }
174
175 \author{%
176 Stephan Lukasczyk%
177 \thanks{%
178 E-mail: \href{mailto:[email protected]}{[email protected]}%
179 }%
180 }
181
182 \date{Released \filedate}
183
184 \pagenumbering{roman}
185
186 \maketitle
187
188 \begin{abstract}
189 One can choose from a wide variety of templates to write a thesis.
190 Many universities provide very rigorous style guides and force their
191 students to obey to those guides, even though they might be questionable
192 from a typographics point of view.
193 Other universities do not provide such guides and leave it to their students
194 to choose or come up with a template.
195 The latter is causing very differently-looking theses.
196
197 To avoid such a situation in the future this bundle combines several
198 \LaTeX{} packages and classes for the use at the Chair of Software
199 Engineering~II at the University of Passau.
200 We provide, among others, a document class for theses that shall be
201 used by our students.
202 The bundle is designed in a way that one can use the basic components as
203 standalone packages to allow their reuse for other projects.
204 \end{abstract}
205
206 \tableofcontents
207 \clearpage
208 \pagenumbering{arabic}
209
210 % Make the separate source files into a single whole, format-wise
211 \RenewDocumentCommand{\maketitle}{}{%
212 \clearpage
213 }
214 \DeclareExpandableDocumentCommand{\thanks}{m}{}
215
216 \let\DelayPrintIndex\PrintIndex
217 \RenewDocumentCommand{\PrintIndex}{}{}
218
219 \DisableImplementation
220
221 \part{User Documentation}\label{sec:doc}
222
223 The first part of this file provides the documentation for the user
224 of the \pkg{se2thesis} bundle.
225 We provide the implementation in the second part of this document,
226 starting at page~\pageref{sec:impl}, for those who are curious.
227
228 % Load the source files in order
229 \DocInput{se2thesis.dtx}
230 \DocInput{se2colors.dtx}
231 \DocInput{se2fonts.dtx}
232 \DocInput{se2packages.dtx}
233
234 \EnableImplementation
235 \DisableDocumentation
236
237 \clearpage
238 \part{Implementation}\label{sec:impl}
239
240 The second part of this file provides the implementation of the package
241 for a better understanding of what is happening.
242
243 \DocInputAgain
244
245 \DelayPrintIndex
246
247 \end{document}