图形的页眉和页脚

图形的页眉和页脚

(我是乳胶新手,不知道要搜索的正确关键词。)我想在我的图形(浮动)上放置页眉和页脚线,而不是框架框,因为它们有时比整页花费的时间更长。

有什么建议么?

我希望结果看起来像这样:

在此处输入图片描述

答案1

tcolorbox

\documentclass[10pt]{amsart}
\usepackage[many]{tcolorbox}

\newtcolorbox{covered}[1][]{%
    colback=white,hbox,
    blanker,
    boxsep=5mm,
    frame code={
        \draw[line width=2pt,blue] ([yshift=-5mm]frame.north west) |-
                (frame.north east) -- +(0,-5mm);
        \draw[line width=2pt,blue] ([yshift=5mm]frame.south west) |-
                (frame.south east) -- +(0,5mm);
        },
    width=\linewidth,
    nobeforeafter,
    #1}


\begin{document}
  \tcbincludegraphics[
          blanker,boxsep=5mm,hbox,finish={
          \draw[line width=2pt,blue] ([yshift=-5mm]frame.north west) |-
                (frame.north east) -- +(0,-5mm);
          \draw[line width=2pt,blue] ([yshift=5mm]frame.south west) |-
                (frame.south east) -- +(0,5mm);},
          graphics options={width=3cm}
          ]{example-image}

  \noindent
  \begin{covered}
    \includegraphics[width=4cm]{example-image-a}
  \end{covered}
\end{document}

在此处输入图片描述

相关内容