Updated some old things and began a new version

This commit is contained in:
Connor Johnstone
2023-12-03 21:51:27 -07:00
parent 5d5baeed34
commit 7ec6b46e81
7 changed files with 287 additions and 13 deletions

View File

@@ -1,15 +1,18 @@
TEX = pandoc
src = template.tex details.yml
src_contract = template_contract.tex details.yml
FLAGS = --pdf-engine=xelatex
TEX = xelatex
src = single_page.tex colors.yaml
PRIMARY = $(shell yq e .primary colors.yaml)
SECONDARY = $(shell yq e .secondary colors.yaml)
TERTIARY = $(shell yq e .tertiary colors.yaml)
TEXT = $(shell yq e .text colors.yaml)
output.pdf : $(src)
$(TEX) $(filter-out $<,$^ ) -o $@ --template=$< $(FLAGS)
.PHONY: contract
contract : $(src_contract)
$(TEX) $(filter-out $<,$^ ) -o output_contract.pdf --template=$< $(FLAGS)
single_page.pdf : $(src)
sed -e "s/\$$primary/$(PRIMARY)/g" \
-e "s/\$$secondary/$(SECONDARY)/g" \
-e "s/\$$tertiary/$(TERTIARY)/g" \
-e "s/\$$text/$(TEXT)/g" \
single_page.tex > single_page_src.tex
$(TEX) -o $(FLAGS) single_page_src.tex
.PHONY: clean
clean :
rm output.pdf output_contract.pdf
rm single_page.pdf single_page_src.tex