2010-11-04 58 views
3

如何在每個頁面上包含tikzpicture?Tikzpicture on every page

我想創建一個複雜的文檔模板(頁面應該被框住,並且有一個表格來保存頁眉和頁腳中的文檔信息)。

我想使用類似的:

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

你有關於如何創建這樣的模板任何其他建議?

+0

您可能會在http://tex.stackexchange.com上得到更好的答案。 – 2010-11-04 15:40:13

+0

謝謝,我會在那裏試試我的問題。 – ipavlic 2010-11-04 15:44:46

回答

2

將信息添加到標題我用這個/頁腳或者使用fancyhdr或者KOMA Script

對於每一頁上添加了一句:

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

在這裏,我加上的右下角的SVN版本號每一頁。我不記得爲什麼我沒有在\AddToShipoutPicture中使用tikzpicture [覆蓋圖,記住圖片],也許是因爲它無法記憶出頁面狀態下的圖片位置。

希望有所幫助。

+0

我自從使用了tex.stackexchange.com姐妹網站。很抱歉,不能早日接受你的回答。 – ipavlic 2011-05-31 08:41:55