
我正在嘗試在我的乳膠程式碼中運行 python 程式碼。我嘗試了簡單的hello world範例,但是我發生了這個錯誤。我的乳膠檔名是 pyinlt.tex
錯誤:
i can't find file 'pyinlt.py.out'
<to be read again>
\def
原始檔:
\documentclass{article}
\usepackage{python}
\begin{document}
Say hello Python:
\begin{python}
print r"Hello \LaTeX!"
\end{python}
\end{document}
答案1
python
環境需要一些預設情況下禁用的權限。編譯的方法是-shell-escape
在編譯時使用它們來啟用它們:
latex -shell-escape pyinlt.tex