Skip to content

Commit 1f5473e

Browse files
clean up comcv.cls file
1 parent 72b42f9 commit 1f5473e

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

comcv.cls

+11-16
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
%% comcv.cls
22
%% 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
107
% version 2005/12/01 or later.
118

129
% class options
1310
\NeedsTeXFormat{LaTeX2e}
14-
\ProvidesClass{comcv}[2021/01/21 Compact CV]
11+
\ProvidesClass{comcv}[2024/10/19 Compact CV]
1512

1613
\newif\ifextended
1714
\extendedfalse
@@ -25,9 +22,8 @@
2522
\ProcessOptions\relax
2623
\LoadClass{article}
2724

28-
2925
% 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
3127
\RequirePackage{fontawesome} % fontawesome icons
3228
\RequirePackage[usenames,dvipsnames]{xcolor} % custom colors
3329
\RequirePackage{fontspec} % custom fonts
@@ -38,6 +34,7 @@
3834
\RequirePackage{hyperref} % for links and, please keep it as last package, add more packages above it
3935
\PassOptionsToPackage{unicode}{hyperref}
4036
\PassOptionsToPackage{naturalnames}{hyperref}
37+
4138
% define your colors here
4239
\definecolor{white}{HTML}{FFFFFF} % color white
4340
\definecolor{gray}{HTML}{555555} % color gray
@@ -97,7 +94,7 @@
9794
Color=headertext
9895
]{Roboto-Medium.ttf}
9996

100-
% define document commands/variables
97+
% define document commands and variables
10198
\newcommand*{\fullname}[3]{\def\comcv@firstname{#1}\def\comcv@lastname{#2}\def\comcv@degree{#3}} % full name and degree
10299

103100
\newcommand*{\cvtitle}[1]{\def\comcv@title{#1}} % title of the document
@@ -123,8 +120,6 @@
123120
\fontsize{14pt}{16pt}\thinheader\bfseries\uppercase
124121
}{}{0pt}{}
125122

126-
127-
128123
\titlespacing{\subsection}{0pt}{0pt}{0pt} % remove space around subsection
129124
\titleformat{\subsection}[runin]{ % runin option let you put text side of section or subsection
130125
\fontsize{12pt}{12pt}\mediumheader\bfseries
@@ -147,8 +142,8 @@
147142
\AtBeginDocument{
148143
% hyperref options
149144
\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
152147
}
153148

154149
\def\comcv@email{\faEnvelope~\href{mailto:\comcv@mailid}{\comcv@mailid}}
@@ -196,7 +191,7 @@
196191
\begin{center}
197192
% define your header text size, color and format
198193
\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
200195
\else
201196
\thinheader,~\comcv@degree
202197
\fi

0 commit comments

Comments
 (0)