0

I'm making the cover for my master's thesis. I've used \includepdf[pages={x-y}]{Figures/Figure.pdf} to insert full-page PDFs, but my cover is a png. Is there any similar way to insert a full-page png?

Cheers Simon

3
  • 2
    You could try the background package and use \includegraphics
    – user31729
    Feb 25, 2016 at 20:41
  • 1
    I was just writing the same comment --- ctan.org/pkg/background?lang=en for a reference.
    – Rmano
    Feb 25, 2016 at 20:42
  • 1
    Please make your question more clear. you have a file figure.png and you want to include it as a cover page? please post a minimal working example.
    – touhami
    Feb 25, 2016 at 21:07

2 Answers 2

1

You should use the good old \includegraphics AND notice LaTeX to recognize the .png format (\DeclareGraphicsExtensions).

\documentclass{article}
%% ...
\usepackage{epsfig} %=>\includegrapics
  \DeclareGraphicsExtensions{.pdf,.eps,.png,.jpg}
%% ...
\begin{document}
%% ...
\thispagestyle{empty} % to avoid page numbering on cover page
%% ...
\includegraphics[width=\textwidth]{coverpic.png}
%% ...
\newpage
%% ...
\end{document}
2
  • The titlepage environment (\begin{titlepage}...\end{titlepage}) is also worth mentioning as it handles the \newpage and \thispagestyle{emtpy} commands. May 18, 2016 at 9:39
  • epsfig is old and deprecated. Just load graphicx and use \includegraphics{filename}. No need for extension, no need for \DeclareGraphicxExtensions. May 18, 2016 at 10:20
1

pdfpages builds up on graphicx and can handle png too:

\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\includepdf{example-image.png}
\end{document}

includes on my system:

<D:/MiKTeX2.9/tex/latex/mwe/example-image.png>] 

and gives this page:

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .