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
OpenEdge ABL

2 years ago
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{cv_base}[2022/09/17 Custom CV Base Class]
\LoadClass{article}
% base setup
\RequirePackage{microtype, hyperref, enumitem, amsmath}
2 years ago
% 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}
2 years ago
\newcommand{\latolight}{\fontspec[Path = fonts/]{Lato-Light}}
\newcommand{\latoreg}{\fontspec[Path = fonts/]{Lato-Regular}}
2 years ago
% 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.
2 years ago
\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
2 years ago
\newcommand{\footerlink}[1]{\footnote{\href{#1}{#1}}}
2 years ago
% highlight color
\definecolor{hicolorcode}{RGB}{19, 84, 153}
\newcommand{\hicolor}{hicolorcode} % PineGreen
2 years ago
\newcommand{\colorhi}[1]{\textit{#1}}
% no paragraph indent
\setlength{\parindent}{0cm}