summaryrefslogtreecommitdiff
path: root/docs/random/latex_handwriting.md
blob: f02bddf16f5aa5b7263e63e34033c995795e6ba8 (plain)
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
# Better Handwritten Math with LaTeX

2022-09-04

Argument: LaTeX improves your handwritten math.

Put more precisely: If you are a first-year undergrad in science or
engineering, practicing LaTeX is beneficial for your handwritten math.

I began learning LaTeX in high school for mostly trivial tasks. In
university however, my calculus professor awarded a 10% bonus to whichever
group submitted their assignment in LaTeX. Unless circumstances forbid,
I would be responsible for formatting my own and my teammates' handwriting
into LaTeX, and secure the bonus even if I was ignorant math-wise.

In the summer semester the same professor taught us linear algebra and
multivariable calculus, and the bonus remained in effect. Meanwhile, as an
experiment, I kept my linear algebra notes in LaTeX.

![First two pages of notes](img/latex_handwriting/linalg_notes.png)

Any LaTeX user knows there are two styles for math script: inline and
display. To use these two options wisely is part of what makes a document
"beautiful". For example, if I had an equation that looks like `x
= expression = another expression`, I will consider:

- How many equal signs are in there?
- If I wrote it inline, how wide will it be?

and, most importantly,

- Will I need to label individual steps?

This is a case where display is way better than inline:

![A chained equation in display and inline style](img/latex_handwriting/long_equation.png)

LaTeX is helpful here because you can always try again if you messed up.
I learned to avoid overfull hboxes, and formed many other typesetting
habits this way. I underwent the transition from quick & dirty scribbling
to structured logical statements (compared to whatever shit math I was
doing before).

The magical thing is, __these habits aren't constrained to the keyboard;
they will flow from your pentip also.__

Later this semester we had a midterm exam, where we had to write on paper.
I knew, with a little conscious thought, where or how large something
should be even without LaTeX. It was as if I was compiling a LaTeX
document from my head, except it was more like JIT interpreting. I would
remember to:

- Leave a margin
- Align equations by equal sign
- Label equations
- Make parentheses large enough
- Draw a tombstone after a finished proof
- Write the real set in `mathbb` style

Most of these are trivial, yes, but I believe they contributed to an
answer sheet that at least went easier on the eye. There were
significantly fewer scribbles and awkward linebreaks than I usually had in
high school.

Why is it so?

Hypothesis: Donald Knuth, Leslie Lamport, and the folks who made amsmath
were all virtually swimming in academia. They expected a math paper to
look a certain way, and when they designed the (La)TeX ecosystem they made
it the default. As such, when you are using LaTeX, you are basically
reusing a template made by top scholars. And when you write LaTeX, you go
their way by default. The error messages are super unintuitive, but if you
don't get any, you can be pretty sure you're doing things right.

Conclusion: LaTeX is not only a typesetting program for digital documents;
it helps you preprocess your mathemetical thoughts before you commit it to
any medium. If you practice LaTeX as a first-year undergrad, you will find
handwriting math easier and prettier on the first try.