
我正在嘗試將 minted 與 texmaker 一起使用。奇怪的是,當我調用時它起作用了
pdflatex --shell-escape testfile
在系統 shell 中,但不是來自 texmaker選項 -> 配置 TeXmaker | pdfLaTeX說
"/usr/texbin/pdflatex" -synctex=1 -shell-escape -interaction=nonstopmode %.tex
日誌的主要區別:
來自外殼
/Users/tmartin/anaconda/bin/pygmentize
叫做。
texmaker 嘗試調用
/usr/local/bin/pygmentize
為什麼會呼叫不同版本的 pygmentize?
答案1
你可以嘗試創建一個符號連結作為解決方法:
cd /usr/local/bin
sudo ln -s /Users/tmartin/anaconda/bin/pygmentize pygmentize
現在您有一個指向 的pygmentize
連結。因此,Texmaker 應該調用與您的終端中使用的相同的安裝。/usr/local/bin
~/anaconda/bin/pygmentize
pygmentize
答案2
另一個答案也有效,但也許更優雅的解決方案(例如對於那些不能使用 的人sudo
),是將您的路徑添加anaconda/bin/
到 texmaker 的 PATH 中,您可以在 texmaker 設定的「命令」頁面底部執行此操作。