3
0
Fork 0
mirror of https://github.com/fsr/nopanic synced 2024-11-15 00:43:12 +01:00

Merge PR #145 and resolve conflicts to 2022 version.

This commit is contained in:
Jakob Krebs 2022-09-25 12:26:31 +02:00
commit aef03957e7
No known key found for this signature in database
GPG key ID: C6C125DA9A8FABAA
13 changed files with 207 additions and 109 deletions

4
.gitignore vendored
View file

@ -2,6 +2,7 @@
Spieleabend.psd
manual.pdf
manual_compressed.pdf
zeitplan.pdf
faltblatt.pdf
PoSo/
*.aux
@ -10,6 +11,9 @@ PoSo/
*.toc
manual.fdb_latexmk
manual.fls
zeitplan.fdb_latexmk
zeitplan.fls
texput.fls
alt
manual.synctex.gz
.DS_Store

View file

@ -1,2 +1,46 @@
$pdf_mode = 4; # LuaLaTeX
@default_files = ('manual.tex');
@default_files = ('timetable/zeitplan.tex', 'manual.tex');
# descriptions stolen from https://collaborating.tuhh.de/alex/latex-git-cookbook/-/blob/4174942b6674588d016189c708327dccbaac5b8d/.latexmkrc
# ======================================================================================
# PDF Generation/Building/Compilation
# ======================================================================================
# PDF-generating modes are:
# 1: pdflatex, as specified by $pdflatex variable (still largely in use)
# 2: postscript conversion, as specified by the $ps2pdf variable (useless)
# 3: dvi conversion, as specified by the $dvipdf variable (useless)
# 4: lualatex, as specified by the $lualatex variable (best)
# 5: xelatex, as specified by the $xelatex variable (second best)
$pdf_mode = 4;
# Treat undefined references and citations as well as multiply defined references as
# ERRORS instead of WARNINGS.
# This is only checked in the *last* run, since naturally, there are undefined references
# in initial runs.
# This setting is potentially annoying when debugging/editing, but highly desirable
# in the CI pipeline, where such a warning should result in a failed pipeline, since the
# final document is incomplete/corrupted.
#
# However, I could not eradicate all warnings, so that `latexmk` currently fails with
# this option enabled.
# Specifically, `microtype` fails together with `fontawesome`/`fontawesome5`, see:
# https://tex.stackexchange.com/a/547514/120853
# The fix in that answer did not help.
# Setting `verbose=silent` to mute `microtype` warnings did not work.
# Switching between `fontawesome` and `fontawesome5` did not help.
$warnings_as_errors = 0;
# Show used CPU time. Looks like: https://tex.stackexchange.com/a/312224/120853
$show_time = 1;
# Default is 5; we seem to need more owed to the complexity of the document.
# Actual documents probably don't need this many since they won't use all features,
# plus won't be compiling from cold each time.
$max_repeat=5;
# Whether to change working directory to the directory specified for the main source
# file before processing it. The default behavior is not to do this, which is the same
# as the behavior of *latex programs. This variable is set by the -cd and -cd- options
# on latexmk's command line.
$do_cd = 1;

21
colors.tex Normal file
View file

@ -0,0 +1,21 @@
\ifdefined\colormodel\relax\else%
\def\colormodel{rgb}%
\fi
\selectcolormodel{\colormodel}
% \definecolor{ese_bg_color}{rgb}{0.0, 0.20, 0.376} % the definitive color -- #003360 (2015?)
% \definecolor{ese_bg_color}{rgb}{0.0, 0.263, 0.486} % the definitive color -- #00437C (2016?)
% \definecolor{ese_bg_color}{rgb}{0.051, 0.373, 0.596} % the definitive color -- #0D5F98 (2017)
% \definecolor{ese_bg_color}{rgb}{0.796, 0.376, 0.251} % the definitive color -- #CB6040 (2018)
% \definecolor{ese_bg_color}{rgb}{0.0, 0.47, 0.3} % wip-ish color -- #01794C (2019)
%\definecolor{ese_bg_color}{RGB}{5,109,133} % final_really_final -- #056d85 (2020)
% \definecolor{ese_bg_color}{RGB}{5,109,133} % final_really_final -- #056d85 (2020)
% \definecolor{ese_bg_color}{RGB}{155,30,70} % complement -- #9B1E46 (2021)
\definecolor{ese_bg_color}{RGB}{149, 128, 255} % violent -- #9580FF (2022)
\definecolor{ese_fg_color}{rgb/cmyk}{1,1,1/0,0,0,0}
\definecolor{fancypageref_color}{RGB/cmyk}{155,30,70/0,0.9,0.6,0.1} %
\definecolor{ifsrgray}{rgb/cmyk}{0.6,0.6,0.6/0,0,0,0.4} % 153, 153, 153

