Created
June 7, 2012 21:55
-
-
Save enerick/2891813 to your computer and use it in GitHub Desktop.
単発tex用スクリプト
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
#!/bin/sh | |
#Mac以外は知らない | |
#拡張子を除いた名前を引数として渡す(ex. hoge.tex -> hoge) | |
platex $1.tex | |
if [ $? -eq 0 ];then | |
dvipdfmx $@ | |
else | |
exit 0 | |
fi | |
open $1.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment