-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
bastelfreak.sty
104 lines (85 loc) · 2.49 KB
/
bastelfreak.sty
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
\ProvidesPackage{bastelfreak}
%\RequirePackage[pdftex]{hyperref}
\RequirePackage{metalogo}
\usepackage{mwe}% http://ctan.org/pkg/lipsum
\RequirePackage{fontawesome5}
% moderncv themes
\moderncvtheme[orange]{classic} % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)
%\moderncvtheme[green]{casual} % idem
% character encoding
%\usepackage[utf8]{inputenc}
% adjust the page margins
\usepackage[scale=0.8]{geometry}
\usepackage{ifxetex,ifluatex}
\newif\ifxetexorluatex
\ifxetex
\xetexorluatextrue
\else
\ifluatex
\xetexorluatextrue
\else
\xetexorluatexfalse
\fi
\fi
\ifxetexorluatex
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\setfontfamily{\githubfont}{octicons}
%\newfontfamily{\xingfont}{Myriad Pro}
\setfontfamily{\xingfont}{TeX Gyre Pagella}
\else
\newcommand\githubfont{}
\newcommand\xingfont{}
\fi
\usepackage{microtype}
%\newcommand\octocat{{\githubfont\char"F209"}}
\newcommand\xing{%
\scalebox{0.7}{%
\begin{tikzpicture}[baseline]%
\node[fill=color2,rounded corners=2pt,anchor=base] {%
\xingfont\bfseries\upshape\color{white}{X}%
};%
\end{tikzpicture}}}
% personal data
\firstname{Tim}
\familyname{Meusel}
\address{Sportplatzstraße 93}{51147 Köln}
\mobile{+49 163 7015493}
%\phone{}
%\fax{fax (optional)} % optional, remove the line if not wanted
\email{tim@bastelfreak.de}
%\homepage{www.bastelfreak.de}
%\extrainfo{\octocat~\url{http://github.com/bastelfreak}}
%\photo[64pt]{identity}
\AtBeginDocument{\renewcommand{\labelitemi}{-- }}
\usepackage[firstyear=2003,lastyear=2024]{moderntimeline}
%\tlmaxdates{1999}{2012}
\tlwidth{0.8ex}
% Proper alignment
\usepackage[originalcommands]{ragged2e}
\renewcommand*{\cvcomputer}[4]{%
\cvdoubleitem{#1}{\small\raggedright#2}{#3}{\small\raggedright#4}}
% Not all fonts have an sl shape
\renewcommand*{\cventry}[6]{%
\cvline{#1}{%
{\bfseries#2}%
\ifx#3\else{, {\itshape#3}}\fi%
\ifx#4\else{, #4}\fi%
\ifx#5\else{, #5}\fi%
.%
\ifx#6\else{\newline{}\begin{minipage}[t]{\linewidth}\small#6\end{minipage}}\fi
}}%
% Refine quote
\newcommand*{\myquote}[2]{%
\quote{\itshape #1 \\ \scshape \footnotesize #2}}
% Hobbies
\newcommand*{\cvhobby}[2]{\cvline{#1}{\small #2}}
% Developer/Contributor footnotes
\usepackage[bottom,norule,symbol*]{footmisc}
\newcommand*{\devnotes}[2]{%
\vfill
\footnotetext[1]{#1}
\footnotetext[2]{#2}
}
\newcommand*{\maintainer}{\footnotemark[1]}
\newcommand*{\contributor}{\footnotemark[2]}