initial version
commit
8e8ad51007
@ -0,0 +1,7 @@
|
||||
fonts
|
||||
*.aux
|
||||
*.log
|
||||
*.out
|
||||
*.pdf
|
||||
*.synctex.gz
|
||||
out
|
@ -0,0 +1,25 @@
|
||||
SHELL := bash
|
||||
.SHELLFLAGS := -eu -o pipefail -c
|
||||
.ONESHELL:
|
||||
.DELETE_ON_ERROR:
|
||||
MAKEFLAGS += --warn-undefined-variables
|
||||
MAKEFLAGS += --no-builtin-rules
|
||||
|
||||
LATEX_CMD = lualatex --halt-on-error --synctex=1 --output-directory=out
|
||||
|
||||
|
||||
.PHONY: clean clean_fonts
|
||||
|
||||
fonts/sentinel:
|
||||
mkdir -p fonts
|
||||
fc-list | grep -E 'Lato-|DejaVu' | grep -v -- "-minimal" | cut -d : -f 1 | xargs -I{} bash -c 'ln -s {} fonts/$$(basename {})'
|
||||
touch fonts/sentinel
|
||||
|
||||
base.pdf: base.tex cv_base.cls fonts/sentinel
|
||||
${LATEX_CMD} base.tex
|
||||
|
||||
clean:
|
||||
rm -rf out
|
||||
|
||||
clean_fonts:
|
||||
rm -rf fonts/
|
@ -0,0 +1,6 @@
|
||||
# CV and Letter documentclasses
|
||||
|
||||
This repo tries to provide a uniform CV and cover letter document class (and template)
|
||||
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
\documentclass[]{cv_base}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\section[testsec]{Test Section}
|
||||
|
||||
Hello world
|
||||
|
||||
\subsection{Subsection test}
|
||||
|
||||
\end{document}
|
@ -0,0 +1,20 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{cv}[2022/09/17 Custom CV Class]
|
||||
\LoadClass{cv_base}
|
||||
|
||||
|
||||
% section / subsection formatting
|
||||
\RequirePackage{titlesec}
|
||||
|
||||
\titleformat{\section} % Customise the \section command
|
||||
{\Large\raggedright} % Make the \section headers large (\Large),
|
||||
% small capitals (\scshape) and left aligned (\raggedright)
|
||||
{}{0em} % Can be used to give a prefix to all sections, like 'Section ...'
|
||||
{} % Can be used to insert code before the heading
|
||||
[\titlerule] % Inserts a horizontal line after the heading
|
||||
|
||||
\titleformat{\subsection}
|
||||
{\large\raggedright}
|
||||
{}{0em}
|
||||
{}
|
||||
|
@ -0,0 +1,31 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{cv_base}[2022/09/17 Custom CV Base Class]
|
||||
\LoadClass{article}
|
||||
|
||||
% base setup
|
||||
\RequirePackage{microtype, hyperref, fancyhdr, enumitem, amsmath}
|
||||
|
||||
|
||||
% DejaVuSans font
|
||||
%\RequirePackage[scaled=0.825]{Lato}
|
||||
%\renewcommand*\familydefault{\sfdefault}
|
||||
|
||||
|
||||
% Set main fonts
|
||||
\usepackage{fontspec}
|
||||
\setmainfont[Color=2b2b2b, Path = fonts/,BoldItalicFont=Lato-Italic,BoldFont=Lato-Regular,ItalicFont=Lato-LightItalic]{Lato-Light}
|
||||
\setsansfont[Scale=MatchLowercase,Ligatures=TeX, Path = fonts/]{DeJaVuSans-ExtraLight}
|
||||
|
||||
% link styling and helpers
|
||||
\RequirePackage[dvipsnames]{xcolor}
|
||||
\hypersetup{colorlinks=true, linkcolor=RoyalBlue, urlcolor=RoyalBlue}
|
||||
|
||||
|
||||
\newcommand{\linkwithfooter}[2]{\href{#2}{#1}\footnote{\href{#2}{#2}}}
|
||||
\newcommand{\footerlink}[1]{\footnote{\href{#1}{#1}}}
|
||||
|
||||
% highlight color
|
||||
\definecolor{hicolorcode}{RGB}{178, 79, 61}
|
||||
\newcommand{\hicolor}{Sepia} % PineGreen
|
||||
\newcommand{\colorhi}[1]{\textit{#1}}
|
||||
|
@ -0,0 +1,3 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{cv_letter}[2022/09/17 Custom CV Letter Class]
|
||||
\LoadClass{cv_base}
|
Loading…
Reference in New Issue