Created
January 6, 2011 03:40
-
-
Save tanihito/767473 to your computer and use it in GitHub Desktop.
platex-utf8.sh
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 | |
name=`echo $1 | sed 's/\.tex$//'` | |
echo "converting to JIS" | |
for fname in *.tex *.cls *.bib ; do | |
nkf -j --overwrite $fname | |
done | |
echo "latexing source" | |
platex $name | |
jbibtex $name | |
platex $name | |
platex $name | |
echo "creating the PDF" | |
dvipdfmx $name | |
echo "converting to UTF-8" | |
for fname in *.tex *.cls *.bib ; do | |
nkf -w --overwrite $fname | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment