Skip to content

Instantly share code, notes, and snippets.

@plmi
plmi / Makefile
Last active November 12, 2023 14:09
Makefile to compile latex document with latexmk
PAPER=solution-1.tex
SHELL=/bin/zsh
# remove extension .tex from PAPER
# https://unix.stackexchange.com/a/460224
FILENAME := $(shell x='$(PAPER)'; echo "$${x%%.*}")
.PHONY: all clean watch
# use -shell-escape to use minted package
# use -bibtex for biblatex support