加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

macos – 如何在TexShop中添加-shell-escape选项

发布时间:2020-12-16 01:15:38 所属栏目:安全 来源:网络整理
导读:我正在使用minted.sty包,它要??求我在latex / xelatex编译期间使用- shell-escape选项.我可以在控制台/终端上做到这一点.但是,我希望将此选项添加到TexShop中.我是 Windows上WinEdit的先前用户,但最近已切换到Mac和TexShop,所以不知道该怎么做? 这是控制台
我正在使用minted.sty包,它要??求我在latex / xelatex编译期间使用- shell-escape选项.我可以在控制台/终端上做到这一点.但是,我希望将此选项添加到TexShop中.我是 Windows上WinEdit的先前用户,但最近已切换到Mac和TexShop,所以不知道该怎么做?

这是控制台输出:

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
如果你还在寻找答案:

>转到首选项
>转到“引擎”选项卡
>转到Field“pdfTeX”
>在LaTeX输入字段中,最后添加–shell-escape.

之前:pdflatex –file-line-error –synctex = 1

之后:pdflatex –file-line-error –synctex = 1 –shell-escape

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读