Skip to content

Instantly share code, notes, and snippets.

@shogo82148
Created August 9, 2012 03:41
Show Gist options
  • Save shogo82148/3300749 to your computer and use it in GitHub Desktop.
Save shogo82148/3300749 to your computer and use it in GitHub Desktop.
OMakefile for TeX
LATEX = platex
TETEX2_ENABLED = false
LATEXFLAGS = -kanji=utf-8
DVIPDFMFLAGS = -p a4
BIBTEX = pbibtex
BIBTEXFLAGS = -kanji=utf-8
# 参考文献(.bib)とか分割したTeXファイルとか
TEXDEPS[] =
articles.bib
LaTeXDocument(document, document)
.DEFAULT: document.pdf
LATEX = platex
TETEX2_ENABLED = false
LATEXFLAGS = -kanji=utf8
DVIPS = dvipsk
DVIPSFLAGS = -t a4 -Ppdf -z
PS2PDF = ps2pdf.bat
TARGET = slide
$(TARGET).ps: $(TARGET).dvi
$(DVIPS) $(DVIPSFLAGS) -f $< > $@
$(TARGET).pdf: $(TARGET).ps
$(PS2PDF) $< $@
LaTeXDocument($(TARGET), $(TARGET))
.DEFAULT: $(TARGET).pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment