I want to insert a logo for a single page. The logo should cover the whole page size. How do I do it?
Asked
Active
Viewed 871 times
2
astroplot
- 81
-
eso-pic package might help – user190633 Jun 12 '19 at 12:25
-
How do I use it? – astroplot Jun 12 '19 at 12:27
-
Please see my answer below – user190633 Jun 12 '19 at 12:27
1 Answers
1
with the eso-pic package:
\documentclass{article}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{eso-pic}
\begin{document}
\AddToShipoutPictureBG*{\includegraphics[height=\paperheight]{example-image}}
\lipsum
\end{document}
with the tikz package:
\documentclass{article}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[remember picture, overlay]
\node at (current page.center) {\includegraphics[height=\paperheight]{example-image}};
\end{tikzpicture}
\lipsum
\end{document}
Edit: to place the image NOT in the background but on a page of its own:
\documentclass{article}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{tikz}
\begin{document}
\lipsum[2]
\clearpage
\begin{tikzpicture}[remember picture, overlay]
\node at (current page.center) {\includegraphics[height=\paperheight]{example-image}};
\end{tikzpicture}
\clearpage
\lipsum[2]
\end{document}
or with pdfpages:
\documentclass{article}
\usepackage{lipsum}
\usepackage{pdfpages}
\begin{document}
\lipsum[2]
\includepdf[height=\paperheight]{example-image}
\lipsum[2]
\end{document}
user190633
- 325
-
there is an additional text also that appeared with the picture. How do i remove it – astroplot Jun 12 '19 at 12:34
-
-
-
@NirashanPradhan So you don't want it in the background but as a standalone page? – user190633 Jun 12 '19 at 12:47
-
-
@NirashanPradhan I added two more solutions for not placing it in the backgroud. is this what you want? – user190633 Jun 12 '19 at 13:02
-
-
@NirashanPradhan Sorry, I have to give up. I have no idea what you are asking – user190633 Jun 12 '19 at 13:07
-
I want the image as the background of the page and texts to be written above it. – astroplot Jun 12 '19 at 13:12