如何解决 "everypage" 的 LaTeX 包警告?
How to solve LaTeX package warning for "everypage"?
更新 MiKTeX、Texmaker 和所有已安装的软件包后,编译文档时出现错误。错误信息如下:
Package everypage Warning: Functionality similar to this package has recently been implemented in LaTeX. This package is now in legacy status. Please, don't use it in new documents and packages.
Package everypage Warning: You appear to be running a version of LaTeX providing the new functionality. Doing the best to deliver the original `everypage` interface on top of it. Strict equivalence is not possible, breakage may occur. If truly needed, Use `everypage-1x` to force the loading of an older code base.
错误是由代码\usepackage[some]{background}
引起的,同样没有参数“some”。所以包背景依赖于导致错误的包everypage。
文档正在编译中,但我想解决警告。我怎样才能做到这一点?
编辑:在这里您可以找到一个可编译的最小示例:
\documentclass[a4paper, parskip, 10pt]{scrartcl}
\usepackage[some]{background}%Warning
\definecolor{font}{RGB}{46, 49, 51}
\begin{document}
\color{font}
{\Huge Text}
\end{document}
原因如下:最近对 LaTeX 进行了更新,记录在此处:
LaTeX News Issue 32, October 2020
更新后提供的本机挂钩管理,包括与页面发货相关的管理 - everypage
. The package maintainer provided an update to everypage
提供的内容说明:
Package is now in a legacy status. Functionality similar to that
provided by this package is directly implemented in LaTeX since its
2020 Fall release. On new enough LaTeX formats, everypage
now merely
emulates its legacy interface on top of the new LaTeX mechanisms for
compatibility reasons, while on older formats, it fall backs to its
own previous code.
Do not use everypage
in new documents and do not rely on it in new
packages or classes of yours.
background
的维护者将不得不更新包以利用新的挂钩而不是依赖 everypage
。或者,编写您自己的类似于 background
的宏(无论是什么)。
在此期间,您可以使用 silence
:
来抑制警告
\usepackage{silence}
\WarningsOff[everypage]% Suppress warnings related to package everypage
\usepackage[...]{everypage}
更新 MiKTeX、Texmaker 和所有已安装的软件包后,编译文档时出现错误。错误信息如下:
Package everypage Warning: Functionality similar to this package has recently been implemented in LaTeX. This package is now in legacy status. Please, don't use it in new documents and packages.
Package everypage Warning: You appear to be running a version of LaTeX providing the new functionality. Doing the best to deliver the original `everypage` interface on top of it. Strict equivalence is not possible, breakage may occur. If truly needed, Use `everypage-1x` to force the loading of an older code base.
错误是由代码\usepackage[some]{background}
引起的,同样没有参数“some”。所以包背景依赖于导致错误的包everypage。
文档正在编译中,但我想解决警告。我怎样才能做到这一点?
编辑:在这里您可以找到一个可编译的最小示例:
\documentclass[a4paper, parskip, 10pt]{scrartcl}
\usepackage[some]{background}%Warning
\definecolor{font}{RGB}{46, 49, 51}
\begin{document}
\color{font}
{\Huge Text}
\end{document}
原因如下:最近对 LaTeX 进行了更新,记录在此处:
LaTeX News Issue 32, October 2020
更新后提供的本机挂钩管理,包括与页面发货相关的管理 - everypage
. The package maintainer provided an update to everypage
提供的内容说明:
Package is now in a legacy status. Functionality similar to that provided by this package is directly implemented in LaTeX since its 2020 Fall release. On new enough LaTeX formats,
everypage
now merely emulates its legacy interface on top of the new LaTeX mechanisms for compatibility reasons, while on older formats, it fall backs to its own previous code.Do not use
everypage
in new documents and do not rely on it in new packages or classes of yours.
background
的维护者将不得不更新包以利用新的挂钩而不是依赖 everypage
。或者,编写您自己的类似于 background
的宏(无论是什么)。
在此期间,您可以使用 silence
:
\usepackage{silence}
\WarningsOff[everypage]% Suppress warnings related to package everypage
\usepackage[...]{everypage}