-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmycv.cls
68 lines (50 loc) · 1.59 KB
/
mycv.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
66
\LoadClass[10pt,letterpaper]{article}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{mycv}[2019/07/24 CV class]
\RequirePackage{titlesec} % title formating pkg
\RequirePackage[letterpaper,margin=2cm]{geometry} % Margins adjustment
\RequirePackage[utf8]{inputenc}
\RequirePackage{fancyhdr}
%Header & Footer
\pagestyle{fancy}
\fancyhead{} % clear all header fields
\cfoot{}
\rfoot{Page~\thepage}
\lfoot{\today}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
%\RequirePackage[english]{babel}
%\renewcommand{\baselinestretch}{.5}
\titleformat{\section} % Customise the \section command
{\bf\Large\scshape\raggedright\rmfamily} % Make the \section headers large (\Large),
% small capitals (\scshape) and left aligned (\raggedright)
{}{0em} % Can be used to give a prefix to all sections, like 'Section ...'
{} % Can be used to insert code before the heading
[\titlerule] % Inserts a horizontal line after the heading
\titleformat{\subsection}
{\bf\normalsize\raggedright}
{}{0em}
{}
\titleformat{\subsubsection}
{\normalsize\raggedright}
{}{0em}
{}
\titleformat{\subsubsection}
{\normalsize\raggedright}
{}{0em}
{}
\newcommand{\worksubsection}[4]{
\subsection[#1]{#1}
\subsection[#2]{#2}
\subsubsection[#3]{#3}
\subsubsection[#4]{#4}
}
\newcommand{\datedsubsection}[2]{
\subsection[#1]{#1 \hfill #2}%
}
\newenvironment{myitemize}
{ \begin{itemize}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt} }
{ \end{itemize} }