Skip to content

Commit

Permalink
bug fix: convert answer.tex do latin1
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiolopes committed Sep 29, 2011
1 parent 605462e commit f66ffc0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion etc/latex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ echo Gerando latex...

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

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 "$1" > /dev/null
echo "s\n" | pdflatex -shell-escape "$1" > /dev/null

0 comments on commit f66ffc0

Please sign in to comment.