|
1 | 1 | %% comcv.cls
|
2 | 2 | %% Copyright 2024 Avinal Kumar
|
3 |
| -% |
4 |
| -% This work may be distributed and/or modified under the |
5 |
| -% conditions of the LaTeX Project Public License, either version 1.3 |
6 |
| -% of this license or any later version. |
7 |
| -% The latest version of this license is in |
8 |
| -% http://www.latex-project.org/lppl.txt |
9 |
| -% and version 1.3 or later is part of all distributions of LaTeX |
| 3 | + |
| 4 | +% This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, |
| 5 | +% either version 1.3 of this license or any later version. The latest version of this license is in |
| 6 | +% http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all distributions of LaTeX |
10 | 7 | % version 2005/12/01 or later.
|
11 | 8 |
|
12 | 9 | % class options
|
13 | 10 | \NeedsTeXFormat{LaTeX2e}
|
14 |
| -\ProvidesClass{comcv}[2021/01/21 Compact CV] |
| 11 | +\ProvidesClass{comcv}[2024/10/19 Compact CV] |
15 | 12 |
|
16 | 13 | \newif\ifextended
|
17 | 14 | \extendedfalse
|
|
25 | 22 | \ProcessOptions\relax
|
26 | 23 | \LoadClass{article}
|
27 | 24 |
|
28 |
| - |
29 | 25 | % required packages - put more packages here
|
30 |
| -\RequirePackage[top=0.5cm,left=1cm,right=1cm,bottom=1.2cm]{geometry} % Change Horizontal and Vertical margins |
| 26 | +\RequirePackage[top=0.5cm,left=1cm,right=1cm,bottom=1.2cm]{geometry} % change horizontal and vertical margins |
31 | 27 | \RequirePackage{fontawesome} % fontawesome icons
|
32 | 28 | \RequirePackage[usenames,dvipsnames]{xcolor} % custom colors
|
33 | 29 | \RequirePackage{fontspec} % custom fonts
|
|
38 | 34 | \RequirePackage{hyperref} % for links and, please keep it as last package, add more packages above it
|
39 | 35 | \PassOptionsToPackage{unicode}{hyperref}
|
40 | 36 | \PassOptionsToPackage{naturalnames}{hyperref}
|
| 37 | + |
41 | 38 | % define your colors here
|
42 | 39 | \definecolor{white}{HTML}{FFFFFF} % color white
|
43 | 40 | \definecolor{gray}{HTML}{555555} % color gray
|
|
97 | 94 | Color=headertext
|
98 | 95 | ]{Roboto-Medium.ttf}
|
99 | 96 |
|
100 |
| -% define document commands/variables |
| 97 | +% define document commands and variables |
101 | 98 | \newcommand*{\fullname}[3]{\def\comcv@firstname{#1}\def\comcv@lastname{#2}\def\comcv@degree{#3}} % full name and degree
|
102 | 99 |
|
103 | 100 | \newcommand*{\cvtitle}[1]{\def\comcv@title{#1}} % title of the document
|
|
123 | 120 | \fontsize{14pt}{16pt}\thinheader\bfseries\uppercase
|
124 | 121 | }{}{0pt}{}
|
125 | 122 |
|
126 |
| - |
127 |
| - |
128 | 123 | \titlespacing{\subsection}{0pt}{0pt}{0pt} % remove space around subsection
|
129 | 124 | \titleformat{\subsection}[runin]{ % runin option let you put text side of section or subsection
|
130 | 125 | \fontsize{12pt}{12pt}\mediumheader\bfseries
|
|
147 | 142 | \AtBeginDocument{
|
148 | 143 | % hyperref options
|
149 | 144 | \hypersetup{
|
150 |
| - pdfauthor={\comcv@firstname~\comcv@lastname}, % author of the file |
151 |
| - pdftitle={\comcv@firstname~\comcv@lastname's Résumé}, % title for the generated pdf |
| 145 | + pdfauthor={\comcv@firstname~\comcv@lastname}, % author of file |
| 146 | + pdftitle={\comcv@firstname~\comcv@lastname's Résumé}, % title for generated pdf |
152 | 147 | }
|
153 | 148 |
|
154 | 149 | \def\comcv@email{\faEnvelope~\href{mailto:\comcv@mailid}{\comcv@mailid}}
|
|
196 | 191 | \begin{center}
|
197 | 192 | % define your header text size, color and format
|
198 | 193 | \fontsize{35pt}{45pt}\thinheader\comcv@firstname~\regularheader\comcv@lastname
|
199 |
| - \ifx\comcv@degree\empty% do nothing in case of empty degree |
| 194 | + \ifx\comcv@degree\empty % do nothing in case of empty degree |
200 | 195 | \else
|
201 | 196 | \thinheader,~\comcv@degree
|
202 | 197 | \fi
|
|
0 commit comments