Skip to content

Instantly share code, notes, and snippets.

@knsh14
Created July 24, 2013 14:18
Show Gist options
  • Save knsh14/6070993 to your computer and use it in GitHub Desktop.
Save knsh14/6070993 to your computer and use it in GitHub Desktop.
#!/bin/sh
# 作られるファイル名を記述しておく
tex=".tex"
aux=".aux"
log=".log"
dvi=".dvi"
# platexで.dviが生成されたらそれをpdfにする
platex $1$suf && dvipdfmx $1
# 完成したら中間ファイルを削除する
rm $1$aux && rm $1$log && rm $1$dvi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment