You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.5 KiB
TeX
43 lines
1.5 KiB
TeX
\NeedsTeXFormat{LaTeX2e}
|
|
\ProvidesClass{cv_base}[2022/09/17 Custom CV Base Class]
|
|
\LoadClass{article}
|
|
|
|
% base setup
|
|
\RequirePackage{microtype, hyperref, enumitem, amsmath}
|
|
|
|
|
|
% Set main fonts
|
|
\usepackage{fontspec}
|
|
\setmainfont[Color=000000,Ligatures=TeX,Path=fonts/,BoldItalicFont=Lato-Italic,BoldFont=Lato-Regular,ItalicFont=Lato-LightItalic]{Lato-Light}
|
|
\setsansfont[Scale=MatchLowercase,Ligatures=TeX, Path = fonts/]{DejaVuSans-ExtraLight}
|
|
|
|
\newcommand{\latolight}{\fontspec[Path = fonts/]{Lato-Light}}
|
|
|
|
\newcommand{\latoreg}{\fontspec[Path = fonts/]{Lato-Regular}}
|
|
|
|
|
|
% link styling and helpers
|
|
\RequirePackage[dvipsnames]{xcolor}
|
|
\hypersetup{colorlinks=true, linkcolor=RoyalBlue, urlcolor=RoyalBlue}
|
|
% work around to have colored links, see https://tex.stackexchange.com/a/22061
|
|
\makeatletter
|
|
\def\HyColor@@@@UseColor#1\@nil{\addfontfeatures{Color=#1}}
|
|
\makeatother
|
|
|
|
% some helpers for adding links to printed documents
|
|
% \linkwithfooter will create a clickable link, and put the full url in the footer
|
|
% so that the link is visible even when printed.
|
|
\newcommand{\linkwithfooter}[2]{\href{#2}{#1}\footnote{\href{#2}{#2}}}
|
|
% footerlink will create a footnote with a full url, for when you don't want
|
|
% link text in your document
|
|
\newcommand{\footerlink}[1]{\footnote{\href{#1}{#1}}}
|
|
|
|
|
|
% highlight color
|
|
\definecolor{hicolorcode}{RGB}{19, 84, 153}
|
|
\newcommand{\hicolor}{hicolorcode} % PineGreen
|
|
\newcommand{\colorhi}[1]{\textit{#1}}
|
|
|
|
|
|
% no paragraph indent
|
|
\setlength{\parindent}{0cm} |