Skip to content

Instantly share code, notes, and snippets.

@kosho
Last active August 29, 2015 14:22
Show Gist options
  • Save kosho/550bd1544e52ff1b4d1c to your computer and use it in GitHub Desktop.
Save kosho/550bd1544e52ff1b4d1c to your computer and use it in GitHub Desktop.
Makefile to generate a beamer styled PDF file from a markdown written in Japanse on Mac OS.
SRC =
OPTS = --latex-engine=lualatex -t beamer -V fontsize:10pt -V colortheme:beaver -H h-luatexja.tex
all: $(SRC:.md=.pdf)
$(SRC:.md=.pdf): $(SRC)
iconv -f UTF-8-MAC -t UTF-8 $(@:.pdf=.md) | pandoc -o $@ $(OPTS)
open $@
clean:
rm -f *~ $(SRC:.md=.pdf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment