Skip to content

Commit

Permalink
docs: Add blue section headings via titlesec package in SC/21.
Browse files Browse the repository at this point in the history
This is another break with style to "make it pretty" for Holly.
  • Loading branch information
MalcolmCurrie committed Jun 16, 2014
1 parent 809c5ed commit f461c16
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/sc/021/sc21.tex
Expand Up @@ -8,6 +8,7 @@
\usepackage{multirow}
\usepackage{longtable}
\usepackage{color}
\usepackage{titlesec}
\usepackage{enumitem}
% ? End of specify used packages
\pagestyle{myheadings}
Expand Down Expand Up @@ -190,6 +191,8 @@

\definecolor{gray}{RGB}{200,200,200}
\definecolor{MidnightBlue}{rgb}{0.1, 0.1, 0.44}
\definecolor{bblue}{RGB}{172,207,230}
\definecolor{bblue2}{RGB}{213,236,252}

% A new environment for quoting verbatim
% Environment for indenting and using a small font.
Expand All @@ -198,6 +201,25 @@
\end{small}\end{quote}
}

%\renewcommand{\familydefault}{\sfdefault}

\newcommand{\colorsection}[1]{%
\colorbox{bblue}{\parbox{\dimexpr\textwidth-2\fboxsep}{\vspace{0.02cm}\hspace{0.01cm}\thesubsection\vspace{0.01cm}\hspace{0.5cm} #1}}}

\titleformat{name=\subsection}[block]
{\rmfamily\Large\bfseries}
{}
{0pt}
{\colorsection}
\titlespacing*{\subsection}{0pt}{20pt}{\baselineskip}

\titleformat{\section}[display]
{\normalfont\huge\bfseries}
{}
{0pt}
{\thesection\hspace{0.8cm}}
\titlespacing*{\section}{0pt}{0pt}{20pt}

% Shortcuts
% ---------

Expand Down

0 comments on commit f461c16

Please sign in to comment.