HW Typesetting
HW Typesetting
Many of the symbols/commands are identical (but you may also create shortcuts in Latex). In
Word, you will need to press space to see the command converted to the symbol sometimes.
It is recommended to use the equation editor (in word and latex) to do any numerics (even
for numbers and single letters for events). (e.g, 9 vs. 9, let E be an event vs. let 𝐸 be an event).
Important: To box your answer in Latex (not Word), use \fbox{$[answer in equation]$}. There
isn’t a way to do it easily/naturally in Word, but you could create a one-cell table (not required) or
simply highlight in yellow (easier).
Use the following LaTeX shortcuts (you can paste at the top of your Latex source; they’re
already there in the template). Of course you can create your own too!
\newcommand{\N}{\mathbb N}
\newcommand{\E}{\mathbb E}
\newcommand{\V}{Var}
\newcommand{\P}{\mathbb P}
\newcommand{\f}{\frac}
Word vs Latex
Josh’s Opinion:
Personally, I use a lot of scratch paper when figuring out how to solve a problem. Since my draft
paper is often riddled with eraser marks and failed attempts (haha), I then transcribe it to LaTeX,
on the sharelatex.com platform. Word also works, but I’m less efficient with it since I don’t know
the shortcuts well. We’re totally fine with Word, LaTeX, or legible handwriting, but LaTeX is
worth learning since it’s standard for CS research. If you’re typing your homework, please reserve
enough time (it takes longer than you think)! Also, if using LaTeX, make sure to compile
frequently, since it’s easy to make a typo and end up with annoying compilation errors.
Alex’s Opinion:
Word and Latex generally have the same appearance in terms of equations, but Latex probably
looks a little better to you. I personally like using Word only because the formatting is easier and
most importantly, there is live compilation. If I am typing my homework while doing it (rather
than handwriting it then typing it), it is very hard for me to keep my train of thought in Latex since
I have to compile it each time I want to see what I just wrote. Believe me, it is almost impossible to
read the Latex source directly and be able to process it quickly. Word has the advantage that you
immediately see what you type, and so I can do homework directly from Word with no issues and
compiling. Latex errors are generally also harder to debug and more annoying, while Word won’t
give any errors. So it’s up to you – use Word if you want to type homework simultaneously while
doing the homework, Latex if you want to handwrite first and then typeset, or handwrite and scan
your homework if you aren’t comfortable with typesetting. If you know how to use one, you
basically know the other! I personally reserve using Latex for bigger and more formal
projects/papers, as it takes more time with the compilation.
Page 4
Extra Notes:
1. If you want to have plain text (not italicized) inside equation mode, as below:
𝑎2 = 𝑏[bydefinition]
Word: a^2=b [“by definition” [+space to remove the quotes and apply formating] ]
Latex: a^2=b [\text{by definition}]
2. In Word, if you start an equation on a new line, it automatically centers. If you want it to left-
align, simply type anything outside of equation mode after (easiest way is a space).