Skip to content

Instantly share code, notes, and snippets.

@tanihito
Created January 6, 2011 03:40
Show Gist options
  • Save tanihito/767473 to your computer and use it in GitHub Desktop.
Save tanihito/767473 to your computer and use it in GitHub Desktop.
platex-utf8.sh
#!/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