1

I am new to beamer. I need to put an icon in the block environment title on the right side. My code looks like this :

\begin{exampleblock}
    { 
     \includegraphics[width=10pt]{frog.jpg} Example
    }

and my block then looks like this :

Example Title

I need the image to be on the right side (not the left).

I tried using\includegraphics[width=10pt,left] but got an error :

Package xkeyval Error: 'left' undefined in families 'Gin'.

I also tried \begin{flushright} \includegraphics[.. \end{flushright} and I got

Example 2

As you can see there is some kind of margin that I am unable to get rid of. I need it to be on the same line.

  • 2
    Do the \begin{exampleblock} Example\hfill\includegraphics[width=10pt]{frog.jpg} \end{examplebox} help? – Zarko Feb 27 '16 at 17:26
  • L l ll rll pm I l l lot u l l nmy p o – M.C. Sep 23 '16 at 20:36
4

The following should do the trick:

\begin{exampleblock} 
    Example
\hfill
    \includegraphics[width=10pt]{frog.jpg} 
\end{examplebox}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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