This is a "reference" solution for the sample math homework given below. It is
only one of many, many ways to accomplish this. In particular, this solution
differs from many solutions in that it uses a custom document class. This
custom document class is defined in the file homework.cls
, and we specify that
we want to use that class in the first line of written.tex
:
\documentclass{homework}
Normally, this is the more standard \documentclass{article}
, which is a
built-in document class.
You can read more about the homework
LaTeX class at this link.
The Makefile
contains a number of targets that let you compile the LaTeX file
to a PDF if you have pdflatex
installed (see the course website for some
pointers on how to install this). In particular, you can run make view
to
compile the PDF and open it in your default PDF viewer.
You can reuse this Makefile in every LaTeX homework you'll create. The only thing that you will have to change is the first line of it:
TARGET=written
For this assignment, we've called our LaTeX file written.tex
, and the value of
this TARGET
variable is set appropriately. Just make sure to change it if you
call your LaTeX file something else.
The written.tex
file in this repo converts the pictures below to LaTeX.
Here's the compiled output of the sample solution in this repo.
MIT License. See LICENSE.