Graphics, Figures & TablesLatex Include a Graphic File as the Cover Page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ranaya123
Posts: 8
Joined: Wed Apr 02, 2025 8:08 am

Latex Include a Graphic File as the Cover Page

Post by ranaya123 »

I am compiling my thesis using Latex, which eventually generates a PDF file. In addition to its textual content, I want to insert a graphical image (.png) as its cover page. This is what I am doing with the help of titlepic, pdfpages Latex packages.

In my permeable:

\usepackage{titlepic}
\usepackage{pdfpages}

\begin{document}
\includepdf[pages=1]{./figures/ThesisCover.png}
\end{document}


Now this brings the following Latex error:

! Undefined control sequence. l.31 \if@titlepage The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., \hobx'), type I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.

Can anybody shed a light on how to solve this problem ?

Thanks

Recommended reading 2024:

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

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

Post Reply