如何在每个页面上包括一个tikzpicture?

我想创建一个复杂的文档模板(应该构架页面,并拥有一个表格和页脚中保存文档信息的表)。

我正在考虑使用类似的东西:

\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}

您还有有关如何创建这种模板的其他建议吗?

有帮助吗?

解决方案

将信息添加到标题/页脚中 fancyhdr 或者 Koma脚本

为了在每个页面上添加一些内容,我使用了此信息:

\usepackage{eso-pic}
\makeatletter
\AddToShipoutPicture{%
    \setlength{\@tempdimb}{.1\paperwidth}%
    \setlength{\@tempdimc}{.04\paperheight}%
    \setlength{\unitlength}{1pt}%
    \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){%
        \makebox(0,0){ \textcolor{gray}{Rev: \svnrev{} (\svnfilerev)} }%
    }%
}
\makeatother

在这里,我在每个页面的右下方添加SVN修订号。我不记得为什么我不使用tikzpicture [覆盖,记住图片 \AddToShipoutPicture, ,也许是因为它不记得在页面运输状态下的图片位置。

希望有帮助。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top