-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathprometheus_cv.cls
66 lines (55 loc) · 1.97 KB
/
prometheus_cv.cls
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
\LoadClass{article}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{prometheus_cv}[2020/10/14 Here to make editing your CV not an eternal torment]
\RequirePackage{titlesec}
% We customise the \section command
\titleformat{\section}
{\large\scshape\raggedright} % Make the \section headers large, small caps and left aligned
{}{0em} % No label (prefix) and no horizontal separation between label and title body
{} % Code preceeding the title body
[\titlerule] % Code following the title body. Here a horizontal line.
% We also slightly update \subsection command
\titleformat{\subsection}
{\normalsize\scshape\raggedright}
{}{0em}
{}
%%% define the \datedsubsection command %%%
\newcommand{\datedsubsection}[4]{%
\cvsubsection[#2]{#3 \hfill \small{\textlf{\scshape{#2}}}}%
\begin{minipage}{5cm}
\vspace*{-.7ex}\hspace*{-3cm}\footnotesize #1
\end{minipage}
\raggedright
\begin{small}
#4
\end{small}
}
%%% define the \datedsubsectionnarrow command %%%
\newcommand{\datedsubsectionnarrow}[4]{%
\cvsubsectionnarrow[#2]{#3 \hfill \small{\textlf{\scshape{#2}}}}%
\begin{minipage}{5cm}
\vspace*{-.7ex}\hspace*{-3cm}\footnotesize #1
\end{minipage}
\raggedright
\begin{small}
#4
\end{small}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% DEFINE OUR OWN SUBSECTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcounter{cvsubsection}
\titleclass{\cvsubsection}{straight}[\part]
\titleformat{\cvsubsection}
{\raggedright}
{}{0em}
{}
\titlespacing*{\cvsubsection}{0pt}{3.5ex plus 1ex minus .2ex}{-2.5ex}
% The same but in narrow
\newcounter{cvsubsectionnarrow}
\titleclass{\cvsubsectionnarrow}{straight}[\part]
\titleformat{\cvsubsectionnarrow}
{\raggedright}
{}{0em}
{}
\titlespacing*{\cvsubsectionnarrow}{0pt}{0pt}{-2.5ex}