forked from TJDevClub/LaTeX-Intro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
75 lines (48 loc) · 1.31 KB
/
main.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
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\graphicspath{ {resources/} }
\usepackage{minted}
\usepackage{verse}
\usepackage{epigraph}
\setlength{\epigraphwidth}{0.25\textwidth}
\title{Lesson}
\author{Rushi Shah}
\date{May 2016}
\begin{document}
\maketitle
\epigraph{I look like a thumb.}{Kathryn Wen}
\section{Formatting}
Lists:
\begin{itemize}
\item \textit{Italics}
\item \textbf{Bolding}
\end{itemize}
\section{Poetry??}
\begin{verse}
The yellow banana \\
\vin Peel \ldots \\!
The green apple \\
\vin Munch! \\!
The aggressive pineapple \\
\vin \textbf{Ouch}; \\!
Spongebob, squarepants.
\end{verse}
\section{Images}
\includegraphics[height=3in]{pineapple}
\section{Math}
Math is hard. The Pythagorean theorem inline is \(x^2 + y^2 = z^2\). If you want to make a bigger deal about it, you can also do:
\[a^2 + b^2 = c^2\]
\section{Code}
Syntax highlighting looks fancy. This is a bit of code we wrote earlier this year:
\begin{minted}{javascript}
app.get('/greet/:name', function(req, res){
res.send("Hello there, " + req.params.name + ".");
});
var server = app.listen(process.env.PORT, function () {
var host = server.address().address;
var port = server.address().port;
console.log('Example app listening at http://%s:%s', host, port);
});
\end{minted}
\end{document}