Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ReadmeTXT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fachschaften der Fakultät für Informatik
Open Source
ReadmeTXT
Commits
67554d7e
Commit
67554d7e
authored
1 year ago
by
Gregor Bellach
Browse files
Options
Downloads
Patches
Plain Diff
move styling to preamble.tex
parent
15ee5e8e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utility.tex
+14
-9
14 additions, 9 deletions
utility.tex
with
14 additions
and
9 deletions
utility.tex
+
14
−
9
View file @
67554d7e
% What belongs here?
%% Command definitions and redefinitions.
% Date calculation
\newcommand
{
\storeDate
}
[2]
{
...
...
@@ -10,24 +13,20 @@
\DTMsaveddateoffsettojulianday
{
#1
}{
#2
}{
\temp
}
\DTMsavejulianday
{
#3
}{
\number\temp
}
}
% Time format
\DTMnewtimestyle
{
hhmm
}{
%
% \DTMdisplaytime{<hh>}{<mm>}{<ss>}
\renewcommand
{
\DTMdisplaytime
}
[3]
{
\DTMtwodigits
{
##1
}
:
\DTMtwodigits
{
##2
}
Uhr
}
}
\DTMsettimestyle
{
hhmm
}
% sets style
\newcommand
{
\Time
}
[1]
{
\DTMusetime
{
#1
}}
% Shorthand for \DTMusetime
% Location Format
\newcommand
{
\loc
}
[1]
{
#1
\
%inserts a blank after each location
}
% Make use of the included custom font.
\newcommand
{
\customfont
}
[1]
{{
\usefont
{
T1
}{
custom
}{
m
}{
n
}
#1
}}
% Section labeling
\titleformat
{
\section
}
[display]
{
\Huge
}{
\thesection
}{
2em
}
{
...
...
@@ -39,6 +38,7 @@
\newcommand
{
\sectionSubtitle
}
[1]
{
\vspace
{
-1.4cm
}
\hspace
{
0.56cm
}
\large
{
#1
}
\normalsize\vspace
{
1.4cm
}}
\newcommand
{
\mysection
}
[2]
{
\section
{
#1
}
\sectionSubtitle
{
\
#2
}}
% TODO: check whether section labelling works correctly. %%\label{sec:#1}}
\WithSuffix\newcommand\mysection*
[2]
{
\section*
{
#1
}
\sectionSubtitle
{
\
#2
}}
% TODO: check whether section labelling works correctly. %%\label{sec:#1}}
%% Subsections
\newcommand
{
\mysubsection
}
[2]
{
\subsection
{
\underline
{
#1
}}
\vspace*
{
-.14cm
}
...
...
@@ -52,6 +52,7 @@
\vspace
{
\baselineskip
}
\\
}
% For the "Schedule" section
%% Use like \schedItem{Time}{Place}{What}{} if for everyone
%% Use like \schedItem{Time}{Place}{What}{AI, Info} if for some
...
...
@@ -70,7 +71,7 @@
}
\end{minipage}
\\
}
%% This is a pro
ve
of concept for the use with makros and DTM times. The above one might be easier
%% This is a pro
of
of concept for the use with makros and DTM times. The above one might be easier
\WithSuffix\newcommand\schedItem*
[4]
{
\hspace*
{
.45cm
}
\textbullet
\hspace
{
.15cm
}
\begin{minipage}
[t]
{
.8
\columnwidth
}
...
...
@@ -93,6 +94,7 @@
\end{minipage}
\\
}
% For the "Tipps & Tricks" section.
\newcommand
{
\tip
}{
\parpic
(1cm,1cm)
{
\Huge
\textbf
{
\ifnum\value
{
tip
}
<10 0
\fi\thetip
}}
\stepcounter
{
tip
}
\noindent
}
...
...
@@ -100,10 +102,12 @@
\newcounter
{
tip
}
\setcounter
{
tip
}{
0
}
% For the "Glossary" section.
\newcommand
{
\illuminate
}
[1]
{
\parpic
(0cm,0.6cm)
{
\Large
\textbf
{
#1
}}
\noindent
}
% Some German abbreviations
\newcommand
{
\zb
}{
z.
\,
B.
\
}
\newcommand
{
\Zb
}{
Z.
\,
B.
\
}
...
...
@@ -112,5 +116,6 @@
\renewcommand
{
\dh
}{
d.
\,
h.
\
}
% The actual \dh just prints some stupid symbol. Fuck that symbol.
\newcommand
{
\Dh
}{
D.
\,
h.
\
}
% Create empty pages
\newcommand
{
\emptypage
}{
\newpage\null\thispagestyle
{
empty
}
\clearpage
}
\ No newline at end of file
\newcommand
{
\emptypage
}{
\newpage\null\thispagestyle
{
empty
}
\clearpage
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment