registor / boxiesty

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

[bug] conflict with \tikzexternalize #5

Closed Freed-Wu closed 3 years ago

Freed-Wu commented 3 years ago
\documentclass[tikz]{standalone}
\usepackage{boxie}
\usetikzlibrary{external}
\tikzexternalize%
\begin{document}

\begin{windark}{cmd}
\end{windark}

\end{document}
latexmk -pvc- Desktop/test.main.tex
Desktop/test/main.tex|10 error| You can't use `\prevdepth' in restricted horizontal mode.
Desktop/test/main.tex|10 error| Missing number, treated as zero.
Desktop/test/main.tex|10 error| Illegal unit of measure (pt inserted).
Desktop/test/main.tex|10 error| Argument of \tikzexternal@laTeX@collect@until@end@tikzpicture has an extra }.
Desktop/test/main.tex|10 error| Paragraph ended before \tikzexternal@laTeX@collect@until@end@tikzpicture was complete.
Desktop/test/main.tex|10 error| Extra }, or forgotten \endgroup.
Desktop/test/main.tex|10 error| Extra \else.
Desktop/test/main.tex|| File ended while scanning use of \tikzexternal@laTeX@collect@until@end@tikzpicture.
Desktop/test/main.tex|| Emergency stop.
Desktop/test/main.tex|| ==> Fatal error occurred, no output PDF file produced!
muzimuzhi commented 3 years ago

boxie 无关,在 standalone + tikz external 时就能复现。可能和 https://github.com/latex3/latex2e/issues/441 有关。

\documentclass[tikz]{standalone}
\usetikzlibrary{external}
\tikzexternalize

\begin{document}
\begin{tikzpicture}
  \draw (0,0) grid (3,3);
\end{tikzpicture}
\end{document}

第一处 error

! Improper \prevdepth.
\newpage ...everypar {}\fi \par \ifdim \prevdepth 
                                                  >\z@ \vskip -\ifdim \prevd...
l.12 \end{document}

版本信息

Freed-Wu commented 3 years ago

You are right. it belongs to https://github.com/latex3/latex2e/issues/441.