如何每页重复此框?

如何每页重复此框?

我需要在每一页上重复一个内容相同的框,但不知道如何做。

附加样本图像 在此处输入图片描述

答案1

这是一个使用background包;根据需要调整设置:

在此处输入图片描述

代码(需要两到三次编译):

\documentclass{article}
\usepackage{tikz}
\usepackage[color=black,opacity=1,angle=0,scale=1]{background}
\usepackage{lipsum}

\backgroundsetup{
  contents={%
    \begin{tikzpicture}[remember picture,overlay]
    \node[inner sep=0pt,outer sep=0pt,draw,anchor=west,text width=1.2in,minimum height=\textheight] 
    (sidebar)
    at ([xshift=10pt]current page.west)
    {};
    \node[inner sep=0pt,anchor=north]
    (image) 
    at ([yshift=-20pt]sidebar.north)
    {\includegraphics[width=1in]{example-image-a}};
    \node[inner sep=0pt,anchor=north,font=\LARGE\bfseries]
    (title) 
    at ([yshift=-20pt]image.south)
    {Title};
    \node[inner sep=0pt,anchor=north,text width=1in]
    (text) 
    at ([yshift=-20pt]title.south)
    {Some additional text goes here};
    \end{tikzpicture}%
  }
}

\begin{document}

\lipsum[1-20]

\end{document}

相关内容