#!/bin/bash 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 # if [[ "$OSTYPE" == "darwin"* ]]; then # open $1.pdf # else # xdg-open $1.pdf # fi