From f62596ea8b97727ab8366965faf6f316d463ebf7 Mon Sep 17 00:00:00 2001
From: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Date: Sun, 26 Jan 2020 02:55:43 +0000
Subject: General project structure and configuration described

In the last few days I have been writing these two sections in the middle
of other work. But I am making this commit because it has already become a
lot! I am now going onto the description of `./project make'.
---
 tex/src/preamble-style.tex | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

(limited to 'tex/src/preamble-style.tex')

diff --git a/tex/src/preamble-style.tex b/tex/src/preamble-style.tex
index f3a96e9..fe36eec 100644
--- a/tex/src/preamble-style.tex
+++ b/tex/src/preamble-style.tex
@@ -20,6 +20,16 @@
 %% To see the layout, add a `\layout' right after `\begin{document}'.
 \usepackage{layout}
 
+%% To display codes.
+\usepackage{listings}
+\input{listings-bash.prf}
+\lstset{
+  frame=none,
+  commentstyle=\color{gray},
+  basicstyle=\small\ttfamily,
+}
+
+
 %% To allow a prefix to the enumeration.
 \usepackage{enumitem}
 \setlist{nolistsep}   % No space before `\begin{itemize}'
@@ -50,11 +60,11 @@
 %% Spacing before and after section titles.
 %% Format: \titlespacing*{<command>}{<left>}{<before-sep>}{<after-sep>}
 \usepackage{titlesec}
-\titlespacing*{\section}{0pt}{10pt plus 0pt minus 0pt}{0pt plus 0pt minus 0pt}
-\titlespacing*{\subsection}{0pt}{10pt plus 0pt minus 0pt}{0pt plus 0pt minus 0pt}
-\titlespacing*{\subsubsection}{0pt}{10pt plus 0pt minus 0pt}{0pt plus 0pt minus 0pt}
-\titleformat{\section}{\large\scshape\bf}{\thesection.{ }}{0pt}{}
-\titleformat{\subsection}{\bfseries\itshape}{\thesubsection.{ }}{0pt}{}
+\titlespacing*{\section}      {0pt}{10pt plus 0pt minus 0pt}{0pt plus 0pt minus 0pt}
+\titlespacing*{\subsection}   {0pt}{7pt plus 0pt minus 0pt} {0pt plus 0pt minus 0pt}
+\titlespacing*{\subsubsection}{0pt}{4pt plus 0pt minus 0pt} {0pt plus 0pt minus 0pt}
+\titleformat{\section}{\Large\scshape\bf}{\thesection.{ }}{0pt}{}
+\titleformat{\subsection}{\large\bfseries\itshape}{\thesubsection.{ }}{0pt}{}
 \titleformat{\subsubsection}{\bfseries\itshape}{\thesubsubsection.{ }}{0pt}{}
 
 %% Set the font.
@@ -124,3 +134,6 @@
  \renewcommand\headrulewidth{0.1pt}
  \renewcommand\footrulewidth{0.0pt}
 }
+
+%% Custom macros
+\newcommand{\inlinecode}[1]{`\textcolor{blue!35!black}{\texttt{#1}}'}
-- 
cgit v1.2.1

