Style : Use gruvbox colors for code.
This commit is contained in:
parent
2d2291936a
commit
4704863ec2
|
@ -8,13 +8,13 @@
|
||||||
\definecolor{ColorLgray}{RGB}{229,229,229}
|
\definecolor{ColorLgray}{RGB}{229,229,229}
|
||||||
\definecolor{ColorRef} {RGB}{53,82,105}
|
\definecolor{ColorRef} {RGB}{53,82,105}
|
||||||
|
|
||||||
\definecolor{ColorCodeBackground}{RGB}{40,42,54}
|
\definecolor{ColorCodeBackground}{RGB}{38,38,38}
|
||||||
\definecolor{ColorCodeText} {RGB}{248,248,242}
|
\definecolor{ColorCodeText} {RGB}{255,215,175}
|
||||||
\definecolor{ColorCodeString} {RGB}{80,250,123}
|
\definecolor{ColorCodeString} {RGB}{135,175,135}
|
||||||
\definecolor{ColorCodeLiteral} {RGB}{139,233,253}
|
\definecolor{ColorCodeLiteral} {RGB}{215,135,175}
|
||||||
\definecolor{ColorCodeProperty} {RGB}{139,233,253}
|
\definecolor{ColorCodeProperty} {RGB}{135,95,95}
|
||||||
\definecolor{ColorCodeKeyword} {RGB}{255,184,108}
|
\definecolor{ColorCodeKeyword} {RGB}{255,95,95}
|
||||||
\definecolor{ColorCodeComment} {RGB}{98,114,164}
|
\definecolor{ColorCodeComment} {RGB}{128,128,128}
|
||||||
|
|
||||||
% Code block.
|
% Code block.
|
||||||
\newtcolorbox{CodeBox}[1][]{
|
\newtcolorbox{CodeBox}[1][]{
|
||||||
|
@ -26,31 +26,34 @@
|
||||||
\newenvironment{Code}{\begin{CodeBox}\catcode33=12\obeylines}{\end{CodeBox}}
|
\newenvironment{Code}{\begin{CodeBox}\catcode33=12\obeylines}{\end{CodeBox}}
|
||||||
|
|
||||||
% Styles.
|
% Styles.
|
||||||
\newcommand{\ResetStyle}[1]{\fontsize{12}{12}\selectfont\rm\color{ColorBlack}#1} % Reset font style.
|
\newcommand{\ResetStyle}[1]{\fontsize{12}{12}\selectfont\rm\color{ColorBlack}#1}
|
||||||
\newcommand{\Par} [0]{\par} % Default paragraph break.
|
\newcommand{\Par} [0]{\par}
|
||||||
\newcommand{\Parn} [0]{\par\noindent} % Default paragraph break without indent.
|
\newcommand{\Parn} [0]{\par\noindent}
|
||||||
\newcommand{\Text} [1]{\ResetStyle{#1}} % Default text.
|
\newcommand{\Text} [1]{\ResetStyle{#1}}
|
||||||
\newcommand{\Itallic} [1]{\textit{#1}} % Itallic text.
|
\newcommand{\Itallic} [1]{\textit{#1}}
|
||||||
\newcommand{\Bold} [1]{\textbf{#1}} % Bold text.
|
\newcommand{\Bold} [1]{\textbf{#1}}
|
||||||
\newcommand{\Semibold} [1]{\fontseries{sb}{\selectfont{#1}}} % Semi-bold text.
|
\newcommand{\Semibold} [1]{\fontseries{sb}{\selectfont{#1}}}
|
||||||
\newcommand{\Underline} [1]{\underline{#1}} % Underline text.
|
\newcommand{\Underline} [1]{\underline{#1}}
|
||||||
\newcommand{\Link} [2]{\href{#2}{\textcolor{ColorLink}{\Underline{#1}}}} % Link webpage.
|
\newcommand{\Link} [2]{\href{#2}{\textcolor{ColorLink}{\Underline{#1}}}}
|
||||||
\newcommand{\Color} [2]{\textcolor{#1}{#2}} % Text color alias.
|
\newcommand{\Color} [2]{\textcolor{#1}{#2}}
|
||||||
\newcommand{\Icon} [1]{\raisebox{-1mm}{\includegraphics[height=5mm]{#1}}} % Icons.
|
\newcommand{\Icon} [1]{\raisebox{-1mm}{\includegraphics[height=5mm]{#1}}}
|
||||||
\newcommand{\Href} [1]{\hyperlink{#1}{\textcolor{ColorLink}{\Underline{#1}}}} % Reference section.
|
\newcommand{\Href} [1]{\hyperlink{#1}{\textcolor{ColorLink}{\Underline{#1}}}}
|
||||||
\newcommand{\TextRef} [1]{\textcolor{ColorRef}{#1}} % Reference text.
|
\newcommand{\TextRef} [1]{\textcolor{ColorRef}{#1}}
|
||||||
\newcommand{\Bullet} [0]{\Icon{IcBullet}\hspace{4mm}} % List bullet symbol.
|
\newcommand{\Bullet} [0]{\Icon{IcBullet}\hspace{4mm}}
|
||||||
\newcommand{\Title} [1]{\hypertarget{#1}{}\fontsize{11}{11}%
|
\newcommand{\End} [0]{\clearpage}
|
||||||
{\selectfont{\textcolor{ColorMain}{\Semibold{#1}}}}} % Section title.
|
\newcommand{\Title} [1]{\hypertarget{#1}{}\fontsize{11}{11}{\selectfont{\textcolor{ColorMain}{\Semibold{#1}}}}}
|
||||||
|
|
||||||
\newcommand{\BlCompact}[0]{\renewcommand{\baselinestretch}{1.0}\normalsize} % Compact baseline size.
|
\newcommand{\BlToc} [0]{\renewcommand{\baselinestretch}{0.75}\normalsize}
|
||||||
\newcommand{\BlDefault}[0]{\renewcommand{\baselinestretch}{1.5}\normalsize} % Default baseline size.
|
\newcommand{\BlCompact}[0]{\renewcommand{\baselinestretch}{1.0}\normalsize}
|
||||||
|
\newcommand{\BlDefault}[0]{\renewcommand{\baselinestretch}{1.5}\normalsize}
|
||||||
|
|
||||||
\newcommand{\CodeString} [1]{\textcolor{ColorCodeString}{#1}} % Color code string.
|
\newcommand{\CodeText} [1]{\textcolor{CodeText}{#1}}
|
||||||
\newcommand{\CodeLiteral} [1]{\textcolor{ColorCodeLiteral}{#1}} % Color code literal.
|
\newcommand{\CodeString} [1]{\textcolor{ColorCodeString}{#1}}
|
||||||
\newcommand{\CodeProperty}[1]{\textcolor{ColorCodeProperty}{#1}} % Color code property.
|
\newcommand{\CodeLiteral} [1]{\textcolor{ColorCodeLiteral}{#1}}
|
||||||
\newcommand{\CodeKeyword} [1]{\textcolor{ColorCodeKeyword}{#1}} % Color code keyword.
|
\newcommand{\CodeProperty}[1]{\textcolor{ColorCodeProperty}{#1}}
|
||||||
\newcommand{\CodeComment} [1]{\textcolor{ColorCodeComment}{#1}} % Color code comment.
|
\newcommand{\CodeKeyword} [1]{\textcolor{ColorCodeKeyword}{#1}}
|
||||||
|
\newcommand{\CodeComment} [1]{\textcolor{ColorCodeComment}{#1}}
|
||||||
|
\newcommand{\CodeEmptyLine}[0]{~}
|
||||||
|
|
||||||
% Settings.
|
% Settings.
|
||||||
\linespread{1.5} % Height between non-breaking lines.
|
\linespread{1.5} % Height between non-breaking lines.
|
||||||
|
|
Loading…
Reference in a new issue