GeneralAdd picture on first page of presentation

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
afinko
Posts: 7
Joined: Sun Jun 29, 2008 11:46 pm

Add picture on first page of presentation

Post by afinko »

How can I add a picture on first page of the presentation (title page)?
When I put the :
\begin{figure}[!h]
\includegraphics[..]
\end{figure}

before \begin{document} document it will make an error:
! LaTeX Error: Missing \begin{document}

But I want to add logo at the first page, right after \author, \institute and \date

Is there any solution ?

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Add picture on first page of presentation

Post by Stefan Kottwitz »

Hi afinko,

don't use the figure environment there. It's intended for floating pictures, you don't need it. Use just \includegraphics instead.
Or alternatively use \pgfdeclareimage and the \logo command, see beamer user guide.

Stefan
LaTeX.org admin
afinko
Posts: 7
Joined: Sun Jun 29, 2008 11:46 pm

Add picture on first page of presentation

Post by afinko »

Stefan_K wrote:Hi afinko,
don't use the figure environment there. It's intended for floating pictures, you don't need it. Use just \includegraphics instead.
Or alternatively use \pgfdeclareimage and the \logo command, see beamer user guide.
Stefan
When I use \includegraphics withouth \begin{figure} and \end{figure} I will receive the same error:
Missing \begin{document}

When I use \logo{\includegraphics[height=0.5cm]{logo.pdf}} it will add a logo, but the positoon of logo can not be changed and logo is at all pages of document.

When I use \pgfdeclareimage[height=0.5cm]{logo}{tu-logo}
\logo{\pgfuseimage{logo}}
Nothing is happening.

When I use \insertlogo behind it, the same error Missing \begin{document} occur.

:( :cry:

There is no some simple method how to add picture in tittle page ? :shock:
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Add picture on first page of presentation

Post by Stefan Kottwitz »

Just \includegraphics should work, but not standalone, it will work as argument to a title-command, for example:

Code: Select all

\title{My Presentation}
\subtitle{\includegraphics{logo}}
\author{Tester}
...
Stefan
LaTeX.org admin
afinko
Posts: 7
Joined: Sun Jun 29, 2008 11:46 pm

Add picture on first page of presentation

Post by afinko »

Stefan_K wrote:Just \includegraphics should work, but not standalone, it will work as argument to a title-command, for example:

Code: Select all

\title{My Presentation}
\subtitle{\includegraphics{logo}}
\author{Tester}
...
Stefan
This is exactly what I was looking for.
Thank you very much :lol: ;)
Post Reply