From dfe1e789923b1c5e33cca4e06a123fbf6bf4036f Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 4 Jun 2016 14:29:12 +0200 Subject: [PATCH] Add a simple Makefile snippet to simplify usage. --- Makefile | 5 ++--- README.md | 11 +++++++++++ tokkeebeamer.mk | 5 +++++ 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 tokkeebeamer.mk diff --git a/Makefile b/Makefile index b509107..008e70f 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,10 @@ +include tokkeebeamer.mk + TEXMFHOME := $(shell kpsewhich -expand-var \$$TEXMFHOME) all: example.pdf example.pdf: example.tex *.sty *.dict tokkee_logo.* Makefile - # the default titlegraphic requires the presentation to be compiled twice - xelatex example.tex - xelatex example.tex clean: rm -f *.aux *.log *.nav *.out *.snm *.toc diff --git a/README.md b/README.md index 769af37..df2a99e 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,17 @@ slides. It may or may not be useful to anyone else … The files are provided under the terms of the 2-clause BSD license. See LICENSE for details. +Usage +----- + +The included tokkeebeamer.mk Makefile snippet makes it easy to use the package +from arbitrary (sub)directories: + + TOKKEEBEAMER = «(sub)directory» + include $(TOKKEEBEAMER)/tokkeebeamer.mk + + slides.pdf: slides.tex + Required packages ----------------- diff --git a/tokkeebeamer.mk b/tokkeebeamer.mk new file mode 100644 index 0000000..aa523bc --- /dev/null +++ b/tokkeebeamer.mk @@ -0,0 +1,5 @@ +TOKKEEBEAMER ?= . + +%.pdf: %.tex + TEXINPUTS=$(TOKKEEBEAMER):$$TEXINPUTS xelatex $< + TEXINPUTS=$(TOKKEEBEAMER):$$TEXINPUTS xelatex $< -- 2.30.2