Changeset View
Changeset View
Standalone View
Standalone View
swh/web/tests/resources/contents/code/extensions/front.tex
- This file was added.
% !TEX TS-program = xelatex | |||||
\documentclass[10pt,oneside,final]{article} | |||||
% set all margins to 0 and set business card size | |||||
\usepackage[paperwidth=2in,paperheight=3.5in,margin=0cm,noheadfoot]{geometry} | |||||
\setlength{\baselineskip}{0cm} | |||||
\setlength{\topskip}{0pt} | |||||
\usepackage{parskip} % remove paragraph indents | |||||
\usepackage{fontspec} % load external fonts | |||||
\usepackage{tikz} % drawing | |||||
\usepackage{fontawesome} % icon font | |||||
\usepackage{xcolor} % more colour options | |||||
% load and configure tikz libraries | |||||
\usetikzlibrary{matrix,calc,positioning} | |||||
% load external font | |||||
\setmainfont{Fira Sans} | |||||
\setsansfont{Fira Sans} | |||||
\setmonofont{Fira Mono} | |||||
% define some lengths for internal spacing | |||||
\newlength{\seplinewidth} \setlength{\seplinewidth}{2cm} | |||||
\newlength{\seplineheight} \setlength{\seplineheight}{1pt} | |||||
\newlength{\seplinedistance} \setlength{\seplinedistance}{0.3cm} | |||||
% colour options | |||||
\definecolor{seplinecolour}{HTML}{357f2d} % green | |||||
\definecolor{iconcolour}{HTML}{2f3142} % dark | |||||
\definecolor{textcolour}{HTML}{2f3142} % dark | |||||
\definecolor{jobtitlecolour}{HTML}{474a65} % light dark | |||||
% change global colour | |||||
\makeatletter | |||||
\newcommand{\globalcolor}[1]{% | |||||
\color{#1}\global\let\default@color\current@color | |||||
} | |||||
\makeatother | |||||
\AtBeginDocument{\globalcolor{textcolour}} | |||||
\begin{document} | |||||
\thispagestyle{empty} | |||||
\vspace*{\fill} | |||||
\begin{center} | |||||
\begin{tikzpicture} | |||||
% name | |||||
\matrix[every node/.style={anchor=center,font=\huge},anchor=center] (name) { | |||||
\node{John}; \\ | |||||
\node{Doe}; \\ | |||||
\node{\color{jobtitlecolour}\normalsize\textit{job title}}; \\ | |||||
}; | |||||
% sep line 1 | |||||
\node[below=\seplinedistance of name] (hl1) {}; | |||||
\draw[line width=\seplineheight,color=seplinecolour] (hl1)++(-\seplinewidth/2,0) -- ++(\seplinewidth,0); | |||||
% contact info | |||||
\matrix [below=\seplinedistance of hl1,% | |||||
column 1/.style={anchor=center,color=iconcolour},% | |||||
column 2/.style={anchor=west}] (contact){ | |||||
\node{\faGlobe}; & \node{johndoe.com};\\ | |||||
\node{\faEnvelope}; &\node{me@johndoe.com};\\ | |||||
\node{\faPhone}; &\node{+1 781 555 1212}; \\ | |||||
\node{\faGithub}; &\node{johndoe}; \\ | |||||
}; | |||||
% sep line 2 | |||||
\node[below=\seplinedistance of contact] (hl2) {}; | |||||
\draw[line width=\seplineheight,color=seplinecolour] (hl2)++(-\seplinewidth/2,0) -- ++(\seplinewidth,0); | |||||
% interests | |||||
\matrix [below=\seplinedistance of hl2, | |||||
every node/.style={anchor=center,font=\LARGE}] | |||||
(interests) { | |||||
\node{\faCode}; & \node{\faCoffee}; & | |||||
\node{\faLock}; & \node{\faWrench}; & | |||||
\node{\faCameraRetro}; \\ | |||||
}; | |||||
\end{tikzpicture} | |||||
\end{center} | |||||
\vspace*{\fill} | |||||
\end{document} |