Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to follow this discussion, but I get the following error when I am trying to have a picture in the title.

My TeX

\documentclass{beamer}
\usepackage[english]{babel}
\usepackage[orientation=portrait, size=a0]{beamerposter} 
\mode<presentation>{%
    \usetheme{Frankfurt}%
}
\usepackage{graphicx}
\title
{
\includegraphics[height=4cm]{logo.gif}
} 

\setbeamersize{text margin left=0cm,text margin right=0cm} %removes left and right margins 

\begin{document}

\begin{frame}[t]{}
\begin{beamercolorbox}{}
\maketitle
\end{beamercolorbox}
\vskip 50mm
  \begin{block}{Title}
    Hello world
  \end{block}
\end{frame}

\end{document}

I get the errors like this

Package hyperref Warning: Token not allowed in a PDF string (Unicode):
(hyperref)                removing `\@ifnextchar' on input line 22.

similar error message as here. I get an empty sheet after running the code.

How can you have a picture in the title of Beamer class for a poster?

share|improve this question
    
Your code works fine on my machine (with TeXWorks + MikTeX 2.9), after replacing logo.gif with image from the mwe package. –  Kevin C Jan 20 at 8:59
    
I removed the package mwe, and still the same problem. –  Masi Jan 20 at 10:18

2 Answers 2

up vote 4 down vote accepted

pdflatex does not support the gif format! See the answer (<- link to answer) from Martin Scharrer. "Just" create a valid png with transparency and include it.

You can test the transparency for example by including it in a PowerPoint document.

Answer in a nutshell (pdftex manual, possible image types):

The image type is specified by the extension of the given file name: .png stands for png image, .jpg (or .jpeg) for jpeg, .jbig2 (preferred, but .jb2 works also) for jbig2, and .pdf for pdf file.

share|improve this answer
    
You link to Martin, but you do not include the link to his answer. Can you update the link where you refer? There are many ways to create the transparency. OSX Preview and magic wand create very sharp corners. I have not been able create a good transparency with Photoshop CC. I have white background in the picture. –  Masi Jan 20 at 13:46
    
Hello. The link to the answer is the "answer". Maybe you didn't see it. But I can update my answer anyway and add the actual answer. –  Manuel Kuehner Jan 20 at 13:53
    
I accept this answer because it answers the question. My next problem is to have such a transparency which I accepts for my picture, probably created by Photoshop CC. –  Masi Jan 20 at 14:30

use

\title{\texorpdfstring{\includegraphics[height=4cm]{logo}}{}} 

an image cannot be part of the bookmarks. And, of course, use a .png, .pdf or .jpg image format.

share|improve this answer
    
of course...didn't see that it's part of the bookmark –  Manuel Kuehner Jan 20 at 14:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.