TransWikia.com

Adjusting logo in beamercolorbox

TeX - LaTeX Asked by BMB on May 23, 2021

I am making a presentation and I’d like to add a logo on the bottom right side of all frames except the titlepage. First, I set four beamercolorboxes , the last one for the logo. it was not aligned well. Then, added the logo into the third beamercolorbox. It seems to be aligned, however, it has made the date and page number seem blurred plus the color of the image itself has been changed from white to the color of the beamercolorbox. I want to the image rather to come to the front.

MWE

documentclass[11pt]{beamer}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage[export]{adjustbox}
usepackage{tikz}
usetikzlibrary{positioning}
setbeamertemplate{headline}{}
setbeamercovered{transparent}
usetheme{Madrid}
useoutertheme{miniframes} 
useinnertheme{circles}
setbeamercolor{subsection in head/foot}{bg=black,fg=white}

deflogo{%
    includegraphics[fbox, ,width=1cm, height=3ex,raise=-0.6ex]{polyLogo.pdf}%
}

setbeamerfont{footline}{size=fontsize{6}{6}selectfont}
setbeamercolor{section in foot}{bg=gray,fg=white}
setbeamercolor{subsection in foot}{bg=black,fg=white}


setbeamertemplate{footline}
{
    hbox{%
        begin{beamercolorbox}[wd=.35paperwidth,ht=2.6ex,dp=1ex,center]{section in foot}%
            usebeamerfont{section in foot}insertshortauthor
        end{beamercolorbox}%
    % here I replace insertsubtitle with insertshorttitle
        begin{beamercolorbox}[wd=.30paperwidth,ht=2.6ex,dp=1ex,center]{subsection in foot}%
            usebeamerfont{section in foot}insertshorttitle
        end{beamercolorbox}%
        pgfsetfillopacity{0.5}begin{beamercolorbox}[wd=.35paperwidth,ht=2.6ex,dp=1ex,center]{subsection in foot}%
            usebeamerfont{section in foot} text{today} hspace{0.1 in} insertframenumber/inserttotalframenumberhfillsetlengthfboxrule{0pt}logohfill
        end{beamercolorbox}%
    }%
    
    vskip0pt%
}

usepackage{xcolor}
usepackage{booktabs}
setbeamercolor{framesource}{fg=gray}
setbeamerfont{framesource}{size=tiny}
newcommand{source}[1]{begin{textblock*}{4cm}(8.7cm,8.6cm)
        begin{beamercolorbox}[ht=0.5cm,right]{framesource}
            usebeamerfont{framesource}usebeamercolor[fg]{framesource} Source: {#1}
        end{beamercolorbox}
end{textblock*}}
title[VeryCoolVeryCool]{smalltextbf{documenttitle}}
subtitle{small DVeryCoolVeryCoolVeryCool}
author[VeryCoolVeryCoolVeryCool] {VeryCoolVeryCool}
institute[]
{} 
date[Winter 2021] % (optional)
{VeryCoolVeryCoolVeryCoolVeryCoolVeryCool vspace{0.1 in}}
newcommand{documenttitle}{VeryCoolVeryCoolVeryCoolVeryCoolVeryCoolVeryCoolVeryCoolVeryCool}


begin{document}
    begin{frame}[plain]
        titlepage
    end{frame}
section{Outline}
begin{frame}
    frametitle[allowframebreaks]{Outline}
    tableofcontents
end{frame}
section[intro]{A Cool Theory}
begin{frame}{Rules}
    frametitle{Brief History }
        These are the principal rules:
end{frame}
end{document}

EDIT: cannot upload the image polyLogo.pdf , thus, uploaded the .PNG version of it. Thus, it just needs to be replaced by polyLogo.PNG.

enter image description here

Any workaround would be appreciated.

One Answer

Well, still don't know why polyLogo.pdf was blurred in beamercolorbox, but replacing it by its .PNG version, the issue was resolved eventually.

Answered by BMB on May 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP