-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(header.tex): adding style to pdfs
- Loading branch information
1 parent
4391cc5
commit 768992a
Showing
6 changed files
with
64 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
\usepackage{geometry} | ||
\usepackage{titlesec} | ||
|
||
\definecolor{main}{RGB}{0, 0, 0} | ||
\definecolor{highlight}{RGB}{255, 80, 0} | ||
\definecolor{sechighlight}{RGB}{200, 150, 0} | ||
\definecolor{bgcolor}{RGB}{230, 230, 230} | ||
|
||
% reduce margin size | ||
\geometry{margin=2cm} | ||
|
||
% Text highlight color (backtick) | ||
\let\oldtexttt\texttt | ||
\renewcommand{\texttt}[1]{% | ||
\colorbox{bgcolor}{\color{highlight}\oldtexttt{#1}} | ||
} | ||
|
||
% Sections title color | ||
\titleformat{\section} | ||
{\normalfont\Large\bfseries\color{sechighlight}} | ||
{\thesection}{1em}{} | ||
|
||
\titleformat{\subsection} | ||
{\normalfont\large\bfseries\color{sechighlight}} | ||
{\thesubsection}{1em}{} | ||
|
||
\titleformat{\subsubsection} | ||
{\normalfont\large\bfseries\color{sechighlight}} | ||
{\thesubsection}{1em}{} | ||
|
||
% IncludeGraphics background color, center | ||
\let\oldincludegraphics\includegraphics | ||
\renewcommand{\includegraphics}[2][]{% | ||
\begin{center} | ||
\colorbox{bgcolor}{\oldincludegraphics[#1]{#2}} | ||
\end{center} | ||
} | ||
|
||
% Code background color | ||
\let\oldverbatim\verbatim | ||
\renewcommand{\verbatim}{\colorbox{bgcolor}\oldverbatim} | ||
|
||
% Hypertext color and underline | ||
\hypersetup{colorlinks=true, linkcolor=highlight, urlcolor=highlight} | ||
\let\oldhref\href | ||
\renewcommand{\href}[2]{\oldhref{#1}{\underline{\color{highlight}#2}}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters