\backgroundsetup コマンドを使用して渡された場合、backgroud パッケージによって "pages=some" オプションが無視されます

\backgroundsetup コマンドを使用して渡された場合、backgroud パッケージによって "pages=some" オプションが無視されます

私はbackgroundパッケージを使用して、ドキュメントの背景に透かしスタイルを含めます。ただし、背景は特定のページにのみ含めたいのですが、すべてのページに含める必要はありません。パッケージにはそのためのオプションがあるはずです: pages=some。しかし、このオプションは効果がないようです。背景は引き続きすべてのページに追加されます。

MWE は次のとおりです。

\documentclass{article}

\usepackage{background}

\backgroundsetup{
    pages=some,
    scale=1,
    opacity=0.4,
    angle=90,
    nodeanchor=south east,
    position=current page.north east,
    contents=\includegraphics{example-image-a},
}

\begin{document}

test1
\BgThispage

\newpage

test2

\end{document}

答え1

pages=someパッケージ オプションとして直接渡された場合に機能します。

\documentclass{article}

\usepackage[pages=some]{background}

\backgroundsetup{
    scale=1,
    opacity=0.4,
    angle=90,
    nodeanchor=south east,
    position=current page.north east,
    contents=\includegraphics{example-image-a},
}

\begin{document}

test1
\BgThispage

\newpage

test2

\end{document}

これはバグのようです。

関連情報