66 lines
3.6 KiB
TeX
66 lines
3.6 KiB
TeX
% Colors.
|
|
\getenv[\ColorMain]{RESUME_COLOR}
|
|
\definecolor{ColorBlack}{RGB}{0,0,0}
|
|
\definecolor{ColorWhite}{RGB}{255,255,255}
|
|
\definecolor{ColorLink} {RGB}{46,116,181}
|
|
\definecolor{ColorMain} {HTML}{\ColorMain}
|
|
\definecolor{ColorGray} {RGB}{127,127,127}
|
|
\definecolor{ColorLgray}{RGB}{229,229,229}
|
|
\definecolor{ColorRef} {RGB}{53,82,105}
|
|
|
|
\definecolor{ColorCodeBackground}{RGB}{40,42,54}
|
|
\definecolor{ColorCodeText} {RGB}{248,248,242}
|
|
\definecolor{ColorCodeString} {RGB}{80,250,123}
|
|
\definecolor{ColorCodeLiteral} {RGB}{139,233,253}
|
|
\definecolor{ColorCodeProperty} {RGB}{139,233,253}
|
|
\definecolor{ColorCodeKeyword} {RGB}{255,184,108}
|
|
\definecolor{ColorCodeComment} {RGB}{98,114,164}
|
|
|
|
% code block.
|
|
\newtcolorbox{CodeBox}[1][]{
|
|
colback = ColorCodeBackground,
|
|
colframe = ColorCodeBackground,
|
|
fontupper = \ttfamily,
|
|
nobeforeafter
|
|
}
|
|
\newenvironment{Code}{\begin{CodeBox}\catcode33=12\obeylines}{\end{CodeBox}}
|
|
|
|
% styles.
|
|
\newcommand{\ResetStyle} [1]{\fontsize{12}{12}\selectfont\rm\color{ColorBlack}#1} % Reset font style.
|
|
\newcommand{\Par} [0]{\par} % Default paragraph break.
|
|
\newcommand{\Parn} [0]{\par\noindent} % Default paragraph break without indent.
|
|
\newcommand{\Text} [1]{\ResetStyle{#1}} % Default text.
|
|
\newcommand{\Itallic} [1]{\textit{#1}} % Itallic text.
|
|
\newcommand{\Bold} [1]{\textbf{#1}} % Bold text.
|
|
\newcommand{\Semibold} [1]{\fontseries{sb}{\selectfont{#1}}} % Semi-bold text.
|
|
\newcommand{\Underline} [1]{\underline{#1}} % Underline text.
|
|
\newcommand{\Link} [2]{\href{#1}{\textcolor{ColorLink}{\Underline{#2}}}} % Link webpage.
|
|
\newcommand{\TextName} [1]{\fontsize{21}{21}{\selectfont{\Semibold{#1}}}} % Name style.
|
|
\newcommand{\Color} [2]{\textcolor{#1}{#2}} % Text color alias.
|
|
\newcommand{\Icon} [1]{\raisebox{-1mm}{\includegraphics[height=5mm]{#1}}} % Icons.
|
|
\newcommand{\Href} [1]{\hyperlink{#1}{\textcolor{ColorLink}{\Underline{#1}}}} % Reference section.
|
|
\newcommand{\TextRef} [1]{\textcolor{ColorRef}{#1}} % Reference text.
|
|
\newcommand{\TextList} [1]{\textcolor{ColorLgray}{#1}} % List numbers.
|
|
\newcommand{\Bullet} [0]{\raisebox{0.5mm}{\bullet}\hspace{4mm}} % List bullet symbol.
|
|
\newcommand{\Title} [1]{\hypertarget{#1}{}\fontsize{11}{11}%
|
|
{\selectfont{\textcolor{ColorMain}{\Semibold{#1}}}}} % Section title.
|
|
|
|
\newcommand{\BlCompact}[0]{\renewcommand{\baselinestretch}{1.0}\normalsize} % Compact baseline size.
|
|
\newcommand{\BlDefault}[0]{\renewcommand{\baselinestretch}{1.5}\normalsize} % Default baseline size.
|
|
|
|
\newcommand{\CString} [1]{\textcolor{ColorCodeString}{#1}}
|
|
\newcommand{\CLiteral} [1]{\textcolor{ColorCodeLiteral}{#1}}
|
|
\newcommand{\CProperty}[1]{\textcolor{ColorCodeProperty}{#1}}
|
|
\newcommand{\CKeyword} [1]{\textcolor{ColorCodeKeyword}{#1}}
|
|
\newcommand{\CComment} [1]{\textcolor{ColorCodeComment}{#1}}
|
|
|
|
\newcommand{\JLink} [1]{\Icon{IcLink}\ \href{https://#1}{\Itallic{#1}}} % Job webpage.
|
|
\newcommand{\JPlace}[2]{\ResetStyle{\Semibold{#1}}\ResetStyle\hfill\fontsize%
|
|
{10}{10}\selectfont\textcolor{ColorGray}{(#2)}} % Job place.
|
|
|
|
% settings.
|
|
\linespread{1.5} % Height between non-breaking lines.
|
|
\sloppy % Correct word placement on newline.
|
|
\pagestyle{empty} % Suppress default styles, i.e. page numbers.
|
|
\BlDefault % Default baseline size.
|