Last active
December 31, 2015 00:19
-
-
Save ryosan-470/7906410 to your computer and use it in GitHub Desktop.
platexコマンドで生成されるdviファイルをdvipdfmxを利用してpdfファイルを生成し,それをMacに付属するopenコマンドを用いて表示するシェルスクリプト
なお,Ubuntuにおいてはalias open='gnome-open'にしておけば同様に動作する.
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 | |
platex ${1%.*}.tex | |
dvipdfmx ${1%.*}.dvi | |
open ${1%.*}.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment