Skip to content

Instantly share code, notes, and snippets.

@henry0312
Created September 25, 2011 07:45
Show Gist options
  • Save henry0312/1240356 to your computer and use it in GitHub Desktop.
Save henry0312/1240356 to your computer and use it in GitHub Desktop.
TeX scripts
#!/bin/sh
# iNoue Koich! (modified by S. Zenitani)
export PATH=$PATH:/usr/texbin:/usr/local/bin
COMMAND=${0##*/}
PTEX=${COMMAND%2pdf-*}
ENCODE=${COMMAND#*-}
JOBNAME=${1##*/}
JOBNAME=${JOBNAME%.*}
eptex -kanji=$ENCODE -progname=$PTEX $1 && \
dvipdfmx $JOBNAME
#!/bin/sh
# iNoue Koich! (modified by S. Zenitani)
export PATH=$PATH:/usr/texbin:/usr/local/bin
COMMAND=${0##*/}
PTEX=${COMMAND%2pdf-*}
ENCODE=${COMMAND#*-}
JOBNAME=${1##*/}
JOBNAME=${JOBNAME%.*}
eptex -kanji=$ENCODE -progname=$PTEX $1 && \
dvipdfmx $JOBNAME
@henry0312
Copy link
Author

Original:
MacTeX-2011 の場合の設定
http://oku.edu.mie-u.ac.jp/~okumura/texwiki/?TeXShop#hd2204af

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment