-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschool-report.tex
executable file
·89 lines (72 loc) · 2.89 KB
/
school-report.tex
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
% [FILENAME]
% Author: [AUTHOR]
% Created: [DATE]
% Updated: [DATE]
% Description: [DESCRIPTION]
% This part is used for https://github.com/hussein-esmail7/template-maker
% templateDescription: 3 - School Report LaTeX Template
% This file can be found at https://github.com/hussein-esmail7/templates
% =========================== Variables ===========================
\def\myStudentNum {} % TODO: Student number here
\def\myCourse {} % TODO: Course (+ section if required)
\def\mySubject {} % TODO: PDF subjects
\def\myKeywords {} % TODO: PDF keywords, sep. by comma
\def\myName {[AUTHOR]} % Author of this file
\def\myDate {[DATE]} % Date on cover page
\def\myTitle {[FILE FRONT]} % Title on cover page
% =========================== Variables ===========================
% =========================== Shortcuts ===========================
\newcommand{\comment}[1]{} % Multiline comments
\newcommand{\image}[1]{[\textbf{IMAGE MISSING #1}]} % #1 is the descriptor about the image
\newenvironment{itemize*}{\begin{itemize}\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}{\end{itemize}}
\newenvironment{enumerate*}{\begin{enumerate}\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}{\end{enumerate}}
\newcommand{\myAuthor}{\myName{} \myStudentNum{}} % Author format
% =========================== Shortcuts ===========================
\documentclass{article}
\title{\vspace{-3cm} \\ \myTitle}
\author{\myAuthor}
\date{\myDate}
\usepackage{hyperref} % Used for adding PDF metadata
\usepackage{listings} % Used for blocks of code
\usepackage{graphicx} % Used for adding images
\usepackage{listings} % Used for blocks of code
\graphicspath{{./}} % Import images that are in the same folder as this .tex file
\hypersetup{
colorlinks=true,
urlcolor=blue, % URL colors (\href{}{})
linkcolor=black, % TOC colors
pdfborder={0 0 0},
pdftitle={\myTitle},
pdfauthor={\myAuthor},
pdfsubject={\mySubject},
pdfkeywords={\myKeywords}
}
\lstset{ % Coding block configuration
basicstyle=\ttfamily,
frame=single,
breaklines=true
}
% Prevent word hyphenation
\tolerance=1
\emergencystretch=\maxdimen
\hyphenpenalty=10000
\hbadness=10000
\begin{document} % Official beginning of the document.
% \pagenumbering{roman} % Use roman numbers before the start of the script so that page numbers are the same as the real script
\maketitle % Make title page
\newpage % Insert a page break
\tableofcontents % Makes TOC
\newpage % Insert a page break
% \pagenumbering{arabic} % Brings the normal numbers back
\flushleft
\section{Introduction}
% TODO: Purpose of this document here
\section{Question 1}
% TODO: Question 1 content here
\section{Question 2}
% TODO: Question 2 content here
\section{Question 3}
% TODO: Question 3 content here
% Template line so formatting is faster
% \section{Question _}
\end{document}