Skip to content

Commit

Permalink
no reason to use iconv anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
csokol committed Oct 10, 2012
1 parent 13f1c25 commit 31a1224
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions etc/latex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@ echo Gerando latex...

HAS_ANSWER=`ls "$(dirname $1)" | grep answer.tex -c`
if [ "$HAS_ANSWER" -eq "0" ]; then
touch "$(dirname $1)"/answer-utf.tex;
touch "$(dirname $1)"/answer.tex;
else
mv answer.tex answer-utf.tex
mv answer.tex answer.tex
fi

cp -R ~/.tubaina/pythonenv .

mv "$1" book-utf.tex
iconv --from-code=UTF-8 --to-code=ISO_8859-1 book-utf.tex > "$1"
iconv --from-code=UTF-8 --to-code=ISO_8859-1 answer-utf.tex > answer.tex

echo "s\n" | pdflatex -shell-escape book.tex > /dev/null
bibtex book
makeindex book.idx
Expand Down

0 comments on commit 31a1224

Please sign in to comment.