2023-07-31 04:30:43 +03:00
|
|
|
% colors.
|
2023-08-02 17:20:47 +03:00
|
|
|
\getenv[\colormain]{RESUME_COLOR}
|
2023-07-31 16:47:03 +03:00
|
|
|
\definecolor{black}{RGB}{0,0,0}
|
2023-07-31 06:23:58 +03:00
|
|
|
\definecolor{white}{RGB}{255,255,255} % default white.
|
2023-07-31 15:32:36 +03:00
|
|
|
\definecolor{link} {RGB}{46,116,181} % web link.
|
2023-08-02 17:39:51 +03:00
|
|
|
\definecolor{main} {HTML}{\colormain} % main.
|
2023-08-01 16:21:29 +03:00
|
|
|
\definecolor{gray} {RGB}{127,127,127} % gray.
|
2023-08-01 19:38:43 +03:00
|
|
|
\definecolor{lgray}{RGB}{229,229,229} % light gray.
|
2023-07-31 15:32:36 +03:00
|
|
|
\definecolor{ref} {RGB}{53,82,105} % reference color.
|
|
|
|
|
2023-08-01 15:08:27 +03:00
|
|
|
\definecolor{code_background}{RGB}{40,42,54} % code background.
|
|
|
|
\definecolor{code_text} {RGB}{248,248,242} % code default text.
|
|
|
|
\definecolor{code_string} {RGB}{80,250,123} % code string colors like "hello world".
|
|
|
|
\definecolor{code_literal} {RGB}{139,233,253} % code literal colors like "8L".
|
|
|
|
\definecolor{code_property} {RGB}{139,233,253} % code properties like variables and methods.
|
|
|
|
\definecolor{code_keyword} {RGB}{255,184,108} % code keywords like "val", "fun" etc.
|
|
|
|
\definecolor{code_comment} {RGB}{98,114,164} % code comment colors like // todo.
|
2023-07-31 15:32:36 +03:00
|
|
|
|
2023-08-01 16:21:29 +03:00
|
|
|
% code block.
|
2023-07-31 15:32:36 +03:00
|
|
|
\newtcolorbox{scodebox}[1][]{
|
|
|
|
colback = code_background,
|
|
|
|
colframe = code_background,
|
|
|
|
fontupper = \ttfamily,
|
|
|
|
nobeforeafter
|
|
|
|
}
|
2023-08-01 16:21:29 +03:00
|
|
|
\newenvironment{scode}{\begin{scodebox}\catcode33=12\obeylines}{\end{scodebox}}
|
2023-07-31 04:30:43 +03:00
|
|
|
|
|
|
|
% styles.
|
2023-08-01 19:38:43 +03:00
|
|
|
\newcommand{\sreset} [1]{\fontsize{12}{12}\selectfont\rm\color{black}#1} % reset font style.
|
|
|
|
\newcommand{\spar} [0]{\par} % default paragraph break.
|
2023-10-13 20:05:50 +03:00
|
|
|
\newcommand{\sparn} [0]{\par\noindent} % default paragraph break without indent.
|
2023-08-01 19:38:43 +03:00
|
|
|
\newcommand{\stext} [1]{\sreset{#1}} % default text.
|
|
|
|
\newcommand{\sitallic} [1]{\textit{#1}} % itallic text.
|
|
|
|
\newcommand{\sbold} [1]{\textbf{#1}} % bold text.
|
|
|
|
\newcommand{\ssemibold} [1]{\fontseries{sb}{\selectfont{#1}}} % semi-bold text.
|
|
|
|
\newcommand{\sunderline}[1]{\underline{#1}} % underline text.
|
|
|
|
\newcommand{\slink} [2]{\href{#1}{\textcolor{link}{\sunderline{#2}}}} % link webpage.
|
|
|
|
\newcommand{\sname} [1]{\fontsize{21}{21}{\selectfont{\ssemibold{#1}}}} % name style.
|
|
|
|
\newcommand{\scolor} [2]{\textcolor{#1}{#2}} % text color alias.
|
|
|
|
\newcommand{\sicon} [1]{\raisebox{-1mm}{\includegraphics[height=5mm]{#1}}} % icons.
|
|
|
|
\newcommand{\shref} [1]{\hyperlink{#1}{\textcolor{link}{\sunderline{#1}}}} % reference section.
|
|
|
|
\newcommand{\sref} [1]{\textcolor{ref}{#1}} % reference text.
|
|
|
|
\newcommand{\slist} [1]{\textcolor{lgray}{#1}} % list numbers.
|
2023-08-02 14:10:43 +03:00
|
|
|
\newcommand{\sbullet} [0]{\raisebox{0.5mm}{\bullet}\hspace{4mm}} % list bullet symbol.
|
2023-08-01 19:38:43 +03:00
|
|
|
\newcommand{\stitle} [1]{\hypertarget{#1}{}\fontsize{11}{11}%
|
2023-08-02 14:10:43 +03:00
|
|
|
{\selectfont{\textcolor{main}{\ssemibold{#1}}}}} % section title.
|
2023-08-01 19:38:43 +03:00
|
|
|
|
|
|
|
\newcommand{\sblcompact}[0]{\renewcommand{\baselinestretch}{1.0}\normalsize} % compact baseline size.
|
|
|
|
\newcommand{\sbldefault}[0]{\renewcommand{\baselinestretch}{1.5}\normalsize} % default baseline size.
|
|
|
|
|
|
|
|
\newcommand{\scstring} [1]{\textcolor{code_string}{#1}} % color code string.
|
|
|
|
\newcommand{\scliteral} [1]{\textcolor{code_literal}{#1}} % color code literal.
|
|
|
|
\newcommand{\scproperty}[1]{\textcolor{code_property}{#1}} % color code property.
|
|
|
|
\newcommand{\sckeyword} [1]{\textcolor{code_keyword}{#1}} % color code keyword.
|
|
|
|
\newcommand{\sccomment} [1]{\textcolor{code_comment}{#1}} % color code comment.
|
|
|
|
|
2023-08-02 17:20:47 +03:00
|
|
|
\newcommand{\sjlink} [1]{\sicon{ic_link}\ \href{https://#1}{\sitallic{#1}}} % job webpage.
|
2023-08-01 19:38:43 +03:00
|
|
|
\newcommand{\sjplace}[2]{\sreset{\ssemibold{#1}}\sreset\hfill\fontsize%
|
2023-08-02 14:02:37 +03:00
|
|
|
{10}{10}\selectfont\textcolor{gray}{(#2)}} % job place.
|
2023-07-31 16:47:03 +03:00
|
|
|
|
|
|
|
% settings.
|
|
|
|
\linespread{1.5} % height between non-breaking lines.
|
|
|
|
\sloppy % correct word placement on newline.
|
|
|
|
\pagestyle{empty} % suppress default styles, i.e. page numbers.
|
|
|
|
\sbldefault % default baseline size.
|