General ⇒ Add picture on first page of presentation
Add picture on first page of presentation
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 ?
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
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
Add picture on first page of presentation
When I use \includegraphics withouth \begin{figure} and \end{figure} I will receive the same error: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
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.


There is no some simple method how to add picture in tittle page ?

- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Add picture on first page of presentation
Code: Select all
\title{My Presentation}
\subtitle{\includegraphics{logo}}
\author{Tester}
...
Add picture on first page of presentation
This is exactly what I was looking for.Stefan_K wrote:Just \includegraphics should work, but not standalone, it will work as argument to a title-command, for example:StefanCode: Select all
\title{My Presentation} \subtitle{\includegraphics{logo}} \author{Tester} ...
Thank you very much

