0

I am trying to use the minted package to copy and paste python code into a LaTex document. I am using MacOS13 and using TEXShop version 4.44.

I used the following:

\documentclass{article}
\usepackage{minted}

\begin{document}

\begin{minted}{python}

\end{minted}

\end{document}

After trying to compile the first time I received the following message:

Package minted Error: You must invoke LaTex with the -shell-escape flag. 

After going into system preferences and putting in "--shell-escape" in the LaTex input field and compiling again, I got the following message:

Package catchfile Error: `"Lab 8 Report".w18' not found 
See the catchfile package documentation for explanation. 

I have no idea what to do. I am not very good at this whole thing and would really appreciate some guidance on how to use the minted package to show my python code in my document.

Thank you in advance.

0 Answers0