Debian Codegraph @

texmf-dist/doc/latex/gia-handout/gia-handout-doc.tex

raw
1 %% gia-handout-doc.tex
2 %% Copyright 2026 André Hilbig and Frederick Heyder
3 %
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License, either version 1.3
6 % of this license or (at your option) any later version.
7 % The latest version of this license is in
8 % http://www.latex-project.org/lppl.txt
9 % and version 1.3 or later is part of all distributions of LaTeX
10 % version 2005/12/01 or later.
11 %
12 % This work has the LPPL maintenance status `maintained'.
13 %
14 % The Current Maintainer of this work is André Hilbig.
15 %
16 % This work consists of the files
17 % gia-handout.cls and
18 % gia-handout-doc.tex.
19
20 % --- PDF tagging setup (currently disabled; pending listings compatibility) ---
21 % \DocumentMetadata{
22 % tagging = on,
23 % tagging-setup = {
24 % activate/all,
25 % tabsorder = structure
26 % },
27 % pdfversion = 2.0,
28 % lang = de,
29 % pdfstandard = a-4f,
30 % pdfstandard = ua-2
31 % }
32 % --- end of PDF tagging setup ---
33
34 \documentclass[a4paper]{article}
35
36 \usepackage[utf8]{inputenc}
37 \usepackage[T1]{fontenc}
38
39 \usepackage[ngerman]{babel}
40
41 \usepackage[german=guillemets]{csquotes}
42
43 \usepackage[
44 backend=biber,
45 style=authoryear
46 ]{biblatex}
47 \begin{filecontents*}{\jobname.bib}
48 @online{fischer2024,
49 author = {Ulrike Fischer},
50 title = {How to hide a QR-Code from tagpdf and provide alt-text},
51 date = {2024-05-19},
52 url = {https://tex.stackexchange.com/q/718239},
53 urldate = {2026-03-20},
54 organization = {Stack Exchange}
55 }
56 @manual{tagpdf2026,
57 author = {Ulrike Fischer},
58 title = {The \texttt{tagpdf} package -- package documentation, v0.99y},
59 date = {2026-01-29},
60 url = {https://ctan.org/pkg/tagpdf},
61 urldate = {2026-03-20},
62 organization = {CTAN}
63 }
64 \end{filecontents*}
65 \addbibresource{\jobname.bib}
66
67 \usepackage{microtype}
68
69 \usepackage{graphicx}
70
71 \usepackage{xcolor}
72
73 % --- gia-handout.cls extract: GI colors & GI commands ---
74 \definecolor{giaBlue}{RGB}{14,32,80}
75 \definecolor{giaYellow}{RGB}{255,230,0}
76 \definecolor{giaLightYellow}{RGB}{255,242,204}
77 \definecolor{giaGray}{RGB}{74,74,74}
78
79 \newcommand{\GI}{GI}
80 \newcommand{\gi}{Gesellschaft f\"ur Informatik e.\,V.}
81 % --- end of gia-handout.cls extract ---
82
83 % --- enumitem disabled (pending tagpdf compatibility) ---
84 % \usepackage{enumitem}
85 % \begin{description}[style=nextline, leftmargin=1em]
86 % \item[]
87 % \end{description}
88 % --- end of enumitem disabled ---
89
90 \usepackage{multicol}
91
92 \usepackage{tikz}
93 \usetikzlibrary{calc, positioning}
94
95 \usepackage{tcolorbox}
96 \tcbuselibrary{breakable, skins}
97
98 \usepackage{listings}
99 \lstset{
100 basicstyle=\ttfamily,
101 columns=fullflexible,
102 language=[LaTeX]TeX,
103 escapechar=*,
104 commentstyle=\color{green!50!black}\bfseries
105 }
106
107 \usepackage{hyperref}
108
109 \hypersetup{
110 % pdftitle={The gia-handout package, v0.99a},
111 % pdfsubject={Documentation of the gia-handout package},
112 pdftitle={Das gia-handout-Paket, v0.99a},
113 pdfsubject={Dokumentation des Pakets gia-handout},
114 pdfkeywords={latex, gi, gia-handout},
115 pdfauthor={Andr\'e Hilbig, Frederick Heyder}
116 }
117
118 \usepackage{url}
119
120 \newcommand{\mypdflatex}{\texttt{pdflatex}}
121 \newcommand{\mylualatex}{\texttt{lualatex}}
122 \newcommand\pkg[1]{\texttt{#1}}
123 \newcommand\myopt[2]{%
124 \textcolor{giaYellow!75!giaGray}{\texttt{#1}}%
125 \if\relax\detokenize{#2}\relax\else
126 \textnormal{ = #2}
127 \fi
128 }
129 \newcommand\mycmd[3]{%
130 \textcolor{giaYellow!75!giaGray}{\texttt{\textbackslash#1}}%
131 \if\relax\detokenize{#2}\relax\else
132 \textnormal{\texttt{\{}#2\texttt{\}}}%
133 \fi
134 \if\relax\detokenize{#3}\relax\else
135 \textnormal{\texttt{[}#3\texttt{]}}%
136 \fi
137 }
138 \newcommand\myenv[3]{%
139 \textcolor{giaYellow!75!giaGray}{\texttt{\textbackslash{begin}\{#1\}}}%
140 \if\relax\detokenize{#2}\relax\else
141 \textnormal{\texttt{\{}#2\texttt{\}}}%
142 \fi
143 \if\relax\detokenize{#3}\relax\else
144 \textnormal{\texttt{[}#3\texttt{]}}%
145 \fi
146 }
147
148 \author{Andr\'e \textsc{Hilbig} \qquad Frederick \textsc{Heyder}}
149 \title{\pkg{gia-handout}}
150 \date{20.~März~2026}
151
152 % --- gia-handout.cls extract: giacolorbox environment ---
153 \newlength{\giacolorboxskip}
154 \setlength{\giacolorboxskip}{4mm}
155 \addtolength{\giacolorboxskip}{3pt}
156 \NewDocumentEnvironment{giacolorbox}{o}
157 {
158 \begin{tcolorbox}[%
159 colback=white,
160 colframe=giaBlue!0!giaYellow,
161 sharp corners=all,
162 title=#1,
163 fonttitle=\color{black},
164 enhanced jigsaw,
165 grow sidewards by=2mm,
166 borderline={4mm}{-4mm}{giaGray!5!white},
167 borderline={0.5pt}{0pt}{giaYellow},
168 before skip=\giacolorboxskip,
169 after skip=\giacolorboxskip,
170 \IfNoValueT{#1}{notitle}
171 ]
172 }{
173 \end{tcolorbox}
174 }
175 % --- end of gia-handout.cls extract ---
176
177 \begin{document}
178
179 \begin{centering}
180
181 \vspace*{0.03\textheight}
182
183 {\Large\textsc{Klassendokumentation}}\par
184 \vspace{1.5\baselineskip}
185
186 {\huge\bfseries\makeatletter\@title\makeatother}\par
187 \vspace{1\baselineskip}
188
189 {\Large\LaTeX-Klasse für Veröffentlichungen der \GI}\par
190 \vspace{1.2\baselineskip}
191
192 {\large Version~0.99a -- 4.~Mai~2026}\par
193 \vspace{2\baselineskip}
194
195 {\large\makeatletter\@author\makeatother}\par
196 \vspace{1.5\baselineskip}
197
198 {\normalsize\href{mailto:[email protected]}{\nolinkurl{[email protected]}}}\par
199 \vspace{0.67\baselineskip}
200
201 {\normalsize\url{https://git.uni-wuppertal.de/ddi/material/gia-handout}}
202
203 \end{centering}
204
205 \vfill
206
207 \begin{abstract}
208 Die Klasse bündelt die Bemühungen des FA~IBS\footnote{Fachausschusses \enquote{Informatische Bildung in Schulen} der \GI}, der FG~DDI\footnote{Fachgruppe \enquote{Didaktik der Informatik} der \GI} und insbesondere von Andr\'e Hilbig, Veröffentlichungen der \GI\ im selben Stil wie die Bildungsstandards zu vereinheitlichen.
209 Hierbei werden spezifische Designvorgaben und Layouts berücksichtigt, um den Anforderungen des Corporate Design der \GI\ zu entsprechen.
210 \end{abstract}
211
212 \vfill
213
214 \begin{multicols}{2}
215 \tableofcontents
216 \end{multicols}
217
218 \clearpage
219
220 \section{Lizenz und Anforderungen}
221 \subsection{Lizenz}
222 Diese Klasse darf nach den Bedingungen der LaTeX Project Public Lizenz, entweder Version 1.3 oder (nach Ihrer Wahl) jede spätere Version, verteilt und/oder verändert werden.
223 Die neueste Version dieser Lizenz findet sich unter \url{https://www.latex-project.org/lppl/}.
224 \subsection{Anforderungen}
225 \subsubsection{Packages}
226 Die Klasse \pkg{gia-handout} verwendet die folgenden Pakete, wobei derzeit nicht alle vollständig mit \pkg{tagpdf} kompatibel sind.\footnote{Vgl.~\url{https://latex3.github.io/tagging-project/tagging-status/}}
227 \begin{table}[!h]
228 \centering
229 \begin{tabular}{ll}
230 \hline
231 \textbf{Package} & \textbf{Kompatibilität mit \pkg{tagpdf}}\\
232 \hline
233 iftex & kompatibel\\
234 fontenc & kompatibel\\
235 fontspec & kompatibel\\
236 babel & nicht geprüft\\
237 csquotes & teilweise kompatibel\\
238 microtype & kompatibel\\
239 setspace & kompatibel\\
240 geometry & kompatibel\\
241 scrlayer-scrpage & nicht geprüft\\
242 xcolor & kompatibel\\
243 tikz & teilweise kompatibel\\
244 pgfkeys & kompatibel\\
245 pgfopts & kompatibel\\
246 tcolorbox & teilweise kompatibel\\
247 xparse & kompatibel\\
248 hyperref & teilweise kompatibel\\
249 bookmark & kompatibel\\
250 qrcode & derzeit inkompatibel\\
251 FiraSans & kompatibel\\
252 FiraMono & kompatibel\\
253 \hline
254 \end{tabular}
255 \end{table}
256 \subsubsection{Libraries}
257 Zusätzlich werden die nachstehenden Libraries benötigt.
258 \begin{multicols}{2}
259 \paragraph{\pkg{tikz}-Libraries}\hfill%
260 \begin{itemize}
261 \item \pkg{calc}
262 \item \pkg{positioning}
263 \end{itemize}
264 \columnbreak
265 \paragraph{\pkg{tcolorbox}-Libraries}\hfill%
266 \begin{itemize}
267 \item \pkg{breakable}
268 \item \pkg{skins}
269 \end{itemize}
270 \end{multicols}
271
272 \addtocontents{toc}{\protect\setcounter{tocdepth}{1}}
273
274 \section{Minimalbeispiel}
275 Das folgende Minimalbeispiel veranschaulicht die grundlegende Verwendung, einschließlich der Definition der Autoren und des koordinierenden Autors.
276 \begin{lstlisting}
277 \documentclass[autorenListe,koordination]{gia-handout}
278
279 \GIAsetzeautorenListe{%
280 \mbox{Max Mustermann (Berlin)}
281 *\dots*
282 }
283 \GIAsetzekoordination{%
284 Max Mustermann
285 }
286
287 \begin{document}
288 *\dots*
289 \end{document}
290 \end{lstlisting}
291
292 \section{Klassenoptionen}
293 Folgende Klassenoptionen stellt die Klasse \pkg{gia-handout} bereit:
294 \begin{description}
295 \item[\myopt{autorenListe}{}] \hypertarget{opt:autorenListe}{}\phantom{}\hfill{Default: \enquote{keine Autoren}}\newline
296 Ermöglicht, eine Autorenliste für das Dokument zu setzen. Die Zuweisung erfolgt über \hyperlink{cmd:GIAsetzeautorenListe}{\mycmd{GIAsetzeautorenListe}{}{}}, die Ausgabe über \hyperlink{cmd:GIAautorenListe}{\mycmd{GIAautorenListe}{}{}}.
297 \item[\myopt{koordination}{}] \hypertarget{opt:koordination}{}\phantom{}\hfill{Default: \enquote{keine Angabe}}\newline
298 Ermöglicht, den koordinierenden Autor zu setzen. Die Zuweisung erfolgt über \hyperlink{cmd:GIAsetzekoordination}{\mycmd{GIAsetzekoordination}{}{}}, die Ausgabe über \hyperlink{cmd:GIAkoordination}{\mycmd{GIAkoordination}{}{}}.
299 \item[\myopt{frontcover}{$\langle$filename$\rangle$}] \hypertarget{opt:frontcover}{}\phantom{}\newline optional einzubindende Vorderseite.
300 \item[\myopt{backcover}{$\langle$filename$\rangle$}] \hypertarget{opt:backcover}{}\phantom{}\newline optional einzubindende Rückseite.
301 \end{description}
302 Werden Vorder- und/oder Rückseite mit den entsprechenden Klassenoptionen nicht explizit eingebunden, werden Standardseiten gesetzt (s.~Abb.~\ref{fig:frontcover}~und~\ref{fig:backcover}, S.~\pageref{fig:frontcover}).
303 \begin{figure}[!h]
304 \centering
305 \begin{minipage}{.45\textwidth}
306 \centering
307 \fbox{\includegraphics[width=\textwidth]{gia-default-frontcover.pdf}}
308 \caption{Default \protect\hyperlink{opt:frontcover}{\texttt{frontcover}}}
309 \label{fig:frontcover}
310 \end{minipage}
311 \hfill
312 \begin{minipage}{.45\textwidth}
313 \centering
314 \fbox{\includegraphics[width=\textwidth]{gia-default-backcover.pdf}}
315 \caption{Default \protect\hyperlink{opt:backcover}{\texttt{backcover}}}
316 \label{fig:backcover}
317 \end{minipage}
318 \end{figure}
319
320 \section{PDF-Tagging}
321 Die Klasse unterstützt \pkg{tagpdf} für barrierefreies PDF-Tagging mit \mypdflatex\ und \mylualatex. Weitere Hinweise finden sich in der \pkg{tagpdf}-Dokumentation\footfullcite{tagpdf2026}.
322 \begin{minipage}{\linewidth} % prevent page break
323 Zur Aktivierung ist \texttt{\textbackslash DocumentMetadata} vor \texttt{\textbackslash documentclass} einzufügen:
324 \begin{lstlisting}
325 \DocumentMetadata{
326 tagging-setup = {activate/all, tabsorder = structure},
327 pdfversion = 2.0,
328 pdfstandard = a-4f,
329 pdfstandard = ua-2,
330 lang = de
331 }
332 \end{lstlisting}
333 \end{minipage}
334 \subsection{Workaround für \pkg{qrcode}}
335 Da das Paket \pkg{qrcode} derzeit nicht mit \pkg{tagpdf} kompatibel ist, implementiert die Klasse \pkg{gia-handout} einen Workaround von Ulrike~Fischer\footfullcite{fischer2024}.
336
337 \section{Corporate Design}
338 Gemäß dem Corporate Design der \GI\ werden Fira~Sans als serifenlose Standard\-schriftart sowie Fira~Mono als Festbreitenschrift geladen.\\
339
340 \noindent Zudem werden die folgenden vier Farben definiert:
341 \begin{multicols}{2}
342 \begin{itemize}
343 \item[\fcolorbox{black}{giaBlue}{\phantom{\rule{1em}{.67em}}}] \texttt{giaBlue}
344 \item[\fcolorbox{black}{giaYellow}{\phantom{\rule{1em}{.67em}}}] \texttt{giaYellow}
345 \item[\fcolorbox{black}{giaLightYellow}{\phantom{\rule{1em}{.67em}}}] \texttt{giaLightYellow}
346 \item[\fcolorbox{black}{giaGray}{\phantom{\rule{1em}{.67em}}}] \texttt{giaGray}
347 \end{itemize}
348 \end{multicols}
349
350 \section{Verfügbare Befehle}
351 Die Klasse \pkg{gia-handout} definiert die folgenden Befehle:
352 \begin{description}
353 \item[\mycmd{hervor}{$\langle$arg$\rangle$}{}]
354 \phantom{}\newline setzt den Text fett und in der Farbe \texttt{giaBlue}.
355 \item[\mycmd{GI}{}{}]
356 \phantom{}\newline ein Wrapper für \verb|GI|
357 \item[\mycmd{gi}{}{}]
358 \phantom{}\newline ein Wrapper für \verb|Gesellschaft f\"ur Informatik e.\,V.|
359 \item[\mycmd{GIAsetzeautorenListe}{$\langle$arg$\rangle$}{}]
360 \hypertarget{cmd:GIAsetzeautorenListe}{}\phantom{}\newline definiert die zu setzenden Autoren.
361 \item[\mycmd{GIAautorenListe}{}{}]
362 \hypertarget{cmd:GIAautorenListe}{}\phantom{}\newline setzt die Autoren, sofern \hyperlink{opt:autorenListe}{\myopt{autorenListe}{}} aktiviert ist.
363 \item[\mycmd{GIAsetzekoordination}{$\langle$arg$\rangle$}{}]
364 \hypertarget{cmd:GIAsetzekoordination}{}\phantom{}\newline definiert die zu setzende Koordination.
365 \item[\mycmd{GIAkoordination}{}{}]
366 \hypertarget{cmd:GIAkoordination}{}\phantom{}\newline setzt die Koordination, sofern \hyperlink{opt:koordination}{\myopt{koordination}{}} aktiviert ist.
367 \item[\mycmd{GIAmitwirkende}{}{}]
368 \phantom{}\newline setzt die Mitwirkenden.
369 \end{description}
370
371 \section{Verfügbare Umgebungen}
372 Die Klasse \pkg{gia-handout} definiert die folgenden Umgebungen:
373 \subsection{Mehrspaltiger Text}
374 \begin{description}
375 \item[\myenv{zweispaltig}{}{}]
376 \phantom{}\newline setzt den Text zweispaltig.
377 \end{description}
378 \subsection{\texttt{giacolorbox}}
379 \begin{description}
380 \item[\myenv{giacolorbox}{}{$\langle$title$\rangle$}]
381 \phantom{}\newline setzt eine benutzerdefinierte \texttt{tcolorbox}, die als \texttt{Div} getaggt wird.
382 \end{description}
383 \begin{minipage}{.45\textwidth}
384 \begin{lstlisting}
385 \begin{giacolorbox}
386 body
387 \end{giacolorbox}
388 \end{lstlisting}
389 \end{minipage}
390 \hfill
391 \begin{minipage}{.45\textwidth}
392 \centering
393 \begin{giacolorbox}
394 body
395 \end{giacolorbox}
396 \end{minipage}
397 \begin{minipage}{.45\textwidth}
398 \begin{lstlisting}
399 \begin{giacolorbox}[title]
400 body
401 \end{giacolorbox}
402 \end{lstlisting}
403 \end{minipage}
404 \hfill
405 \begin{minipage}{.45\textwidth}
406 \centering
407 \begin{giacolorbox}[title]
408 body
409 \end{giacolorbox}
410 \end{minipage}
411
412 \section{Weiterentwicklung}
413 \begin{itemize}
414 \item Barrierefreie Dokumentation
415 \item Generalisierte Lizenzvorlagen
416 \item Mehrseitiger Einband mit \pkg{pdfpages}
417 \item Prüfung einer mehrsprachigen Ausrichtung der Klasse
418 \end{itemize}
419
420 \section{Changelog}
421 \begin{description}
422 \item[Version~0.99 -- 20.~März~2026]
423 \phantom{}\newline Pre-Release: Grundlegende Klassendefinition.
424 \item[Version~0.99a -- 4.~Mai~2026]
425 \phantom{}\newline Rename: Umbenennung von \pkg{gi-handout} zu \pkg{gia-handout}.
426 \item[Version~1.00 -- tba]
427 \phantom{}\newline \textit{Initial Release: Barrierefreie Dokumentation.}
428 \end{description}
429
430 \end{document}
431
432 \endinput