GeneralPut figure in Header in Latex

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pavel81
Posts: 3
Joined: Sat Aug 23, 2008 9:59 pm

Put figure in Header in Latex

Post by pavel81 »

Hello,

I have been trying to put a figure at the top-right corner of a page, outside the margin. So I was trying to put the figure in a 'header'. But, I have not been successful yet. I don't see the figure, but I see text there if I put text. Hope I would get some useful tips on it. A sample code would be highly appreciated. Thank you so much.

BR.
Pavel

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Put figure in Header in Latex

Post by gmedina »

Hi Pavel,

you could use the textpos package. A little example:

Code: Select all

\documentclass{report}
\usepackage[absolute]{textpos}
\usepackage{lipsum}%just to generate some text

\begin{document}

\begin{textblock}{3}(12,1.5)
  \rule{1.5cm}{1cm}
\end{textblock}
\lipsum[1-3]

\end{document} 
Refer to the package documentation for further information. I used \rule to simulate an actual figure. Of course, you can use the usual \includegraphics command provided by graphicx.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
pavel81
Posts: 3
Joined: Sat Aug 23, 2008 9:59 pm

Put figure in Header in Latex

Post by pavel81 »

Thank you so much gmedina. It worked and satisfied my need. Thanks a lot.

BR
Pavel
-------------------------------
gmedina wrote:Hi Pavel,

you could use the textpos package. A little example:

Code: Select all

\documentclass{report}
\usepackage[absolute]{textpos}
\usepackage{lipsum}%just to generate some text

\begin{document}

\begin{textblock}{3}(12,1.5)
  \rule{1.5cm}{1cm}
\end{textblock}
\lipsum[1-3]

\end{document} 
Refer to the package documentation for further information. I used \rule to simulate an actual figure. Of course, you can use the usual \includegraphics command provided by graphicx.
Post Reply