Created
June 28, 2017 15:05
-
-
Save JeanOlivier/dfb675047f9c62503f9ba3b9c7d7f3c8 to your computer and use it in GitHub Desktop.
A makefile to submit an article to arxiv/aps with figures in eps format.
This file contains 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
filename=article | |
.PHONY: all first last bibtex ps pdf clean readdvi readps readpdf | |
MK = latex | |
BK = bibtex | |
PS = dvips | |
PDF = dvipdf | |
RM = rm | |
JOURNAL = arXiv | |
ZIP = zip | |
ZIPNAME = Files_${JOURNAL}_Submission.zip | |
ZIPFILES = ${filename}.tex ${filename}.bbl *.eps | |
ZIPARGS = -9 -x "${filename}.bib" -x "makefile" | |
all: ps pdf | |
submission: compress clean | |
compress: ps | |
${ZIP} ${ZIPNAME} ${ZIPFILES} ${ZIPARGS} | |
first: | |
$(MK) ${filename} | |
$(MK) ${filename} | |
last: bibtex | |
$(MK) ${filename} | |
$(MK) ${filename} | |
bibtex: first | |
${BK} ${filename} | |
ps: last | |
${PS} ${filename}.dvi | |
pdf: last | |
${PDF} ${filename}.dvi | |
clean: | |
-$(RM) -f *.aux *.log *.pyg *.brf *.fls *.blg *~ *.bak *.pdf *.dvi *.ps *.bbl | |
-$(RM) -rf ${filename}Notes.bib | |
cleanall: clean | |
-$(RM) -f ${ZIPNAME} | |
readdvi: | |
evince ${filename}.dvi | |
readps: | |
evince ${filename}.ps | |
readpdf: | |
evince ${filename}.pdf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment