I've Started A New Project!It's called Recompiled and it's where I'll be writing more about technology, software, and history. Follow it on Twitter @recompiledco to know when new articles are published.
12 February 2014
Doing Your Homework in LaTeX
It is a common occurrence for other students to comment on my homework whenever I turn it in for one of my classes.
Below are a few screenshots of problems that I’ve done in the past:
If I didn’t know how easy it was and the benefits that I get from typesetting my homework, I’d probably ask as well. However, I’d argue that using LaTeX to type up homework has made me a far better student than when I used to handwrite my homeworks.
And that is something that I care a lot about.
I can summarize the benefits like so:
It can be kept in Source Control. Handwriting can’t be stored in a version control system; once you erase something, it’s gone.
You can see your homework materialize in front of you. Seeing the results and the equations in their complete LaTeX-glory is a very powerful way to conceptualize things. There’s just something different about the way things look so perfect that makes the subject easier to understand.
You’ll do better in your classes. This one goes with the previous point, but having the ability to see your homework helps you understand it. By understanding it well, you’ll do better on tests. You will maximize how much you can learn as well as maximize your grade (if that matters to you).
It’s very neat & tidy. Although my handwriting has improved quite a bit, I still find myself slipping back into a rushed, messy script from the past. LaTeX gives zero doubt that the professor/TA will be able to read my solutions.
A Very Short History
It is a piece of typesetting software that aids in writing documents and formulas. The power comes from the fact that the document that you write is plain source code.
The code that you write is then “typeset” into the final document in whatever form you wish.
Here’s an example of some basic LaTeX code:
With the output looking like below:
Using the Template
After that, you just need to compile it and you’ll get your output. There are tons of different resources that I’ve found useful in learning LaTeX:
Affect on Performance
I have a solid set of anecdotal evidence in favor of using LaTeX for writing up my homework.
In all the classes that I’ve used LaTeX, I’ve come out of the class with a very strong understanding of the material as well as a good grade. Although I’m not a big fan of grades (like at all), I know it matters to some people.
This might have to do with the fact that doing the homework in LaTeX takes longer. It might have to do with the fact that I perfect the appearance and spend a lot more time looking at the subject.
The most likely reason is a combination of all that I previously mentioned plus other factors. I’m usually one to always want to quantify something, but in this case, I know it helps; that’s all I need.
There definitely is a learning curve when it comes to trying to use LaTeX for homework. I felt that it was definitely worth the effort unlike how it might seem to some students.
I reasoned that when I go to graduate school, I will want to use it there. I also know how pervasive it is in textbooks. Since I love to read textbooks so much, I wanted to see what it took to write them so elegantly. I may even want to write one in the future; we’ll have to see =]
To me it seemed like a small tradeoff for the great benefits that it provided.
I cannot recommend using LaTeX for your homework enough.
The benefits go a long way. It helps you learn the material and in a way that isn’t as easily achieved when just using pencil and paper.
LaTeX is also widely used in academia and learning about the tool is almost essential if you wish to go to graduate school.
Once I graduate from university, I plan on releasing all my code for the last three semesters as open source. It includes all my LaTeX code which has really accumulated over the last year. It should provide a nice resource for others.
In the meantime, hopefully if you start using LaTeX for your homework, you won’t be able to resist doing it early because of how fun it is. Well, at least it was fun for me =]