2

So in amsart, there is a header by default but I would like another "header" above this one so that I can place an image in the upper-right hand corner of every page. I'd also like the option to do this with the footer, too. But the package fancyhdr conflicts with the existing header/footer for amsart:

\documentclass{amsart}

\usepackage{lipsum}

\usepackage{fancyhdr}
\pagestyle{fancy}

\rhead{\includegraphics{example-image-a}}

\lfoot{This is Document ABC DEF GHI JKL MNO}

\begin{document}

\title{This is the title for Document ABC DEF GHI JKL MNO}
\maketitle

\lipsum

\end{document}

As you can see, everything is overlapping in the header/footer. I would like the image to be more upper right (but not touching the corner) and would like the lower left footer to be more lower left (but not touching the corner).

3
  • The overlap is caused by trying to fit a graphic that is about 305pt high into the 8pt of space (\headheight) reserved for the header.
    – Dan
    Aug 22, 2016 at 21:45
  • You mean something like this?
    – alwaysask
    Aug 22, 2016 at 21:49
  • @alwaysask Yes. Aug 22, 2016 at 21:50

1 Answer 1

1

Here's a way to do it with some values for you to tweak the desired placement/size:

\documentclass{amsart}
\usepackage{graphicx}
\usepackage{lipsum}

\usepackage{fancyhdr}
\pagestyle{fancy}
%
%\rhead{\includegraphics{example-image-a}}
\rhead{%
    \begin{picture}(0,0)
    \put(40,25){\includegraphics[height=15mm]{example-image-a}}
    \end{picture}}

\lfoot{%
    \begin{picture}(0,0)
    \put(-100,-50){\includegraphics[height=15mm]{example-image-b}}
    \end{picture}
    This is Document ABC DEF GHI JKL MNO}

\begin{document}

    \title{This is the title for Document ABC DEF GHI JKL MNO}
    \maketitle

    \lipsum

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.