如何使用整页背景图片留出装订空间?

发布于 2024-07-10 02:09:17 字数 115 浏览 7 评论 0原文

在 Latex 中,如何使背景图像占据每页上的整张纸除了每页内侧的特定条纹? 我想不通。
我有一个背景图像,希望在打印/装订后在每个页面上看到完整的背景图像。

马蒂

In Latex how can you make the background image to occupy the whole sheet on every page except a certain stripe on the inner side of each page? I can't figure it out.
I have a background image I'd like to be seen in whole on each page after printing/binding.

Matyi

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

请持续率性 2024-07-17 02:09:17

有一些相当可怕的 LaTeX 黑客,涉及在每个页面并使用 \includegraphics 将图像放入该环境中。 您必须使用宽度选项调整图像的大小,如果您想要偶数页和奇数页,您必须检查页码以了解是否通过更改 \put(0, 0) 到 \put(3,0) 例如。

对于页码测试,请尝试按以下顺序进行操作:

\ifodd\count0 ...stuff for odd-numbered pages ...
\else   ... stuff for even-numbered pages ...
\fi

这并不是真正的完整答案,但足以让您开始。

There's some rather scary LaTeX hackery involving putting a picture environment under every page and using \includegraphics to put an image into that environment. You'll have to adjust the size of the image using the width option, and if you want even and odd pages you'll have to check the page number to know whether to shift the image right or left by changing \put(0,0) to \put(3,0) for example.

For page number testing try something on the order of

\ifodd\count0 ...stuff for odd-numbered pages ...
\else   ... stuff for even-numbered pages ...
\fi

This isn't really a full answer but will be enough to get you started.

心的位置 2024-07-17 02:09:17

老实说,我只是在图像中添加空白:)

Honestly, I'd just add the white space in the image :)

久而酒知 2024-07-17 02:09:17

嗯,我正在考虑这样的事情。

这真的是那么罕见的需要吗? 我自己现在第一次需要这样的东西,但我并不觉得它有那么大的奇怪。 对我来说很奇怪的是,如果你想要背景在偶数页和奇数页上改变,就像普通文本一样,你需要感觉到背叛了 Latex 逻辑。 或者也许我对我的这个挑战太狂热了,我想感受整个 tex 世界的变化来实现我的愿望。 :)

谢谢各位的解答!

Well, I was thinking of something like this.

Is this really so rare need to have? I myself need such a thing for the first time now but I don't feel it a so big oddity. It's strange for me that if you want a background to change over even and odd pages, just like normal text do, you need to feel betraying Latex logics. Or maybe I'm too fanatic of this challenge of mine and I want to feel the whole tex world change to fulfill my wishes. :)

Thank you for the answers!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文