Skip to content

Instantly share code, notes, and snippets.

@pgmot
Last active December 13, 2015 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgmot/4994126 to your computer and use it in GitHub Desktop.
Save pgmot/4994126 to your computer and use it in GitHub Desktop.
なんかpdf作るために使ったり
PLATEX = platex
DVIPDFMX = dvipdfmx
BIBTEX = bibtex
TARGET = research_plan
PDF_READER = open
all: $(TARGET).dvi
pdf: $(TARGET).pdf
$(TARGET).dvi: $(TARGET).tex bibliography.bib
$(PLATEX) -interaction=nonstopmode $(TARGET)
$(BIBTEX) $(TARGET)
$(PLATEX) -interaction=nonstopmode $(TARGET)
$(PLATEX) -interaction=nonstopmode $(TARGET)
$(TARGET).pdf: $(TARGET).dvi
$(DVIPDFMX) $(TARGET).dvi
clean:
rm -rf *.dvi *.log *.aux $(TARGET).pdf *.bbl *.blg
open: $(TARGET).pdf
$(PDF_READER) $(TARGET).pdf&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment