\tcbuselibrary{most} 为什么会引起问题?

2020-01-07 18:22发布

\documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{most} %会引起问题 \begin{document} \newtco...

\documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{most} %会引起问题 \begin{document} \newtcolorbox{mybox}[2][] {colback = red!5!white, colframe = red!75!black, fonttitle = \bfseries, colbacktitle = red!85!black, enhanced, attach boxed title to top center={yshift=-2mm}, title=#2,#1} \begin{mybox}[colback=yellow]{Hello there} This is my own box with a mandatory title and options. \end{mybox} \end{document} 会有警告 listingsutf8.sty Package loading is aborted because of missing \pdf@unescapehex. \tcbuselibrary{skins, breakable, theorems}把most该成具体的就没有问题了
2条回答
论坛 github.com/C
2020-01-08 06:09 .采纳回答
完整报错信息 ``` Package listingsutf8 Warning: Package loading is aborted because of missing \pd f@unescapehex. (listingsutf8) It is provided by pdfTeX >= 1.30. ``` 原因解释 1. `most` 会加载 tcolorbox library `listingsutf8`,后者会加载 `listingsutf8` 宏包 1. 这个宏包是设计给 pdftex 引擎用的,与 xetex 和 luatex 都不兼容,所以会有那个 warning 解决方案 1. 什么都不用做。xetex 不需要 `listingsutf8` 的功能,所以 `Package loading is aborted` 完全没事,不会损失功能、不会带来问题。 ------ 关于「如何把源码放在 markdown 的代码块中」,我在 https://wenda.latexstudio.net/q-1474.html 提供了一个带截图的方法说明。

一周热门 更多>