This repository has been archived by the owner on Dec 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdwms.sty
49 lines (43 loc) · 1.4 KB
/
dwms.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
% Packages imported by the style with some configuration for certain packages
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[a4paper, margin=0.75in]{geometry}
\usepackage{enumitem}
\usepackage[colorlinks=true, linkcolor=black, citecolor=black, urlcolor=blue]{hyperref}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage[round]{natbib}
\usepackage{fancyvrb}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{float}
\usepackage{tabularx, makecell}
\usepackage{pdfpages}
\usepackage[bottom]{footmisc}
\usepackage{caption}
% -
% Configuration
% Change font to Palatino
\renewcommand{\rmdefault}{ppl}
% Change the list item spacing
\setlist{noitemsep}
% Set the bibliography style
\bibliographystyle{usw}
% -
% Custom functions
% Set up an inline todo command
\newcommand{\todo}[1]{\textcolor{red}{todo: #1}}
% Set up a todo environment
\newenvironment{todoenv}
{\color{red}todo:}
{\color{black}}
% Set up a terminal command block
\definecolor{light-gray}{gray}{0.95}
\newcommand{\term}[1]{\colorbox{light-gray}{\texttt{#1}}}
% Set up a command to make title definitions for USW reports
% Usage: \uswreporttitle{modulecode}{moduletitle}{assessmenttitle}
\newcommand{\uswreporttitle}[3]{\title{#1\\{\textit{\small #2}}\\~\\#3}}
% Set up a command to make author definitions for USW reports
% Usage: \uswreportauthor{name}{id}
\newcommand{\uswreportauthor}[2]{\author{#1\\{\LARGE #2}}}
%-