Her*_*itz 6 graphics layout latex
我正在使用LaTeX,我希望在页面的左侧有一个垂直规则,topmargin到bottommargin,距离页面的左边缘0.5in.我想在每个页面上都这样,所以我认为这意味着它必须以某种方式绑定到页眉或页脚?
我根本没有取得任何进展,所以我需要帮助(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}
Run Code Online (Sandbox Code Playgroud)
效果很好,很容易调整,以便在左边缘区域放置一个套圈,在右边缘区域放置一个套圈.