From 7b457f21b5e18965941eabebc8f3fc7f6052bf3c Mon Sep 17 00:00:00 2001 From: Heiko J Schick Date: Wed, 10 Jun 2020 11:59:03 +0200 Subject: [PATCH] Adoption to macOS environment --- tikzmake.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/tikzmake.sh b/tikzmake.sh index 560ca43..15019da 100644 --- a/tikzmake.sh +++ b/tikzmake.sh @@ -1,14 +1,15 @@ #!/bin/bash -python $1.py -pdflatex $1.tex +python3 $1.py 2> $1.tex +/usr/local/texlive/2020/bin/x86_64-darwin/pdflatex $1.tex +# pdflatex $1.tex -rm *.aux *.log *.vscodeLog -rm *.tex +# rm *.aux *.log *.vscodeLog +# rm *.tex -if [[ "$OSTYPE" == "darwin"* ]]; then - open $1.pdf -else - xdg-open $1.pdf -fi +# if [[ "$OSTYPE" == "darwin"* ]]; then +# open $1.pdf +# else +# xdg-open $1.pdf +# fi