2015-01-20 11 views
6

Ich verwende das minted.sty Paket und es erfordert, dass ich die Option -shell-escape während der Kompilierung von latex/xelatex verwende. Ich kann das über die Konsole/das Terminal machen. Allerdings möchte ich diese Option in TexShop hinzufügen. Ich bin früher Benutzer von WinEdit unter Windows, habe aber kürzlich zu Mac und TexShop gewechselt, weiß also nicht wie? HierWie füge ich die Option -shell-escape in TexShop hinzu

ist die Konsolenausgabe:

Package ifplatform Warning: 
shell escape is disabled, so I can only detect \ifwindows. 
)) 
! Package minted Error: You must invoke LaTeX with the -shell-escape flag. 

See the minted package documentation for explanation. 
Type H <return> for immediate help. 
...            

l.54 \makeatletter 

Antwort

5

im Fall suchen Sie noch nach einer Antwort:

  • Gehe zu den Einstellungen
  • Zum Tab "Motor"
  • Go zu Feld "pdfTeX"
  • Im LaTeX Eingabefeld fügen Sie --share-escape am Ende ein.

vor:pdflatex --file-line-error --synctex=1

nach:pdflatex --file-line-error --synctex=1 --shell-escape

+2

thx eine Million! Du hast mir eine Menge Ärger erspart! : D – Sajjon

Verwandte Themen