-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreamble.tex
64 lines (52 loc) · 2.21 KB
/
preamble.tex
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
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}
\usepackage[protrusion=true,expansion=true]{microtype}
\usepackage{amsmath,amsfonts,amsthm} % Math packages
\usepackage{graphicx} % Enable pdflatex
\usepackage[svgnames]{xcolor} % Colors by their 'svgnames'
\usepackage{geometry}
\textheight=700px % Saving trees ;-)
\usepackage{url}
\frenchspacing % Better looking spacings after periods
\pagestyle{empty} % No pagenumbers/headers/footers
%%% Custom sectioning (sectsty package)
%%% ------------------------------------------------------------
\usepackage{sectsty}
\sectionfont{% % Change font of \section command
\sectionrule{0pt}{0pt}{-5pt}{3pt}}
%%% Macros
%%% ------------------------------------------------------------
\newlength{\spacebox}
\settowidth{\spacebox}{888888888888888} % Box to align text
\newcommand{\sepspace}{\vspace*{1em}}
\newcommand{\MyName}[1]{ % Name
\LARGE \hfill #1
\par \normalsize \normalfont}
\newcommand{\MySlogan}[1]{ % Slogan (optional)
\large\hfill\textit{#1}
\par\normalsize\normalfont}
\newcommand{\NewPart}[1]{\section*{#1}}
\newcommand{\PersonalEntry}[2]{
\noindent\hangindent=2em\hangafter=0 % Indentation
\parbox{\spacebox}{ % Box to align text
\textit{#1}} % Entry name (birth, address, etc.)
\hspace{1.5em} #2 \par} % Entry value
\newcommand{\SkillsEntry}[2]{ % Same as \PersonalEntry
\noindent\hangindent=2em\hangafter=0 % Indentation
\parbox{\spacebox}{% Box to align text
\textit{#1}} % Entry name (birth, address, etc.)
\hspace{1.5em} #2 \par} % Entry value
\newcommand{\EducationEntry}[4]{
\noindent \textbf{#1} \hfill % Study
\colorbox{Black}{%
\parbox{6em}{%
\hfill\color{White}#2}} \par % Duration
\noindent \textit{#3} \par % School
\noindent\hangindent=2em\hangafter=0 \small #4 % Description
\normalsize \par}
\newcommand{\WorkEntry}[4]{ % Same as \EducationEntry
\noindent \textbf{#1} \hfill % Jobname
\colorbox{Black}{\color{White}#2} \par % Duration
\noindent \textit{#3} \par % Company
\noindent\hangindent=2em\hangafter=0 \small #4 % Description
\normalsize \par}