\ProvidesPackage{gmtb} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage{textcomp} \usepackage{pstricks} \usepackage{color} \usepackage{colortbl} \usepackage[automark,nouppercase]{scrpage2} %\usepackage{bera} \usepackage{baskervald} %\usepackage{helvet} %\usepackage{avant} \usepackage{lmodern} \usepackage{comment} \usepackage{vwcol} \usepackage{multicol} \usepackage{makeidx} \usepackage{listings} \usepackage{longtable} \usepackage{enumerate} \usepackage{caption} \usepackage{array} \usepackage{float} \usepackage{chngcntr} \usepackage[a4paper,margin=1.0in,footskip=0.25in]{geometry} \usepackage{graphicx} \usepackage{enumitem} \usepackage{epigraph} \usepackage{fix-cm} \usepackage[some]{background} \usepackage{dirtree} \usepackage{etoolbox} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{hyperref} \usepackage{rotating} \usepackage{xfrac} % Colours \definecolor{white}{rgb}{1.0,1.0,1.0} \definecolor{lightgray}{rgb}{0.8,0.8,0.8} \definecolor{gray}{rgb}{0.5,0.5,0.5} \definecolor{darkgray}{rgb}{0.2,0.2,0.2} \definecolor{black}{rgb}{0.0,0.0,0.0} \definecolor{blue}{rgb}{0.2,0.0,1.0} \definecolor{tpblue}{cmyk}{1,.60,0,.40} \hypersetup{ pdfauthor={}, pdftitle={}, pdfsubject={}, pdfkeywords={}, bookmarksnumbered=true, % Either of these.. I prefer the 2nd as this means % the colour of the text in the document overrides % whatever has been defined as urlcolor. colorlinks=true, urlcolor=blue, linkcolor=blue, %colorlinks=false, pdfborder={0 0 0} } \KOMAoptions{parskip=full} %\KOMAoptions{pagestyle=plain} % Define a font for the title, subtitles \DeclareFixedFont{\bigsf}{T1}{phv}{b}{n}{0.8cm} \DeclareFixedFont{\bigst}{T1}{phv}{b}{n}{0.6cm} % Define a background stripe for the title page %\backgroundsetup{ % scale=1, % angle=0, % opacity=1, % contents={\begin{tikzpicture}[remember picture,overlay] % \path [fill=tpblue] (-0.5\paperwidth,5) rectangle % (0.5\paperwidth,10); % \end{tikzpicture}} %} %\titleformat{hcommand}[hshape]{hformat}{hlabel}{hsep}{hbefore}[hafter] % \counterwithin{figure}{chapter} \renewcommand{\figureformat}{\figurename~\thefigure} \renewcommand{\tableformat}{\tablename~\thetable} %\renewcommand{\subsubsection}{\thesubsubsection.\alph{subsubsection}} %\pagestyle{plain} %Formatting for code listings \lstset{ %basicstyle=\footnotesize\fontfamily{qcr}\fontshape{n}\fontseries{l}\selectfont, basicstyle=\footnotesize\ttfamily, %basicstyle=\footnotesize\fontfamily{txtt}, stepnumber=1, showstringspaces=false, tabsize=1, breaklines=true, breakatwhitespace=false, keywordstyle=\bfseries\color{green!40!black}, commentstyle=\color{purple!40!black}, identifierstyle=\color{blue}, stringstyle=\color{orange}, } % Commands for writing code \newcommand{\exec}[1]{% What to type and execute {\small\ttfamily\fontshape{n}\fontseries{bx}\selectfont{#1}}} %{\small\fontfamily{txtt}\fontshape{n}\fontseries{b}\selectfont{#1}}} %{\small\fontfamily{qcr}\fontshape{n}\fontseries{bx}\selectfont{#1}}} \newcommand{\execout}[1]{% Output on a terminal {\small\ttfamily\fontshape{n}\fontseries{m}\selectfont{#1}}} %{\small\fontfamily{txtt}\fontshape{n}\fontseries{l}\selectfont{#1}}} %{\small\fontfamily{qcr}\fontshape{n}\fontseries{l}\selectfont{#1}}} \newcommand{\execsub}[1]{% Variable that needs subsituting {\small\ttfamily\fontshape{sl}\fontseries{m}\selectfont{#1}}} %{\small\fontfamily{txtt}\fontshape{sl}\fontseries{m}\selectfont{#1}}} %{\small\fontfamily{qcr}\fontshape{sl}\fontseries{m}\selectfont{#1}}} %\newcommand{\vf}[1]{% Variable in a file %{\fontfamily{cmss}\fontshape{sl}\fontseries{m}\selectfont{#1}}} % Create macro's for table font/style \newcolumntype{+}{>{\global\let\currentrowstyle\relax}} \newcolumntype{^}{>{\currentrowstyle}} \newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}% #1\ignorespaces } % Squeeze all the space out of lists \setlist{noitemsep,topsep=0pt,parsep=0pt,partopsep=0pt} % Shorthand degree symbol \newcommand{\dgr}{$^{\circ}$} % Additional space between a horizontal line in a table and the next line \newcommand{\hlinesep}{\rule[1ex]{0pt}{1.25ex}} \newcommand{\TODO}[1]{\marginpar{\textbf{\red !}}\textbf{\red #1}} % Change the default font to be Sans Serif %\renewcommand{\familydefault}{\sfdefault} \sloppy