-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.tex
80 lines (65 loc) · 1.91 KB
/
demo.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
\begin{equation}line(x) = the end\end{equation}
% TODO
% these lines should work but currently don't
% \verb{normal%withcomments{wow get out\}}
% \pysplice:
% print('\n'.join(['\\newcommand{\cal%s}{\mathcal{%s}}'
% % (c, c) for c in ['F', 'G', 'H', 'I', 'D', 'B']]))
\title{a Title: for you}
\notanenvironment\colon
% \newcommand{\mycommand}[1]{\textbf{#1}}
% \let: \mycommand{arg} = \textbf{arg} % backslash is optional
\begin{document}
The document environment is the only one which doesn't need to be indented.
\section{Some Words}
Here are some words that are in this section.
Math is fun, so here's an equation: %hello
\begin{equation}
f(x) = x^2 + 3
\end{equation}
34
\begin{equation}f(x) = \textbf{one}Liner with inline commands % even in-line comments!\end{equation}
We might want to give our equation a label, like this:
\begin{equation}\label{eq:cubic}
f(x) = x^3 - 4x^2 + 2
\end{equation}
\begin{equation}
random me
\end{equation}
you
Or start at the \textbf{middle} of a \begin{equation}line(x) = the end\end{equation}
Or over multiple lines:
\begin{equation}\label{eq:cubic}
f(x) = x^3 - 4x^2 + 2
\eq:
hi
there
meeee % woah
me
g(x) = f
\end{equation}
% \itemize:
% \eq:
% 2 nested
% \pysplice:
% print("2\n2\n2\n2")
% \eq:
% \pysplice:
% print("3\n3\n3\n3")
% print("me too")
% \pysplice:
% print("3\n3\n3\n3")
% 3
% \eq:
% \eq:
% \pysplice:
% print("5\n5\n5\n5")
% 5
% 4
% \pysplice:
% print("3\n3\n3\n3")
% 2 nested
% 1 nested
We can reference our equation with Equation \ref{eq:cubic}.
This is automatically joined with the non-breaking space \verb{~}.
\end{document}