registor / boxiesty

这是一个从 "https://github.com/latexstudio/ChenLaTeXBookTemplate" 中提取出来的基于tcolorbox宏包和minted 宏包或listings宏包排版代码的宏包。另外,结合原代码中的排版Ubuntu终端窗口的代码,我进一步完善了用于排版Ubuntu、Mac、Windows终端窗口的环境和从文件中加载终端窗口内容的排版命令。 可以用:\usepackage{boxie}加载该宏包。
15 stars 7 forks source link

recommend add support for lualatex #2

Open Freed-Wu opened 4 years ago

Freed-Wu commented 4 years ago

there exists a line of code

\ifnum\shellescape=1

in fact, if user use lualatex as their tex program, \shellescape does not exist. in replacement, it is \pdf@shellescape

so i recommend add condition judgment for different tex program.

it is an enhancement. thank you!

muzimuzhi commented 4 years ago

The names of read-only control sequences indicating the level of "shell escape" allowed vary between engines:

Since latex2e release 2020-02-02, package expl3 is bundled into latex format. Hence I recommend use the uniform macro \c_sys_shell_escape_int defined by expl3 and documented in texdoc interface3, sec. XIV.7.