-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.hltex
75 lines (61 loc) · 1.72 KB
/
demo.hltex
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
\eq: line(x) = the end
% 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
===
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
\eq:
f(x) = x^2 + 3
\pysplice:
print("34")
\eq: f(x) = \textbf{one}Liner with inline commands % even in-line comments!
We might want to give our equation a label, like this:
\eq[cubic]:
f(x) = x^3 - 4x^2 + 2
\equation:
random me
you
Or start at the \textbf{middle} of a \eq: line(x) = the end
Or over multiple lines:
\eq[cubic]:
f(x) = x^3 - 4x^2 + 2
\eq:
hi
there
meeee % woah
me
g(x) = f
% \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{~}.