1

I am making a latex beamer presentation. The blank slide (with logo of a lion in background) looks like as shown Fig

Now, I want to add an image of a figure to this slide. When I add the figure to slide, the background logo gets hidden as shown in the second Figure here enter image description here

However, I do not want to hide the background logo of tiger. The background logo should also be completely visible along with the image. Please guide me for a possible solution.

The code is given as follows:

 \documentclass[compress, xcolor=table]{beamer}
\usebackgroundtemplate{\includegraphics [width=\paperwidth,height=\paperheight]{slide_bg.png}}
    \begin{document}
        \section{Model order reduction of commensurate fractional order systems}
        \subsection{Proposed approach}
        \begin{frame}[t]{\bigskip \Large \vspace{-5mm}Model order reduction of commensurate fractional order systems }
            \textbf{Proposed approach}
            \begin{figure}[![enter image description here][3]][3]
            \begin{center}
                \includegraphics[height=4.4cm]{LFC121.jpg}
                \vspace{6mm}
                \caption{Block diagram of single area power system with controller}
            \end{center}
            \end{figure}
        \end{frame} 
    \end{document}

Also, the figures used in the above code are also attached below enter image description here enter image description here

11
  • 1
    Maybe you can use some sort of 'multiply' blending option. Sep 16 '21 at 18:19
  • 2
    If you don't want to hide the background, you probably should not put another image with a white background on it. Irony aside, the best solution would be to draw the chart in TikZ. This way, you would only display the lines and characters on the background.
    – SebGlav
    Sep 16 '21 at 18:28
  • 4
    Wouldn't PNG be better than JPG for that kind of image? Then you can make the PNG transparent.
    – egreg
    Sep 16 '21 at 20:33
  • 1
    BTW, it's not possible for "the background logo should also be completely visible along with the image". One has to be in the foreground and the other in the background. For example, if you have a red bar in your slide, do you want it to cover the gray background? Or do you want the gray artwork to cover the red bar? I guess you want the white portions of your lion logo to be transparent, but for the gray to cover your slide?
    – James
    Sep 19 '21 at 13:59
  • 1
    @James I want the lion logo to be visible, wherever the image has a white portion
    – ShJ
    Sep 19 '21 at 17:23
5
+100

The problem seems to be that you are using a jpg file, which cannot be transparent and hence cover the background image.

Your code works fine as it is, provided the image in the figure is transparent (typically, a png file):

 \documentclass[compress, xcolor=table]{beamer}
\usebackgroundtemplate{\includegraphics [width=\paperwidth,height=\paperheight]{example-image}} % Courtesy of mwe package
    \begin{document}
        \section{Model order reduction of commensurate fractional order systems}
        \subsection{Proposed approach}
        \begin{frame}[t]{\bigskip \Large \vspace{-5mm}Model order reduction of commensurate fractional order systems }
            \textbf{Proposed approach}
            \begin{figure}[![enter image description here][3]][3]
            \begin{center}
                \includegraphics[height=4.4cm]{PNG_transparency_demonstration_1.png} % Courtesy of https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png
                \vspace{6mm}
                \caption{Block diagram of single area power system with controller}
            \end{center}
            \end{figure}
        \end{frame} 
    \end{document}

enter image description here

(You need to download this file and place it in the same folder as your source code for this example to compile).

Simply add transparency to your file: you can use gimp to do that, or you can look for solutions on-line.

1
  • 1
    With Gimp and by using png, it works superbly
    – ShJ
    Sep 19 '21 at 17:20
-1

The pdftk command line program has the stamp and background arguments that are useful for placing an image either behind or in front of your slides. For example, I have a "draft" stamp in draft.pdf with transparent background. I apply this stamp to a my presentation pdf file as follows...

pdftk presentation.pdf stamp draft.pdf output draft_presentation.pdf

You will want your stamp pdf file to be the same page size as your presentation. Also, it will need a transparent background. Good luck!

2
  • I am using TexStudio with MikTex. How do I implement the above solution, please suggest
    – ShJ
    Sep 19 '21 at 13:39
  • 1
    @ShJ: I run pdflatex from a batch file, so the pdftk command is just added to my batch file and gets run each time I compile my pdf. I'm sorry, but I've never used TexStudio.
    – James
    Sep 19 '21 at 13:41

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.