View file

@ -1,6 +1,14 @@
\newpage
\cleardoubleevenemptypage
%make sure we are on a page divisible by 4 for the brochure to work out
\ifcase\numexpr \modulo{\value{page}}{4} \relax
\or%
\or%
\thispagestyle{empty}\hbox{}\cleardoubleevenemptypage\or%
\relax%
\fi%
\thispagestyle{empty} %keine Seitenzahl
\color{white}
\pagecolor{ese_bg_color}
\begin{minipage}[t][\textheight][b]{.65\textwidth}
\footnotesize

41
macros.tex Normal file
View file

@ -0,0 +1,41 @@
\newcommand{\eseyear}{2022}
\newcommand{\ascii}{{\texttt{ascii}}}
\newcommand{\bafog}{BAföG}
\newcounter{linkcounter}
\newcommand\linklist{}
\makeatletter
\def\@breaklinklistat{21}
\def\@breaklinklistandat{56}
\newcommand{\link}[1]{%
\edef\tmptoken{\detokenize{#1}}%
\@ifundefined{nopanic@link@\tmptoken}{%
\edef\@linknumber{\arabic{linkcounter}}%
\protected@edef\@tmpkey{{\fontsize{9pt}{0}\selectfont\keys{\@linknumber}}}%
\expandafter\global\expandafter\edef\csname nopanic@link@\tmptoken\endcsname{\arabic{linkcounter}}%
%
% Standard print output:
\expandafter\g@addto@macro\expandafter\linklist\expandafter{\@tmpkey & \url{#1}}%
\ifx\@breaklinklistat\@linknumber
\g@addto@macro\linklist{\\}%
\else
\ifx\@breaklinklistandat\@linknumber
\g@addto@macro\linklist{\\}%
\else
\g@addto@macro\linklist{\\*}%
\fi
\fi
%
% Link system output:
\immediate\write\linklistfile{RewriteRule "^\@linknumber$" "#1" [NE,R,L]}%
%
\stepcounter{linkcounter}%
}{%
\protected@edef\@tmpkey{{\fontsize{9pt}{0}\selectfont\keys{\csname nopanic@link@\tmptoken\endcsname}}}%
}%
\href{#1}{\@tmpkey}%
}
\makeatother
\def\modulo#1#2{\ifnum#1=0 0\else(#1-#2*((2*#1-#2)/(2*#2)))\fi}

View file

@ -17,44 +17,18 @@
\input{preamble.tex}
\input{macros.tex}
\hypersetup{
pdfauthor={FSR Informatik der TU Dresden},
pdftitle={The Manual - ESE \eseyear},
breaklinks=true, colorlinks=false, pdfborder={0 0 0},
pdfencoding=unicode
}
% we need this dummy counter to make a label at the spieleabendplakat
\newcounter{dummy}
\newcounter{linkcounter}
\newcommand\linklist{}
\makeatletter
\def\@breaklinklistat{21}
\def\@breaklinklistandat{56}
\newcommand{\link}[1]{%
\edef\tmptoken{\detokenize{#1}}%
\@ifundefined{nopanic@link@\tmptoken}{%
\edef\@linknumber{\arabic{linkcounter}}%
\protected@edef\@tmpkey{{\fontsize{9pt}{0}\selectfont\keys{\@linknumber}}}%
\expandafter\global\expandafter\edef\csname nopanic@link@\tmptoken\endcsname{\arabic{linkcounter}}%
%
% Standard print output:
\expandafter\g@addto@macro\expandafter\linklist\expandafter{\@tmpkey & \url{#1}}%
\ifx\@breaklinklistat\@linknumber
\g@addto@macro\linklist{\\}%
\else
\ifx\@breaklinklistandat\@linknumber
\g@addto@macro\linklist{\\}%
\else
\g@addto@macro\linklist{\\*}%
\fi
\fi
%
% Link system output:
\immediate\write\linklistfile{RewriteRule "^\@linknumber$" "#1"}%
%
\stepcounter{linkcounter}%
}{%
\protected@edef\@tmpkey{{\fontsize{9pt}{0}\selectfont\keys{\csname nopanic@link@\tmptoken\endcsname}}}%
}%
\href{#1}{\@tmpkey}%
}
\makeatother
\sloppy % forces "ugly" line breaks
\pagestyle{plain}
@ -70,16 +44,18 @@
\vfill
}}}
\thispagestyle{empty} %keine Seitenzahl
\pagecolor{ese_bg_color}
\AddToShipoutPictureBG*{\CoverPic}
\mbox{} %brauche leeren Content für ne newpage
%\newpage
\newpage
\pagecolor{white}
% Linklist output
% All this stuff needs is immediate to avoid confusion between links on the same page
\immediate\newwrite\linklistfile
\immediate\openout\linklistfile=kopimi.htaccess\relax
\immediate\write\linklistfile{RewriteEngine On}
\immediate\write\linklistfile{RewriteBase /2021}
\immediate\write\linklistfile{RewriteBase /\eseyear}
% \include{texte/zeitplan}
\include{texte/inhaltsverzeichnis}

View file

@ -2,6 +2,7 @@
\usepackage[english, ngerman]{babel}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{eso-pic}
@ -25,31 +26,11 @@
\usepackage{fontspec}
\usepackage{microtype}
\usepackage[autostyle=true]{csquotes}
\MakeOuterQuote{"}
\PassOptionsToPackage{hyphens}{url}
\usepackage[colorlinks=false, pdfborder={0 0 0}]{hyperref}
\hypersetup{
pdfauthor={FSR Informatik der TU Dresden},
pdftitle={The Manual - ESE 2021},
breaklinks=true, colorlinks=false, pdfborder={0 0 0},
pdfencoding=unicode
}
% \definecolor{ese_bg_color}{rgb}{0.0, 0.20, 0.376} % the definitive color -- #003360 (2015?)
% \definecolor{ese_bg_color}{rgb}{0.0, 0.263, 0.486} % the definitive color -- #00437C (2016?)
% \definecolor{ese_bg_color}{rgb}{0.051, 0.373, 0.596} % the definitive color -- #0D5F98 (2017)
% \definecolor{ese_bg_color}{rgb}{0.796, 0.376, 0.251} % the definitive color -- #CB6040 (2018)
% \definecolor{ese_bg_color}{rgb}{0.0, 0.47, 0.3} % wip-ish color -- #01794C (2019)
% \definecolor{ese_bg_color}{RGB}{5,109,133} % final_really_final -- #056d85 (2020)
% \definecolor{ese_bg_color}{RGB}{155,30,70} % complement -- #9B1E46 (2021)
\definecolor{ese_bg_color}{RGB}{149, 128, 255} % violent -- #9580FF (2022)
\definecolor{ese_fg_color}{rgb}{1, 1, 1}
\definecolor{fancypageref_color}{RGB}{155,30,70} %
\definecolor{ifsrgray}{rgb}{0.6, 0.6, 0.6} % 153, 153, 153
\input{colors.tex}
% is toggled twice for moduluebersicht.tex
\changemenucolor{gray}{bg}{named}{ese_fg_color} %background of the menukeys
\changemenucolor{gray}{br}{named}{ese_bg_color} %border of the menukeys
@ -71,5 +52,3 @@
\addtokomafont{disposition}{\normalfont\fontspec{Open Sans}}
\defaultfontfeatures{Ligatures=TeX} % enable ligatures (e.g. --) for new fonts
\newcommand{\ascii}{{\texttt{ascii}}}

View file

@ -143,7 +143,7 @@ dich in die Prüfungen der Fächer ein, die du besucht hast. Beachte, dass die
erste Prüfung in Mathe bereits Anfang Dezember stattfindet. Viel Erfolg!
\checkbox{Rückmeldung zum Sommersemester}
Ab Mitte Januar 2022 kannst du den Semesterbeitrag für das nächste Semester
Ab Mitte Januar \the\numexpr \eseyear + 1 \relax\ kannst du den Semesterbeitrag für das nächste Semester
überweisen. Den genauen Betrag und Termine findest du online unter~\link{https://tu-dresden.de/imma/rueckmeldung}. Kümmere dich rechtzeitig darum,
sonst wirst du automatisch exmatrikuliert!

View file

@ -1,6 +1,6 @@
\addchap{Links}
Alle Links sind auch direkt als \url{https://ese.ifsr.de/2022/<Zahl>} aufrufbar.
Alle Links sind auch direkt als \url{https://ese.ifsr.de/\eseyear/<Zahl>} aufrufbar.
{%
\small

View file

@ -25,6 +25,9 @@ Genieß diese Zeit und mach dich bereit für die noch spannendere, die dich jetz
\begin{awesomeblock}[ese_bg_color]{2pt}{\faLightbulb[regular]}{ese_bg_color}
\begin{minipage}[t]{.82\textwidth}
\small PS\@: Links schauen in diesem Heft so aus: \link{https://html5zombo.com}. Ganz hinten auf einer der letzten Seiten kannst du dann die Adresse nachsehen. Ebenfalls kannst du auch direkt unter \url{ese.ifsr.de/2022/<Zahl>} auf die verlinkte Seite weitergeleitet werden.
\small PS\@:
Links schauen in diesem Heft so aus: \link{https://html5zombo.com}.
Ganz hinten auf einer der letzten Seiten kannst du dann die Adresse nachsehen.
Ebenfalls kannst du auch direkt unter \url{ese.ifsr.de/\eseyear/<Zahl>} auf die verlinkte Seite weitergeleitet werden.
\end{minipage}
\end{awesomeblock}

View file

@ -22,7 +22,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{timetable}
\RequirePackage{ifthen, calc, color}
\RequirePackage{ifthen, calc, xcolor}
% swtich case helper
\newcommand\addcase[3]{\expandafter\def\csname\string#1@case@#2\endcsname{#3}}
@ -35,11 +35,11 @@
% Preset the colors
\definecolor{ttframecol1}{rgb}{0.95,0.95,0.95}
\definecolor{ttframecol2}{rgb}{0.9,0.9,0.9}
\definecolor{ttfontcolor}{rgb}{0.25,0.25,0.25}
\definecolor{ttlinecol1}{rgb}{0.0,0.0,0.0}
\definecolor{ttlinecol2}{rgb}{0.5,0.0,0.0}
\definecolor{ttframecol1}{rgb/cmyk}{0.95,0.95,0.95/0,0,0,0.05}
\definecolor{ttframecol2}{rgb/cmyk}{0.9,0.9,0.9/0,0,0,0.1}
\definecolor{ttfontcolor}{rgb/cmyk}{0.25,0.25,0.25/0,0,0,0.75}
\definecolor{ttlinecol1}{rgb/cmyk}{0.0,0.0,0.0/0,0,0,1}
\definecolor{ttlinecol2}{rgb/cmyk}{0.5,0.0,0.0/0,1,1,0.5}
% Simple for loop construct as proposed by N. Setzer
\newcommand{\@ttforloop}[5][1]
@ -222,7 +222,7 @@
}
\addcase\dothis{1}{}
\addcase\dothis{7}{}
\addcase\dothis{2}{\addtolength{\@startposx}{\@colwdth}\addtolength{\@offset}{\@colwdth}}
\addcase\dothis{2}{\addtolength{\@startposx}{\@colwdth}}
\addcase\dothis{3}{
\addtolength{\@startposx}{\@colwidth-10pt}
% \addtolength{\@offset}{60pt}
@ -333,6 +333,12 @@
\ifthenelse{#9 = 7}{
\addtolength{\@newcolleft}{10pt}
}{}
\ifthenelse{#9 = 1 \OR #9 = 2}{
\addtolength{\@newcolwidth}{-\@colwidth*\real{0.5}}
\ifthenelse{#9 = 2}{
\addtolength{\@newcolleft}{+\@colwidth*\real{0.5}}
} {}
} {}
\ifthenelse{#9 = 3}{
\addtolength{\@newcolwidth}{-\@colwidth*\real{0.5}}
\addtolength{\@newcolwidth}{11pt}
@ -398,7 +404,7 @@
\put(\strip@pt\@newcolleft,\strip@pt\@newrowtop)
{\begin{minipage}[t]{1.0\@newcolwidth}%
\hspace*{\@offset}
\@ttfont\raggedright\color{@timetable#8text}{\@bottomstyle #6%
\@ttfont\raggedright\color{@timetable#8text}{\@bottomstyle #6%
\vphantom{A}}
\ifthenelse{\value{@printtimestamps} = 1}%
{{\@timestyle \@fmtTime{@endHour}{@endMinute}}}%
@ -554,6 +560,18 @@
\legend {\value{@daymarks}} 1 {#1}
}
\newcommand{\defineeventcolors}[5]
{
\definecolor{@timetable#1block}{#2}{#3}
\definecolor{@timetable#1text} {#4}{#5}
}
\newcommand{\leteventcolors}[3]
{
\colorlet{@timetable#1block}{#2}
\colorlet{@timetable#1text} {#3}
}
\newcommand{\defineevent}[7]
{
\definecolor{@timetable#1block}{rgb}{#2, #3, #4}

Binary file not shown.

View file

@ -2,6 +2,7 @@
\usepackage[default]{opensans}
\usepackage[margin=0.55cm,landscape]{geometry}
% \usepackage[height=25cm]{geometry}
\usepackage{xcolor}
\usepackage{timetable}
\usepackage{transparent}
\usepackage{amssymb}
@ -9,6 +10,8 @@
\usepackage{pifont}
\newcommand{\wontfix}{\rlap{$\square$}{\large\hspace{1pt}\xmark}}
\input{../colors.tex}
\begin{document}
\thispagestyle{empty}
% \begin{landscape}
@ -29,51 +32,52 @@
% Define event types
%background foreground
\defineevent{ba}{0.09}{0.45}{0.56}{1.0}{1.0}{1.0}% petrol
\defineevent{all}{0.584}{0.502}{1.0}{1.0}{1.0}{1.0}% lila
\defineevent{ma}{0.69}{0.11}{0.20}{1.0}{1.0}{1.0}% rot
\leteventcolors{ese}%
{ese_bg_color}
{ese_fg_color}
% Start the timetable
\begin{center}
\begin{timetable}
\hours{8}{15}{0}
\germandays{1}
\event 1 {1000}{1630}{Wanderung}{}{HBF}{}{all}{0}
\event 1 {1800}{2100}{Spieleabend}{}{APB}{}{all}{0}
\event 2 {0920}{1100}{Begrüßung}{}{}{1}{all}{0}
\event 2 {1130}{1300}{Tutorien}{}{APB/WIL/SCH}{1}{ba}{2}
\event 2 {1130}{1300}{Master\\How-to}{}{}{}{ma}{1}
\event 2 {1300}{1400}{gemeinsames Mensen}{}{}{}{all}{0}
\event 2 {1400}{1600}{Bunter Nachmittag}{}{}{}{all}{0}
\event 2 {1800}{1900}{Grillen mit Dewpoint}{}{Countdown}{}{all}{0}
\event 2 {1900}{2100}{Clubwanderung}{}{}{}{all}{0}
\event 1 {1000}{1630}{Wanderung}{}{HBF}{}{ese}{0}
\event 1 {1800}{2100}{Spieleabend}{}{APB}{}{ese}{0}
\event 3 {0830}{0900}{Frühstück}{}{}{}{all}{0}
\event 3 {0900}{1030}{Vortrag zum Studium}{}{}{}{ba}{0}
\event 3 {1030}{1300}{Einschreibung}{}{}{}{ba}{0}
\event 3 {1300}{1400}{Mittagessen}{}{}{}{all}{0}
\event 3 {1400}{1700}{Gemüseauflauf (Schnitzeljagd über den Campus)}{}{}{}{all}{0}
\event 3 {1800}{2100}{Filmabend}{}{KIK}{}{all}{0}
\event 2 {0920}{1100}{Begrüßung}{}{}{1}{ese}{0}
\event 2 {1130}{1300}{Tutorien}{}{APB/WIL/SCH}{1}{ese}{2}
\event 2 {1130}{1300}{Master\\How-to}{}{}{}{ese}{1}
\event 2 {1300}{1400}{gemeinsames Mensen}{}{}{}{ese}{0}
\event 2 {1400}{1600}{Bunter Nachmittag}{}{}{}{ese}{0}
\event 2 {1800}{1900}{Grillen mit Dewpoint}{}{Countdown}{}{ese}{0}
\event 2 {1900}{2100}{Clubwanderung}{}{}{}{ese}{0}
\event 3 {0830}{0900}{Frühstück}{}{}{}{ese}{0}
\event 3 {0900}{1030}{Vortrag zum Studium}{}{}{}{ese}{0}
\event 3 {1030}{1300}{Einschreibung}{}{}{}{ese}{0}
\event 3 {1300}{1400}{Mittagessen}{}{}{}{ese}{0}
\event 3 {1400}{1700}{Gemüseauflauf (Schnitzeljagd über den Campus)}{}{}{}{ese}{0}
\event 3 {1800}{2100}{Filmabend}{}{KIK}{}{ese}{0}
\event 4 {0900}{1100}{online\\Welcome\\session\\CMS}{}{}{}{ma}{1}
\event 4 {0900}{1100}{Profvrstllng}{}{}{}{ba}{2}
\event 4 {1100}{1300}{Vortrag Sprachkurse & Auslandsstudium}{}{}{}{ba}{0}
\event 4 {1300}{1400}{Mittagessen}{}{}{}{all}{0}
\event 4 {1400}{1530}{Kaffetrinken mit Nerds}{}{}{0}{all}{0}
\event 4 {1600}{1730}{Feierliche Imma}{}{}{}{all}{0}
\event 4 {1730}{1900}{Party}{}{HSZ Wiese}{}{all}{0}
\event 4 {2000}{2100}{Bowling}{}{}{}{all}{1}
\event 4 {2000}{2100}{Spieleabend}{}{}{}{all}{2}
\event 4 {0900}{1100}{online\\Welcome\\session\\CMS}{}{}{}{ese}{1}
\event 4 {0900}{1100}{Profvrstllng}{}{}{}{ese}{2}
\event 4 {1100}{1300}{Vortrag Sprachkurse \& Auslandsstudium}{}{}{}{ese}{0}
\event 4 {1300}{1400}{Mittagessen}{}{}{}{ese}{0}
\event 4 {1400}{1530}{Kaffetrinken mit Nerds}{}{}{0}{ese}{0}
\event 4 {1600}{1730}{Feierliche Imma}{}{}{}{ese}{0}
\event 4 {1730}{1900}{Party}{}{HSZ Wiese}{}{ese}{0}
\event 4 {2000}{2100}{Bowling}{}{}{}{ese}{1}
\event 4 {2000}{2100}{Spieleabend}{}{}{}{ese}{2}
\event 5 {0900}{1300}{Seminargruppentreffen & Vortrag studentisches Engagement}{}{}{}{ba}{0}
\event 5 {1300}{1400}{Mittagessen}{}{}{}{all}{0}
\event 5 {1400}{1700}{ESE Spiel}{}{}{}{ba}{0}
\event 5 {1800}{2100}{Neustadt\\ Clubtour}{}{Albertplatz}{}{all}{1}
\event 5 {1800}{2100}{PnP}{}{APB}{}{all}{2}
\event 5 {0900}{1300}{Seminargruppentreffen \& Vortrag studentisches Engagement}{}{}{}{ese}{0}
\event 5 {1300}{1400}{Mittagessen}{}{}{}{ese}{0}
\event 5 {1400}{1700}{ESE Spiel}{}{}{}{ese}{0}
\event 5 {1800}{2100}{Neustadt\\ Clubtour}{}{Albertplatz}{}{ese}{1}
\event 5 {1800}{2100}{PnP}{}{APB}{}{ese}{2}
\event 6 {0900}{1000}{Stadtführung}{}{siehe Website}{}{all}{0}
\event 6 {1700}{2100}{LAN Party}{}{siehe Website}{}{all}{0}
\event 6 {0900}{1000}{Stadtführung}{}{siehe Website}{}{ese}{0}
\event 6 {1700}{2100}{LAN Party}{}{siehe Website}{}{ese}{0}
\end{timetable}
\end{center}
% \end{landscape}