You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
675 B

SHELL=/bin/bash
TARGETS = out/Paradigmen-001.pdf out/qnd-staemme.pdf
FROM_FORMAT = markdown+grid_tables+raw_tex+table_captions+yaml_metadata_block+tex_math_dollars
all: $(TARGETS)
%.pdf: %.md
pandoc --from $(FROM_FORMAT) --pdf-engine=xelatex -o $@ $<
out/%.pdf: %.md
pandoc --from $(FROM_FORMAT) --pdf-engine=xelatex -o $@ $<
out/%.tex: %.md
pandoc --from $(FROM_FORMAT) --pdf-engine=xelatex -o $@ $<
verb.md: verb.csv
sed -e '2,$$ s/--/-\\-/g' \
-e '2,$$ s/v/$$v_k$$/g' \
-e '2,$$ s/w/$$v'"'"'_k$$/g' \
-e '2,$$ s/w/$$v'"''"'_k$$/g' verb.csv \
| tr '\t' ';' | csvtomd -d ';' -p 1 > $@
.PHONY: verb.md
clean:
rm -f $(TARGETS)
.PHONY: clean