some more progress

master
Anton Lydike 2 years ago
parent 28ff6533c4
commit 5e598bbaf4

@ -5,30 +5,34 @@ SHELL := bash
MAKEFLAGS += --warn-undefined-variables MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules MAKEFLAGS += --no-builtin-rules
LATEX_CMD = lualatex --halt-on-error --synctex=1 --output-directory=out LATEX_CMD = latexmk -lualatex --halt-on-error --synctex=1 --output-directory=out
.PHONY: clean clean_fonts all
# create output folder!
$(info $(shell mkdir -p out))
all: out/cv_letter.pdf out/cv.pdf
out/base.pdf: base.tex cv_base.cls fonts/sentinel
${LATEX_CMD} base.tex
out/cv.pdf: cv.tex cv_base.cls cv.cls fonts/sentinel
${LATEX_CMD} cv.tex
out/cv_letter.pdf: cv_letter.tex cv_base.cls cv_letter.cls fonts/sentinel
${LATEX_CMD} cv_letter.tex
.PHONY: clean clean_fonts basics
fonts/sentinel: fonts/sentinel:
mkdir -p fonts mkdir -p fonts
fc-list | grep -E 'Lato-|DejaVu' | grep -v -- "-minimal" | cut -d : -f 1 | xargs -I{} bash -c 'ln -s {} fonts/$$(basename {})' fc-list | grep -E 'Lato-|DejaVu' | grep -v -- "-minimal" | cut -d : -f 1 | xargs -I{} bash -c 'ln -fs {} fonts/$$(basename {})'
touch fonts/sentinel touch fonts/sentinel
basics: fonts/sentinel
mkdir -p out
clean: clean:
rm -rf out rm -rf out
clean_fonts: clean_fonts:
rm -rf fonts/ rm -rf fonts/
base.pdf: base.tex cv_base.cls basics
${LATEX_CMD} base.tex
cv.pdf: cv.tex cv_base.cls cv.cls basics
${LATEX_CMD} cv.tex
cv_letter.pdf: cv_letter.tex cv_base.cls cv_letter.cls basics
${LATEX_CMD} cv_letter.tex

@ -8,7 +8,7 @@
% Set main fonts % Set main fonts
\usepackage{fontspec} \usepackage{fontspec}
\setmainfont[Color=2b2b2b, Path = fonts/,BoldItalicFont=Lato-Italic,BoldFont=Lato-Regular,ItalicFont=Lato-LightItalic]{Lato-Light} \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} \setsansfont[Scale=MatchLowercase,Ligatures=TeX, Path = fonts/]{DejaVuSans-ExtraLight}
\newcommand{\latolight}{\fontspec[Path = fonts/]{Lato-Light}} \newcommand{\latolight}{\fontspec[Path = fonts/]{Lato-Light}}
@ -19,13 +19,25 @@
% link styling and helpers % link styling and helpers
\RequirePackage[dvipsnames]{xcolor} \RequirePackage[dvipsnames]{xcolor}
\hypersetup{colorlinks=true, linkcolor=RoyalBlue, urlcolor=RoyalBlue} \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}}} \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}}} \newcommand{\footerlink}[1]{\footnote{\href{#1}{#1}}}
% highlight color % highlight color
\definecolor{hicolorcode}{RGB}{178, 79, 61} \definecolor{hicolorcode}{RGB}{19, 84, 153}
\newcommand{\hicolor}{PineGreen} % PineGreen \newcommand{\hicolor}{hicolorcode} % PineGreen
\newcommand{\colorhi}[1]{\textit{#1}} \newcommand{\colorhi}[1]{\textit{#1}}
% no paragraph indent
\setlength{\parindent}{0cm}

@ -1,3 +1,19 @@
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesClass{cv_letter}[2022/09/17 Custom CV Letter Class] \ProvidesClass{cv_letter}[2022/09/17 Custom CV Letter Class]
\LoadClass{cv_base} \LoadClass{cv_base}
\RequirePackage[left=.9in, right=.9in, bottom=.6in, top=.8in]{geometry}
\RequirePackage{fontawesome}
% larger line spaces
\renewcommand{\baselinestretch}{1.15}
\newcommand{\absatz}{\vspace{.35cm}}
\newcommand{\foothref}[2]{\href{#2}{#1}\footnote{\href{#2}{#2}}}
\newcommand{\footlink}[1]{\footnote{\href{#1}{#1}}}
\newcommand{\crule}{{\color{\hicolor}\hrule}}
\setmainfont[Scale=MatchLowercase,Ligatures=TeX, Path = fonts/]{DejaVuSans}

@ -1,11 +1,58 @@
\documentclass[]{cv_letter} \documentclass{cv_letter}
\usepackage[ngerman]{babel}
\begin{document} \begin{document}
\begin{tabular*}{\textwidth}{l @{\extracolsep{\fill}} r}
\latolight\Huge{\textcolor{\hicolor}{Max Musterfrau}} & \it\footnotesize\colorhi{\latolight\today}
\end{tabular*}
\vspace{.25cm}
\crule
\begin{flushright}
\latolight
\faPhone\, +49 123 456\,78\,999 \,\,\, \faEnvelope\, \href{mailto:Max@Musterfrau.com}{Max@Musterfrau.com} \\
Musterstraße. 10, 12345, Musterstadt \\
\end{flushright}
\vspace{1cm}
Musterfirma GmbH \\
Muster-Firma-Str. 1 \\
12345 Münster
\vspace{1cm}
\textbf{\latoreg\Large \color{\hicolor}{Initiativbewerbung auf eine Werkstudentenstelle}}
\absatz
Sehr geehrte Damen und Herren,
\absatz
lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\absatz
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur\footnote{ipsum dolor sit amet, consetetur} sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\absatz
Lorem ipsum dolor sit amet, \glqq consetetur sadipscing elitr\grqq, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\absatz
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.
\absatz
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
\absatz
Mit freundlichen Grüßen \\
Max Musterfrau
\section[testsec]{Test Section}
Hello world
\subsection{Subsection test}
\end{document} \end{document}
Loading…
Cancel
Save