minted #134
LogCreative
started this conversation in
插件区
minted
#134
Replies: 0 comments 1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
minted 代码抄录适配
使用方法
\usesjtutheme{minted}
可选参数:
draft
草稿模式,传递给 minted 宏包,使其不使用 Pygments 高亮代码,以期加快编译速度。正文中使用两个命令:
frame 上必须使用 fragile 参数,
codeblockminted
环境用于平替codeblock
环境,\codeblockinputminted
命令用于平替\codeblockinput
,这些命令额外地添加了语言参数,因为 minted 需要特别指定语言。文件清单
位置:contrib/minted
用途用例
提供基本的 minted 宏包适配。
可以在 Overleaf 上使用,而 校内平台 禁用了
--shell-escape
编译选项1,无法使用。Footnotes
https://shuiyuan.sjtu.edu.cn/t/topic/107363/21 ↩
Beta Was this translation helpful? Give feedback.
All reactions