General ⇒ Put figure in Header in Latex
Put figure in Header in Latex
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Put figure in Header in Latex
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}
Put figure in Header in Latex
BR
Pavel
-------------------------------
gmedina wrote:Hi Pavel,
you could use the textpos package. A little example: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.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}