2015-06-17 15:05:40 -04:00
|
|
|
\documentclass{article}
|
|
|
|
\usepackage{minted}
|
|
|
|
\begin{document}
|
|
|
|
|
|
|
|
\begin{lstlisting}
|
|
|
|
testing
|
|
|
|
\end{lstlisting}
|
|
|
|
|
|
|
|
\begin{align}
|
|
|
|
f(x) = 0
|
|
|
|
\end{align}
|
|
|
|
|
|
|
|
\begin{equation}
|
|
|
|
f(x) = 0
|
|
|
|
\end{equation}
|
|
|
|
|
|
|
|
\begin{quote}
|
|
|
|
test
|
|
|
|
\end{quote}
|
|
|
|
|
|
|
|
\begin{dot2tex}
|
2016-03-23 17:21:37 -04:00
|
|
|
graph graphname {
|
|
|
|
a -- b;
|
2015-06-17 15:05:40 -04:00
|
|
|
b -- c;
|
|
|
|
b -- d;
|
|
|
|
d -- a;
|
|
|
|
}
|
|
|
|
\end{dot2tex}
|
|
|
|
|
2016-08-07 16:16:14 -04:00
|
|
|
\begin{gnuplot}[terminal=..., terminaloptions=...]
|
2016-08-07 07:24:09 -04:00
|
|
|
plot file using 1:2 with lines
|
2016-08-07 16:16:14 -04:00
|
|
|
\end{gnuplot}
|
2016-08-07 07:24:09 -04:00
|
|
|
|
2015-06-17 15:05:40 -04:00
|
|
|
\begin{minted}{python}
|
|
|
|
def function(arg):
|
|
|
|
pass
|
|
|
|
\end{minted}
|
|
|
|
|
2015-07-05 15:30:47 -04:00
|
|
|
\begin{cppcode}
|
2015-07-04 03:36:32 -04:00
|
|
|
int main() {
|
|
|
|
printf("hello, world");
|
|
|
|
return 0;
|
|
|
|
}
|
2015-07-05 15:30:47 -04:00
|
|
|
\end{cppcode}
|
|
|
|
|
|
|
|
\begin{cppcode_test}
|
|
|
|
int main() {
|
|
|
|
printf("hello, world");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
\end{cppcode_test}
|
|
|
|
|
|
|
|
\begin{cppcode*}{a=0,
|
|
|
|
b=1}
|
|
|
|
int main() {
|
|
|
|
printf("hello, world");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
\end{cppcode*}
|
2015-07-04 03:36:32 -04:00
|
|
|
|
2015-06-17 15:05:40 -04:00
|
|
|
\begin{minted}{c}
|
|
|
|
int main() {
|
|
|
|
printf("hello, world");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
\end{minted}
|
|
|
|
|
|
|
|
\begin{minted}[mathescape,
|
|
|
|
linenos,
|
|
|
|
numbersep=5pt,
|
|
|
|
gobble=2,
|
|
|
|
frame=lines,
|
|
|
|
framesep=2mm]{csharp}
|
|
|
|
string title = "This is a Unicode π in the sky"
|
|
|
|
/*
|
|
|
|
Defined as $\pi=\lim_{n\to\infty}\frac{P_n}{d}$ where $P$ is the perimeter
|
|
|
|
of an $n$-sided regular polygon circumscribing a
|
|
|
|
circle of diameter $d$.
|
|
|
|
*/
|
|
|
|
const double pi = 3.1415926535
|
|
|
|
\end{minted}
|
|
|
|
|
2015-09-19 15:57:47 -04:00
|
|
|
% Urls and hrep
|
|
|
|
\url{http://www.google.com}
|
|
|
|
\url+http://www.google.com+
|
2016-09-13 16:04:06 -04:00
|
|
|
\href{http://example.com}{Title text $with math$}
|
2015-09-19 15:57:47 -04:00
|
|
|
\urldef{\mysite}\url{http://example.com}
|
2016-03-23 17:21:37 -04:00
|
|
|
\hyperref[asdasd]{asd}
|
2015-09-19 15:57:47 -04:00
|
|
|
|
2016-12-28 06:58:01 -05:00
|
|
|
% Cite commands
|
2016-12-29 13:25:11 -05:00
|
|
|
\cite{}
|
2016-12-28 06:58:01 -05:00
|
|
|
\citet*{}
|
2017-01-04 06:37:36 -05:00
|
|
|
\citep{bibtexkey1}
|
|
|
|
\citep[e.g.][]{bibtexkey2}
|
2016-12-28 06:58:01 -05:00
|
|
|
\citealt{}
|
|
|
|
\citealt*{}
|
|
|
|
\citealp{}
|
|
|
|
\citealp*{}
|
|
|
|
\citenum{}
|
|
|
|
\citetext{}
|
|
|
|
\citeauthor{}
|
|
|
|
\citeauthor*{}
|
|
|
|
\citeyear{}
|
|
|
|
\citeyearpar{}
|
2016-12-29 13:25:11 -05:00
|
|
|
\bibentry{}
|
2016-12-28 06:58:01 -05:00
|
|
|
|
2015-06-17 15:05:40 -04:00
|
|
|
\end{document}
|
2015-09-19 15:57:47 -04:00
|
|
|
|
|
|
|
% vim: fdl=9
|
|
|
|
|