Commit e6d26daa authored by Emilia Juda's avatar Emilia Juda

added required packages and fixed code line wrapping

parent 1aa4559a
......@@ -21,6 +21,7 @@ openany, % A chapter may start on either a recto or verso page.
\usepackage{lmodern}
\usepackage[english]{babel} % English please
\usepackage[final]{microtype} % Less badboxes
\usepackage[stable]{footmisc} % Footnotes in section titles
% \usepackage{kpfonts} %Font
......@@ -30,6 +31,7 @@ openany, % A chapter may start on either a recto or verso page.
\usepackage{graphicx} % Include figures
\usepackage{makeidx}
\usepackage{import}
\usepackage{subcaption}
%%% PAGE LAYOUT
%%%-----------------------------------------------------------------------------
......@@ -89,8 +91,9 @@ openany, % A chapter may start on either a recto or verso page.
\captionnamefont{\small\bfseries} % Font of the caption name
\captiontitlefont{\small\normalfont} % Font of the caption text
\changecaptionwidth % Change the width of the caption
\captionwidth{1\textwidth} %
% incompatible with subcaption package so commented out for now
%\changecaptionwidth % Change the width of the caption
%\captionwidth{1\textwidth} %
%%% ABSTRACT
%%%------------------------------------------------------------------------------
......@@ -172,6 +175,9 @@ openany, % A chapter may start on either a recto or verso page.
\usepackage{listings} % Display code / shell commands
\usepackage{lstautogobble}
%\newcommand{\shellcommand}[1]{\begin{lstlisting} \#1 \end{lstlisting}
\lstset{
breaklines=true
}
\lstdefinestyle{BashInputStyle}{
language=bash,
basicstyle=\small\ttfamily,
......@@ -184,6 +190,7 @@ openany, % A chapter may start on either a recto or verso page.
linewidth=0.95\linewidth,
xleftmargin=0.05\linewidth,
keepspaces=true,
breaklines=true,
framesep=5pt,
rulecolor=\color{black!30},
aboveskip=10pt,
......@@ -206,7 +213,8 @@ openany, % A chapter may start on either a recto or verso page.
morecomment=[s]{<!--}{-->},
commentstyle=\color{gray},
stringstyle=\color{orange},
identifierstyle=\color{darkblue}
identifierstyle=\color{darkblue},
breaklines=true
}
\lstdefinestyle{XMLStyle}{
language=XML,
......@@ -218,7 +226,8 @@ openany, % A chapter may start on either a recto or verso page.
columns=fullflexible,
backgroundcolor=\color{black!05},
linewidth=0.95\linewidth,
xleftmargin=0.05\linewidth
xleftmargin=0.05\linewidth,
breaklines=true
}
\lstdefinestyle{C++Style}{
language=C++,
......@@ -232,7 +241,8 @@ openany, % A chapter may start on either a recto or verso page.
linewidth=0.9\linewidth,
xleftmargin=0.1\linewidth,
showspaces=false,
showstringspaces=false
showstringspaces=false,
breaklines=true
}
\ifdefined\HCode
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment