Skip to content

Instantly share code, notes, and snippets.

@MasWag
Created April 17, 2015 02:56
Show Gist options
  • Save MasWag/d56fe9a1e56b0c026984 to your computer and use it in GitHub Desktop.
Save MasWag/d56fe9a1e56b0c026984 to your computer and use it in GitHub Desktop.
pandocとplatexでmarkdownからdviを生成するOmakefileの例
PANDOC = pandoc
PANDOC_FLAGS = --template=/home/calros/share/pandoc/report.latex -s
%.tex: %.md
$(PANDOC) $(PANDOC_FLAGS) -o $@ $<
# 生成するPDFの名前 (拡張子は不要)
TARGET = test
# LaTeXコマンド
LATEX = platex
TEX_FILES = test.tex
# コンパイルに必要なファイル
TEXDEPS[] = $(TEX_FILES)
LaTeXDocument($(TARGET), $(TARGET))
.DEFAULT: $(TARGET).dvi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment