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.
The complete LaTeX file (and the pdf output) can be found in my repository, latex-homework-template .
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.
The Benefits
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.
About LaTeX
A very short history.
Donald Knuth , a legendary Computer Scientist as well as one of my favorites, is well known for the system that he created called just TeX .
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
I’ve created a GitHub repository, latex-homework-template , just for my homework template that I’ve been using ever since I started. I found it online and used it as a base to start my template.
To use it, just download the homework.tex file and start editing. Once you need to typeset it, you’ll need LaTeX here .
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:
TeX StackExchange
LaTeX Wikibook
Effect 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.
Learning Curve
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 =]
Example math homework (with solutions)
Sample LaTeX files for homework questions, with solutions, created by Chris Rycroft.
Source: http://people.seas.harvard.edu/~chr/104.S12/hw/
This example was originally published on ShareLaTeX and subsequently moved to Overleaf in October 2019.
Get in touch
Have you checked our knowledge base ?
Message sent! Our team will review it and reply by email.
Email:
COMMENTS
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. The complete LaTeX file (and the pdf output) can be found in my repository, latex-homework-template. Below are a few screenshots of problems that I've done in the past:
Need easily formatted and good looking math homework? In this video I demonstrate how I write my homework in LaTeX.LaTeX is a text setting language which all...
5. My probability professor suggested us to try to use LaTeX for the homework. I have successfully wrote my first LaTeX project (5 pages). However, no one except me used LaTeX in that course. I spent 1 hour to do the homework on paper but 5 hours to convert it into LaTeX document (to debug, check math symbols).
View PDF. Author. Kathleen Schmit. Last Updated. 7 years ago. License. LaTeX Project Public License 1.3c. Abstract. I had to relearn LaTeX to turn in my real analysis homework last night, so I made it into a template in case others are in the same situation.
5. Here's one possibility: The first page of the resulting document: I defined some commands \idnumber and \classname for the ID number and the class name; the \makeheader command typesets the information for these two commands and \author, \title with the desired formatting.
I do most of my homework in latex. The slower pace seems helpful in not making careless mistakes that come from writing too fast. In large equations its also much easier to keep track of all the expressions. However, if I get a problem i don't immediately know how to solve i will usually try to solve it on paper first before committing it to latex.
Last Updated. a year ago. License. Creative Commons CC BY 4.0. Abstract. This is a template for completing homework assignments. It includes examples of how to use the template and how to type up various types of assignments. Tags. Assignments University.
Using LaTex to do homework is neat, but completly unnecessary. At no point should a class force the students to use LaTex. There is no such thing as too early. There's also no such thing as too late for in-person classes, provided the work is legible.
LaTeX-typeset homework sets are easier to archive. This can simplify reviewing material before exams. It also means you'll have an electronic copy of your work even after you've submitted a hardcopy for grading. 2. LaTeX documents are easier to share electronically.
An online LaTeX editor that's easy to use. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more.