每页都有 Tikz 图片
如何在每个页面上包含 tikz 图片?
我想创建一个复杂的文档模板(页面应该加框,并有一个表格来保存页眉和页脚中的文档信息)。
我正在考虑使用类似的东西:
\begin{tikzpicture}[remember picture,overlay]
% complicated layout should be here, simple example is given below:
% \node [xshift=1cm,yshift=1cm] at (current page.south west)
% {This is an absolutely positioned text in the page};
\end{tikzpicture}
您对如何创建这样的模板还有其他建议吗?
How can I include a tikzpicture on every page?
I would like to create a complicated document template (page should be framed, and have a table to hold document information both in the header and footer).
I was thinking of using something like:
\begin{tikzpicture}[remember picture,overlay]
% complicated layout should be here, simple example is given below:
% \node [xshift=1cm,yshift=1cm] at (current page.south west)
% {This is an absolutely positioned text in the page};
\end{tikzpicture}
Do you have any other suggestions on how to create such a template?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
fancyhdr
或 KOMA 脚本对于在每个页面上添加一些东西我使用了这个:
在这里,我在每个页面的右下角添加了 SVN 修订号。我不记得为什么我没有在
\AddToShipoutPicture
中使用tikzpicture[overlay,remember picture],也许是因为它无法记住页面发货状态下的图片位置。希望有帮助。
Add information to header/footer either using
fancyhdr
Or KOMA ScriptFor adding a something on every page I used this:
Here, I add the SVN revision number on the bottom right of every page. I don't remember why I did not use a tikzpicture[overlay,remember picture] in
\AddToShipoutPicture
, maybe because it can't remember the picture position in the state of shipping out the page.Hope that helps.