3 pdf_viewer
="xpdf -z page "
9 while getopts "phs:" optionName
11 case "${optionName}" in
13 s
) scaling
=${OPTARG} ;;
14 h
) echo -e "Usage: ${0} [-p] SK_FILE \n ";
19 #Switch to not processed arguments
20 shift $
(($OPTIND - 1))
31 trunk
=$
(basename ${sk} .sk
)
35 #Change language to tikz if not set
37 if [ ! "$(grep "language\s
*tikz
" ${sk})" ]
40 echo "global {language tikz}" >> ${tmp_sk}
45 sketch
${sk} -Te -o ${tex}
49 adapt_sk.sh
-s ${scaling} ${tex}
52 pdflatex
${tex} >/dev
/null
54 if [ "${show_pdf}" = "yes" ]
56 ${pdf_viewer} ${pdf} &