Created
April 17, 2015 02:56
-
-
Save MasWag/d56fe9a1e56b0c026984 to your computer and use it in GitHub Desktop.
pandocとplatexでmarkdownからdviを生成するOmakefileの例
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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