diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-09-16 00:09:59 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-10-18 14:28:03 +0200 |
| commit | 61bf06995731b882996ec3fda65a220c0ac4d9b4 (patch) | |
| tree | 4da703c7823cc2dcabf512605e3155f403d244aa /latex | |
| parent | 0eca69cca991713d98714ed45cc17aa0f742206d (diff) | |
| download | muhqs-game-61bf06995731b882996ec3fda65a220c0ac4d9b4.tar.gz muhqs-game-61bf06995731b882996ec3fda65a220c0ac4d9b4.zip | |
add assets support for png and jpg
Diffstat (limited to 'latex')
| -rw-r--r-- | latex/Makefile | 7 | ||||
| -rw-r--r-- | latex/cards/relic.tex | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/latex/Makefile b/latex/Makefile index 7552b32e..2dba3efa 100644 --- a/latex/Makefile +++ b/latex/Makefile @@ -23,17 +23,20 @@ CARD_PNGS_PREFIXED = $(addprefix $(PDF_DIR)/,$(CARD_PNGS)) MAKEFILE_LIST = Makefile +ASSETS_PATH = ./assets +PDFLATEX_ENV := TEXINPUTS=".:$(ASSETS_PATH):" + all: $(PDF_DIR)/cards.pdf $(CARD_PDFS_PREFIXED) $(CARD_PNGS_PREFIXED) $(PDF_DIR)/cards.pdf: cards.tex $(CARD_SOURCES) $(COMMON_TEX_FILES) $(MAKEFILE_LIST) @echo "building › › $@" @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi - $(VERBOSE) $(PDFLATEX) --output-directory $(PDF_DIR) $^ + $(VERBOSE) $(PDFLATEX_ENV) $(PDFLATEX) --output-directory $(PDF_DIR) $^ $(PDF_DIR)/%.pdf : $(CARDS_DIR)/%.tex $(COMMON_TEX_FILES) $(MAKEFILE_LIST) @echo "card › $@" @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi - $(VERBOSE) $(PDFLATEX) --output-directory $(PDF_DIR) $(CARDS_DIR)/$*.tex + $(VERBOSE) $(PDFLATEX_ENV) $(PDFLATEX) --output-directory $(PDF_DIR) $(CARDS_DIR)/$*.tex $(PDF_DIR)/%.png : $(PDF_DIR)/%.pdf $(MAKEFILE_LIST) @echo "png › $@" diff --git a/latex/cards/relic.tex b/latex/cards/relic.tex index b42bd32f..6b8e99c2 100644 --- a/latex/cards/relic.tex +++ b/latex/cards/relic.tex @@ -14,7 +14,6 @@ \cardbuycost{3} \cardcontent{In your upkeep the player controlling the most units in range 1 gains 1 resource. On ties all tied players gain 1 resource.} \cardplaycost{7} - \cardborder \end{tikzpicture} \end{document} |
