aboutsummaryrefslogtreecommitdiff
path: root/tex/src/preamble-project.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/src/preamble-project.tex')
-rw-r--r--tex/src/preamble-project.tex61
1 files changed, 61 insertions, 0 deletions
diff --git a/tex/src/preamble-project.tex b/tex/src/preamble-project.tex
new file mode 100644
index 0000000..e14fbf6
--- /dev/null
+++ b/tex/src/preamble-project.tex
@@ -0,0 +1,61 @@
+%% Import graphics
+\usepackage{graphicx}
+
+%% IEEEtran V1.6 and later pre-defines the format of the cite.sty package
+%% \cite{} output to follow that of the IEEE.
+\usepackage{cite}
+
+%% For the `\url' command.
+\usepackage{url}
+
+%% No need to load xcolor, its included by others below (it conflicts with
+%% the listings package.
+%\usepackage{xcolor}
+
+%% To have links.
+\usepackage[
+ colorlinks,
+ urlcolor=gray,
+ citecolor=gray,
+ linkcolor=gray,
+ linktocpage]{hyperref}
+\renewcommand\UrlFont{\rmfamily}
+
+%% To have typewriter font
+\usepackage{courier}
+
+%% To have bold monospace
+%\usepackage[scaled=0.85]{beramono}
+\usepackage{inconsolata}
+
+%% To display codes.
+\usepackage{listings}
+\usepackage{etoolbox}
+\input{listings-bash.prf}
+\lstset{
+ frame=lines,
+ numbers=none,
+ language=bash,
+ commentstyle=\color{gray},
+ abovecaptionskip=0mm,
+ belowcaptionskip=0mm,
+ keywordstyle=\mdseries,
+ basicstyle=\small\ttfamily\color{blue!35!black},
+}
+\makeatletter
+\preto\lstlisting{\def\@captype{table}}
+\lst@AddToHook{OnEmptyLine}{\vspace{-0.5\baselineskip}}
+\pretocmd\lst@makecaption{\noindent{\rule{\linewidth}{1pt}}}{}{}
+\makeatother
+
+
+
+
+
+%% Custom macros
+\newcommand{\inlinecode}[1]{\textcolor{blue!35!black}{\texttt{#1}}}
+
+
+\newcommand\eprint[1]{\href{https://arXiv.org/abs/#1}{{arXiv:#1}}}
+
+\newcommand\doi[1]{\href{https://oadoi.org/#1}{{DOI:#1}}}