Skip to content

Instantly share code, notes, and snippets.

@jbdrvl
Last active January 21, 2019 16:44
Show Gist options
  • Select an option

  • Save jbdrvl/bc497ebbf4d3d340cedfb7934451c2cd to your computer and use it in GitHub Desktop.

Select an option

Save jbdrvl/bc497ebbf4d3d340cedfb7934451c2cd to your computer and use it in GitHub Desktop.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% LaTeX TEMPLATE - Project/Research Report
%
% This original template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author of the Title page:
% WikiBooks (http://en.wikibooks.org/wiki/LaTeX/Title_Creation)
% License: CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
% Content (apart from Title page) from github.com/jbdrvl
% License: CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt,a4paper]{article}
\usepackage[english]{babel} % can switch language here
\usepackage[utf8x]{inputenc}
\usepackage{graphicx}
\usepackage{listings} % code snippets
%\usepackage{glossaries} % glossary (\gls{})
\usepackage{float} % positioning figures
\usepackage{hyperref} % \url{}
\usepackage[bottom]{footmisc} % footnotes
\usepackage{ragged2e}
%\makeglossaries
%\newglossaryentry{NIST}{name=NIST, description={National Institute of Standards and Technology - US agency promoting technical innovation, also implementing globally used cybersecurity frameworks and guidelines}}
\begin{document}
\begin{titlepage}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\center
\textsc{\LARGE Institution}\\[1.5cm]
\textsc{\Large Major Heading - Course Name}\\[0.5cm]
\textsc{\large Minor Heading - Course Title}\\[0.5cm]
\HRule \\[0.4cm]
{ \huge \bfseries Document Title}\\[0.4cm]
\HRule \\[1.5cm]
\Large \emph{Author:}\\
First Name\textsc{Last Name}\\[3cm]
{\large \today}\\[2cm] % Change the \today to a set a specific date
%\includegraphics{logo.jpg}\\[1cm] % LOGO
%----------------------------------------------------------------------------------------
\vfill % Fill the rest of the page with whitespace
\end{titlepage}
\begin{abstract}
This is the abstract.
\end{abstract}
\tableofcontents
\newpage
\section{Introduction}
This is the introduction.
%\newpage
\section{First Section}
% Example of glossary entry: \gls{NIST}.
\subsection{One subsection}
Citation: UK National Cyber Security Centre\cite{ncscuk}.
\subsection{Another subsection}
Now, if you are working with code, you can add some as well, just like this:
\begin{lstlisting}[language=python,frame=leftline]
import sys
def hello(n):
for _ in range(n): print("Hello World!")
try:
nbr = int(sys.argv[1])
except:
nbr = 5
hello(5)
\end{lstlisting}
\newpage
\section{Another section!?}
Code is cool, but we can also add pictures.
Image with caption and long description:
\begin{figure}[H]
\centering
\includegraphics[width=1.0\textwidth]{image.png}
\caption{\label{image-label}Small Image Title}
\justify
Long Image Description.
\end{figure}
\newpage
\section{Conclusion}
This is the conclusion.
%\newpage
%\printglossary
%\newpage
\listoffigures
%\newpage
\begin{thebibliography}{1}
\bibitem{ncscuk}
UK National Cyber Security Centre.
\textit{Password Guidance: Simplifying Your Approach} (2016).
Available at \url{https://www.ncsc.gov.uk/guidance/password-guidance-simplifying-your-approach}.
\end{thebibliography}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment