后台包导致逐字分页时出现 tikz 错误

后台包导致逐字分页时出现 tikz 错误

background包导致 tikz 错误verbatim

我在 begin/end 中有几行文本verbatim,通常这只会在需要的地方分页,但是,当我使用该background包时,它会产生一些tikz Error
Package tikz Error: Sorry, some package has redefined the meaning of the matht cause unrecoverable errors. \end{verbatim}
我已经能够在没有该包的情况下生活,但我很好奇为什么会发生错误,有没有解决方法,或者这是软件包中的一个错误?这种情况仅当逐字逐句超过一页时才会发生,就像在 MWE 中一样,如果我减少 lipsum 以使其不会分页,那么错误就会消失。

平均能量损失

为了使换行准确无误,我在需要的地方添加了一些虚句。

\documentclass[11pt,a4paper]{article}

\usepackage{background} % Letting me add background overlays. 

\usepackage{lipsum}

\begin{document}

\lipsum[1-4] % Change this to \lipsum[1-3] and it goes away.

Some very long sentences repeated over and over again. Some very long sentences repeated over and over again. Some very long sentences repeated over and over again. Some very long sentences repeated over and over again. Some very long sentences repeated over and over again. 

Some interesting code
\begin{verbatim}
foo 
bar
\end{verbatim}
does something.

\end{document}

相关内容