-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.tex
38 lines (28 loc) · 973 Bytes
/
sample.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
\documentclass[11pt]{article}
\newcommand{\AUTHOR}{Satej Soman}
\newcommand{\TITLE}{Sample Document}
\newcommand{\CLASSNAME}{TeX Template}
\input{commons.tex}
\begin{document}
{\centering \textit{this document was compiled using LuaLaTeX.}
}
\section{this is what a section title looks like}
\subsection{and this is a subsection!}
\subsubsection{yes, we can go deeper}
This is what some plain text looks like.
\section{how about some math typesetting?}
\begin{align*}
\nabla \times \vec{E} = - \frac{\Partial{\vec{B}}}{\Partial{t}} &&
\op{det} \left( \begin{bmatrix} a & b \\ c & d \end{bmatrix} \right) = ad - bc &&
\Gamma(z) = \int_0^{\infty} t^{\,z-1} \cdot \op{exp}\left(-t\right) \,\D{t}
\end{align*}
\section{here's some typeset code}
\begin{lstlisting}[language=Python]
def fibonacci(x):
if x < 2:
return x
return fibonacci(x - 2) + fibonacci(x - 1)
if __name__ == "__main__":
print(fibonacci(25))
\end{lstlisting}
\end{document}