gpt4 book ai didi

graphics - LaTeX:如何在每一页上制作整页垂直规则?

转载 作者:行者123 更新时间:2023-12-04 13:55:28 25 4
gpt4 key购买 nike

我正在使用 LaTeX,我想在页面左侧设置垂直规则,上边距到下边距,距页面左边缘 0.5 英寸。我希望在每一页上都有这个,所以我认为这意味着它必须以某种方式绑定(bind)到页眉或页脚?

我根本没有取得任何进展,所以我需要帮助(1)自己制定完整的规则,(2)让它在文档的每一页上自动发生。

有人可以告诉我该怎么做吗?

最佳答案

我在 Latex 社区论坛上的问题得到了有效的答案:http://www.latex-community.org/forum/viewtopic.php?f=5&t=9072&p=34877#p34877

我得到的答案使用“背景”包和这段代码:

\documentclass{article}
\usepackage{background}
\usepackage{lipsum}% just to generate filler text for the example

\SetBgScale{1}
\SetBgAngle{0}
\SetBgColor{black}
\SetBgContents{\rule{.4pt}{\paperheight}}
\SetBgHshift{-9cm}

\begin{document}

\lipsum[1-90]

\end{document}

效果很好,很容易调整,将一个 vrule 放在左边距区域,一个放在右边距区域。

关于graphics - LaTeX:如何在每一页上制作整页垂直规则?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2986240/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com