modified
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
% Based on Adaptive CV by Alessandro Rossini
|
% Based on Adaptive CV by Alessandro Rossini
|
||||||
|
|
||||||
% class options
|
% class options
|
||||||
\NeedsTexFormat{LaTeX2e}
|
\NeedsTeXFormat{LaTeX2e}
|
||||||
\ProvidesClass{comcv}[2021/01/21 Compact CV]
|
\ProvidesClass{comcv}[2021/01/21 Compact CV]
|
||||||
|
|
||||||
\DeclareOption*{
|
\DeclareOption*{
|
||||||
@@ -14,14 +14,15 @@
|
|||||||
\LoadClass{article}
|
\LoadClass{article}
|
||||||
|
|
||||||
% required packages - put more packages here
|
% required packages - put more packages here
|
||||||
\RequirePackage[hmargin=1.25cm, vmargin=0.75cm]{geometry} % Change Horizontal and Vertical margins
|
\RequirePackage[top=2cm,left=1cm,right=1cm,bottom=1.2cm]{geometry} % Change Horizontal and Vertical margins
|
||||||
\RequirePackage{fontawesome} % fontawesomr icons
|
\RequirePackage{fontawesome} % fontawesomr icons
|
||||||
\RequirePackages{xcolor} % custom colors
|
\RequirePackage{xcolor} % custom colors
|
||||||
\RequirePackage{hyperref} % for links and
|
\RequirePackage{hyperref} % for links and
|
||||||
\RequirePackage{fontspec} % custom fonts
|
\RequirePackage{fontspec} % custom fonts
|
||||||
\RequirePackage{array}
|
\RequirePackage{array}
|
||||||
\RequirePackage{totpages} % counts total pages
|
\RequirePackage{totpages} % counts total pages
|
||||||
\RequirePackage{fancyhdr}
|
\RequirePackage{fancyhdr}
|
||||||
|
\RequirePackage{tikz}
|
||||||
|
|
||||||
% define your colors here
|
% define your colors here
|
||||||
\definecolor{white}{HTML}{FFFFFF} % color white
|
\definecolor{white}{HTML}{FFFFFF} % color white
|
||||||
@@ -29,7 +30,7 @@
|
|||||||
\definecolor{gray}{HTML}{555555} % color gray
|
\definecolor{gray}{HTML}{555555} % color gray
|
||||||
\definecolor{paynegray}{HTML}{353E49} % color payne gray
|
\definecolor{paynegray}{HTML}{353E49} % color payne gray
|
||||||
\definecolor{black}{HTML}{000000} % color black
|
\definecolor{black}{HTML}{000000} % color black
|
||||||
\definecolor{colorpink}{HTML}{FF706C} % color coral pink, ever seen a real coral, huh
|
\definecolor{coralpink}{HTML}{FF706C} % color coral pink, ever seen a real coral, huh
|
||||||
|
|
||||||
% provide colors to your elements
|
% provide colors to your elements
|
||||||
\colorlet{regulartext}{gray}
|
\colorlet{regulartext}{gray}
|
||||||
@@ -40,12 +41,6 @@
|
|||||||
|
|
||||||
% hyperref options for generating pdf, metadata
|
% hyperref options for generating pdf, metadata
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
pdfauthor={\comcv@firstname~\adcv@lastname}, % author of the file
|
|
||||||
pdftitle={\comcv@firstname~\adcv@lastname}, % title for the generated pdf
|
|
||||||
pdfsubject={Resume},
|
|
||||||
pdfpagemode=UseOutlines,
|
|
||||||
bookmarksopen=true,
|
|
||||||
pdfstartview=Fit,
|
|
||||||
colorlinks=true,
|
colorlinks=true,
|
||||||
allcolors=linktext
|
allcolors=linktext
|
||||||
}
|
}
|
||||||
@@ -84,53 +79,40 @@
|
|||||||
Color=headertext
|
Color=headertext
|
||||||
]{Roboto-Thin.ttf}
|
]{Roboto-Thin.ttf}
|
||||||
|
|
||||||
|
\newcommand*{\lighttext}{\addfontfeature{Color=lighttext}}
|
||||||
|
\newcommand*{\linktext}{\addfontfeature{Color=linktext}}
|
||||||
|
|
||||||
% define document commands/variables
|
% define document commands/variables
|
||||||
\newcommand*{\fullname}[3]{\def\comcv@firstname{#1}\def\cpmcv@middlename{#2}\def\comcv@lastname{#3}} % full name
|
\newcommand*{\fullname}[3]{\def\comcv@firstname{#1}\def\comcv@middlename{#2}\def\comcv@lastname{#3}} % full name
|
||||||
\newcommand*{\cvtitle}[1]{\def\comcv@title{#1}} % title of the document
|
\newcommand*{\cvtitle}[1]{\def\comcv@title{#1}} % title of the document
|
||||||
\newcommand*{\email}[1]{\def\comcv@mailid{#1}} % email id and email text
|
\newcommand*{\email}[1]{\def\comcv@mailid{#1}} % email id and email text
|
||||||
\def\comcv@email{\faEnvelop~\href{mailto:\comcv@mailid}{\comcv@mailid}}
|
|
||||||
|
|
||||||
\newcommand*{\website}[2]{\def\comcv@websiteurl{#1}\def\comcv@websitetext{#2}} % website and website text
|
\newcommand*{\website}[2]{\def\comcv@websiteurl{#1}\def\comcv@websitetext{#2}} % website and website text
|
||||||
\ifdefined\comcv@websiteurl
|
|
||||||
\ifx\comcv@websiteurl\empty
|
|
||||||
\def\comcv@website{}
|
|
||||||
\else
|
|
||||||
\def\comcv@website{\faGlobe~\href{\comcv@websiteurl}{\comcv@websitetext}}
|
|
||||||
\fi
|
|
||||||
\else
|
|
||||||
\def\comcv@website{}
|
|
||||||
\fi
|
|
||||||
|
|
||||||
\newcommand*{\github}[2]{\def\comcv@githuburl{#1}\def\comcv@githubtext{#2}} % github
|
\newcommand*{\github}[2]{\def\comcv@githuburl{#1}\def\comcv@githubtext{#2}} % github
|
||||||
\ifdefined\comcv@githuburl
|
|
||||||
\ifx\comcv@githuburl\empty
|
|
||||||
\def\comcv@github{}
|
|
||||||
\else
|
|
||||||
\def\comcv@github{\faGithub~\href{\comcv@githuburl}{\comcv@githubtext}}
|
|
||||||
\fi
|
|
||||||
\else
|
|
||||||
\def\comcv@github{}
|
|
||||||
\fi
|
|
||||||
|
|
||||||
\newcommand*{\linkedin}[2]{\def\comcv@linkedinurl{#1}\def\comcv@linkedintext{#2}} % linkedin
|
\newcommand*{\linkedin}[2]{\def\comcv@linkedinurl{#1}\def\comcv@linkedintext{#2}} % linkedin
|
||||||
\ifdefined\comcv@linkedinurl
|
|
||||||
\ifx\comcv@linkedinurl\empty
|
\newcommand*{\currentdate}[1]{\def\comcv@date{#1}}
|
||||||
\def\comcv@linkedin{}
|
\def\comcv@totpages{~/~\ref{TotPages}}
|
||||||
\else
|
\def\comcv@page{Page~\thepage\comcv@totpages}
|
||||||
\def\comcv@linkedin{\faLinkedin~\href{\comcv@linkedinurl}{\comcv@linkedintext}}
|
|
||||||
\fi
|
|
||||||
\else
|
|
||||||
\def\comcv@linkedin{}
|
|
||||||
\fi
|
|
||||||
% add more variables here
|
% add more variables here
|
||||||
|
|
||||||
% redefining some commands
|
% redefining some commands
|
||||||
\def\@sectioncolor#1#2#3{{\addfontfeatures{Color=linktext}#1#2#3}}
|
\def\@sectioncolor#1#2#3{{\addfontfeatures{Color=linktext}#1#2#3}}
|
||||||
|
|
||||||
\renewcommand{\section}[1]{{\Large\bfseries\@sectioncolor #1}}
|
\renewcommand{\section}[1]{{\vspace{.5\baselineskip}\Large\bfseries\@sectioncolor #1}}
|
||||||
|
|
||||||
\renewcommand{\subsection}[2]{\large\bfseries #2}
|
\renewcommand{\subsection}[2]{\large\bfseries #2}
|
||||||
|
|
||||||
|
% hyperref options
|
||||||
|
\AtBeginDocument{
|
||||||
|
\hypersetup{
|
||||||
|
pdfauthor={\comcv@firstname~\comcv@lastname}, % author of the file
|
||||||
|
pdftitle={\comcv@firstname~\comcv@lastname}, % title for the generated pdf
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
% header
|
% header
|
||||||
\AtBeginDocument{
|
\AtBeginDocument{
|
||||||
\begin{tikzpicture}[remember picture, overlay]
|
\begin{tikzpicture}[remember picture, overlay]
|
||||||
@@ -139,19 +121,49 @@
|
|||||||
};
|
};
|
||||||
\node [text=headertext, anchor=north] at (name.south) {\Large\thinheader\comcv@title};
|
\node [text=headertext, anchor=north] at (name.south) {\Large\thinheader\comcv@title};
|
||||||
\end{tikzpicture}
|
\end{tikzpicture}
|
||||||
|
|
||||||
|
\vspace{\baselineskip}
|
||||||
|
|
||||||
|
\def\comcv@email{\faEnvelope~\href{mailto:\comcv@mailid}{\comcv@mailid}}
|
||||||
|
|
||||||
|
\ifdefined\comcv@linkedinurl
|
||||||
|
\ifx\comcv@linkedinurl\empty
|
||||||
|
\def\comcv@linkedin{}
|
||||||
|
\else
|
||||||
|
\def\comcv@linkedin{\faLinkedin~\href{\comcv@linkedinurl}{\comcv@linkedintext}}
|
||||||
|
\fi
|
||||||
|
\else
|
||||||
|
\def\comcv@linkedin{}
|
||||||
|
\fi
|
||||||
|
|
||||||
|
\ifdefined\comcv@githuburl
|
||||||
|
\ifx\comcv@githuburl\empty
|
||||||
|
\def\comcv@github{}
|
||||||
|
\else
|
||||||
|
\def\comcv@github{\faGithub~\href{\comcv@githuburl}{\comcv@githubtext}}
|
||||||
|
\fi
|
||||||
|
\else
|
||||||
|
\def\comcv@github{}
|
||||||
|
\fi
|
||||||
|
|
||||||
|
\ifdefined\comcv@websiteurl
|
||||||
|
\ifx\comcv@websiteurl\empty
|
||||||
|
\def\comcv@website{}
|
||||||
|
\else
|
||||||
|
\def\comcv@website{\faGlobe~\href{\comcv@websiteurl}{\comcv@websitetext}}
|
||||||
|
\fi
|
||||||
|
\else
|
||||||
|
\def\comcv@website{}
|
||||||
|
\fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\begin{center}
|
||||||
|
\comcv@email~~\comcv@website~~\comcv@github~~\comcv@linkedin
|
||||||
|
\end{center}
|
||||||
}
|
}
|
||||||
|
|
||||||
\vspace{\baselineskip}
|
|
||||||
|
|
||||||
\begin{center}
|
|
||||||
\comcv@email~~\comcv@website~~\comcv@github~~\comcv@linkedin
|
|
||||||
\end{center}
|
|
||||||
|
|
||||||
% footer
|
% footer
|
||||||
\newcommand*{\currentdate}[1]{\def\comcv@date{#1}}
|
|
||||||
\def\comcv@totpages{~/~\ref{TotPages}}
|
|
||||||
\def\comcv@page{\comcv@pagekey~\thepage\comcv@totpages}
|
|
||||||
|
|
||||||
\AtBeginDocument{
|
\AtBeginDocument{
|
||||||
\pagestyle{fancy}
|
\pagestyle{fancy}
|
||||||
\fancyhead{}
|
\fancyhead{}
|
||||||
|
|||||||
+18
-16
@@ -1,17 +1,19 @@
|
|||||||
\documentclass[a4paper]{comcv}
|
%!TEX TS-program = xelatex
|
||||||
|
\documentclass[a4paper]{comcv}
|
||||||
\usepackage[english]{babel}
|
|
||||||
|
\usepackage[english]{babel}
|
||||||
\title{Avinal's CV}
|
|
||||||
|
\title{Avinal's CV}
|
||||||
\cvtitle{Student, Programmer, Technical Writer, Open Source Developer}
|
\fullname{Avinal}{}{Kumar}
|
||||||
\website{https://avinal.is-a.dev}{avinal.is-a.dev}
|
\cvtitle{Student, Programmer, Technical Writer, Open Source Developer}
|
||||||
\email{185067@nith.ac.in}
|
\website{https://avinal.is-a.dev}{avinal.is-a.dev}
|
||||||
\github{https://github.com/avinal}{GitHub}
|
\email{185067@nith.ac.in}
|
||||||
\linkedin{https://www.linkedin.com/in/avinal}
|
\github{https://github.com/avinal}{GitHub}
|
||||||
\currentdate{Jan 2021}
|
\linkedin{https://www.linkedin.com/in/avinal}{LinkedIn}
|
||||||
|
\currentdate{Jan 2021}
|
||||||
\begin{document}
|
|
||||||
\section{Experience}
|
\begin{document}
|
||||||
\subsection{Script Winter of Code}
|
\section{Experience}
|
||||||
|
\subsection{Script Winter of Code}
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
Reference in New Issue
Block a user