# First baby steps in LaTeX-land (again)

I haven’t used LaTeX since I handed in my master thesis more than 10 years ago. Now that I’m attending some university classes again, though, I thought it would be fitting to also start writing homework assignments that way again. Obviously, the basics haven’t changed all that much but there are still a couple of things that I’ve learnt over the course of writing the first couple of texts again. My requirements for LaTeX also changed:

• I need to write multiple small documents in parallel instead of one huge.
• All documents should use a single bibliography.
• All documents should have a similar style leaning on the classic article document class.

## The setup

Since I hadn’t used LaTeX for many years, I didn’t have it installed on my laptop. So the first thing I did was to install MacTeX using Homebrew:

bases := $(shell echo$(docs) | sed s/.tex//g)
pdfs := $(shell echo$(docs) | sed s/.tex/.pdf/g)

all: $(pdfs) %.pdf: %.tex classname.bib classnamearticle.cls latex$(subst .tex,,$<) biber$(subst .tex,,$<) latex$(subst .tex,,$<) pdflatex$<

clean:
rm -f \$(pdfs) *.aux *.dvi *.bbl *.blg *.bcf *.log *.run.xml

.PHONY: clean
.PHONY: all


That’s it for now but every time I work with LaTeX I learn something new 😄