1

I want to put 2 logos (left and right) only on the first page, and if you can also on the last page

\documentclass{beamer}
\mode<presentation> {
\usepackage[utf8]{inputenc}
\usepackage{tikz,graphicx} 
\usetheme{PaloAlto}

%\setbeamertemplate{footline} % To remove the footer line in all slides uncomment this line
%\setbeamertemplate{footline}[page number] % To replace the footer line in all slides with a simple slide count uncomment this line

%\setbeamertemplate{navigation symbols}{} % To remove the navigation symbols from the bottom of all slides uncomment this line
}

%\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables

%----------------------------------------------------------------------------------------
%   TITLE PAGE
%----------------------------------------------------------------------------------------

\title[Title]{title} % The short title appears at the bottom of every slide, the full title is only on the title page


\institute[UMSS] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space
{
\textit{U} \\
\textit{Fac} \\ % Your institution for the title page
\textit{autor} % Your name
\medskip
%\textit{bofu20131@163.com} % Your email address
}
\date{\today} % Date, can be changed to a custom date
\newlength\imageheight
%\settoheight\imageheight{\includegraphics[width=0.11\paperwidth]{vw.png}}
\makeatletter
  \setbeamertemplate{headline}
  {%
    \ifnum\thepage=\insertsectionstartpage
    \begin{beamercolorbox}[wd=\paperwidth]{frametitle}
      \ifx\beamer@sidebarside\beamer@lefttext%
      \else%
        \hfill%
      \fi%
      \ifdim\beamer@sidebarwidth>0pt%  
       \logo{\includegraphics[width=1.2cm,keepaspectratio]{example-image-a}}
       \logoright{\includegraphics[width=1.2cm,keepaspectratio]{example-image-b}}

        \usebeamercolor[bg]{logo}%
        \vrule width\beamer@sidebarwidth height \beamer@headheight%
        \hskip-\beamer@sidebarwidth%
        \hbox to \beamer@sidebarwidth{\hss\vbox to
          \beamer@headheight{\vss\hbox{\color{fg}\insertlogo}\vss}\hss}%
      \else%
        \vrule width0pt height \beamer@headheight%  
      \fi%
    \end{beamercolorbox}
    \else
    \begin{beamercolorbox}[wd=\beamer@sidebarwidth]{frametitle}
      \ifx\beamer@sidebarside\beamer@lefttext%
      \else%
        \hfill%
      \fi%
      \ifdim\beamer@sidebarwidth>0pt%  
        \usebeamercolor[bg]{logo}%
        \vrule width\beamer@sidebarwidth height \beamer@headheight%
        \hskip-\beamer@sidebarwidth%
        \hbox to \beamer@sidebarwidth{\hss\vbox to
          \beamer@headheight{\vss\hbox{\color{fg}\insertlogo}\vss}\hss}%
      \else%
        \vrule width0pt height \beamer@headheight%  
      \fi%
    \end{beamercolorbox}    
    \fi
  }
%\setbeamerfont{section in sidebar}{size=\fontsize{2}{4}\selectfont}
%\setbeamerfont{subsection in sidebar}{size=\fontsize{2}{4}\selectfont}
%\setbeamerfont{subsubsection in sidebar}{size=\fontsize{2}{4}\selectfont}



\makeatother

\begin{document}

\maketitle

\section{Section 1}
\begin{frame}
\frametitle{Section 1}
\end{frame}

\subsection{Subsection 1.1}
\begin{frame}
bla
\end{frame}

\subsection{Subsection 1.2}
\begin{frame}
bla
\end{frame}


\end{document}

but this is the result:

enter image description here

3

In your previous question you had logos on both sites but explicitly removed them for the title page. If you want them only on your title page, do it the other way round:

\documentclass{beamer}
\usetheme{Berkeley}

\def\insertlogoright{\usebeamertemplate*{logoright}}
\def\logoright{\setbeamertemplate{logoright}}

\makeatletter
  \defbeamertemplate*{headline}{mycustom theme}
  {%
    \begin{beamercolorbox}[wd=\paperwidth]{frametitle}
      \ifx\beamer@sidebarside\beamer@lefttext%
      \else%
        \hfill%
      \fi%
      \ifdim\beamer@sidebarwidth>0pt%  
        \usebeamercolor[bg]{logo}%
        \vrule width\beamer@sidebarwidth height \beamer@headheight%
        \hskip-\beamer@sidebarwidth%
        \hbox to \beamer@sidebarwidth{%
        \hss%
        \vbox to \beamer@headheight{%
        \vss\hbox{\color{fg}\insertlogo}\vss%
        }%
        \hss}%
        \hfill%
        \hbox to \beamer@sidebarwidth{%
        \hss%
        \vbox to \beamer@headheight{%
        \vss\hbox{\color{fg}\insertlogoright}\vss%
        }%
        \hss}%
      \else%
        \vrule width0pt height \beamer@headheight%  
      \fi%
    \end{beamercolorbox}
  }
\makeatother

\logo{\includegraphics[width=1.2cm,keepaspectratio]{example-image-a}}
\logoright{\includegraphics[width=1.2cm,keepaspectratio]{example-image-b}}


\title{The Title}
\author{The Author}
\institute{The Institute}

\begin{document}

%{
% \setbeamertemplate{logo}{}
% \setbeamertemplate{logoright}{}
 \begin{frame}
  \maketitle
 \end{frame}
%}

\setbeamertemplate{logo}{}
\setbeamertemplate{logoright}{}

\begin{frame}{this}
 test
\end{frame}

\end{document}

enter image description here


EDIT

If you'd like to combine this with the modified headline from https://tex.stackexchange.com/a/458358/36296 you could introduce a different headline after the title page:

\documentclass{beamer}
\usetheme{Berkeley}

\def\insertlogoright{\usebeamertemplate*{logoright}}
\def\logoright{\setbeamertemplate{logoright}}

\makeatletter
  \defbeamertemplate*{headline}{mycustom theme}
  {%
    \begin{beamercolorbox}[wd=\paperwidth]{frametitle}
      \ifx\beamer@sidebarside\beamer@lefttext%
      \else%
        \hfill%
      \fi%
      \ifdim\beamer@sidebarwidth>0pt%  
        \usebeamercolor[bg]{logo}%
        \vrule width\beamer@sidebarwidth height \beamer@headheight%
        \hskip-\beamer@sidebarwidth%
        \hbox to \beamer@sidebarwidth{%
        \hss%
        \vbox to \beamer@headheight{%
        \vss\hbox{\color{fg}\insertlogo}\vss%
        }%
        \hss}%
        \hfill%
        \hbox to \beamer@sidebarwidth{%
        \hss%
        \vbox to \beamer@headheight{%
        \vss\hbox{\color{fg}\insertlogoright}\vss%
        }%
        \hss}%
      \else%
        \vrule width0pt height \beamer@headheight%  
      \fi%
    \end{beamercolorbox}
  }
\makeatother

\logo{\includegraphics[width=1.2cm,keepaspectratio]{example-image-a}}
\logoright{\includegraphics[width=1.2cm,keepaspectratio]{example-image-b}}


\title{The Title}
\author{The Author}
\institute{The Institute}

\begin{document}

%{
% \setbeamertemplate{logo}{}
% \setbeamertemplate{logoright}{}
 \begin{frame}
  \maketitle
 \end{frame}
%}

\setbeamertemplate{logo}{}
\setbeamertemplate{logoright}{}


\makeatletter
  \setbeamertemplate{headline}
  {%
    \ifnum\thepage=\insertsectionstartpage
    \begin{beamercolorbox}[wd=\paperwidth]{frametitle}
      \ifx\beamer@sidebarside\beamer@lefttext%
      \else%
        \hfill%
      \fi%
      \ifdim\beamer@sidebarwidth>0pt%  
        \usebeamercolor[bg]{logo}%
        \vrule width\beamer@sidebarwidth height \beamer@headheight%
        \hskip-\beamer@sidebarwidth%
        \hbox to \beamer@sidebarwidth{\hss\vbox to
          \beamer@headheight{\vss\hbox{\color{fg}\insertlogo}\vss}\hss}%
      \else%
        \vrule width0pt height \beamer@headheight%  
      \fi%
    \end{beamercolorbox}
    \else
    \begin{beamercolorbox}[wd=\beamer@sidebarwidth]{frametitle}
      \ifx\beamer@sidebarside\beamer@lefttext%
      \else%
        \hfill%
      \fi%
      \ifdim\beamer@sidebarwidth>0pt%  
        \usebeamercolor[bg]{logo}%
        \vrule width\beamer@sidebarwidth height \beamer@headheight%
        \hskip-\beamer@sidebarwidth%
        \hbox to \beamer@sidebarwidth{\hss\vbox to
          \beamer@headheight{\vss\hbox{\color{fg}\insertlogo}\vss}\hss}%
      \else%
        \vrule width0pt height \beamer@headheight%  
      \fi%
    \end{beamercolorbox}    
    \fi
  }
\makeatother

\section{title}

\begin{frame}{this}
 test
\end{frame}

\begin{frame}{this}
 test
\end{frame}

\end{document}
  • modify your answer with my example that I put in this question please – x-rw Nov 5 '18 at 14:02
  • @x-rw The example from your question does not compile and I also don't have the necessary images – user36296 Nov 5 '18 at 14:03
  • i edited my question with example-image-a – x-rw Nov 5 '18 at 14:07
  • @x-rw Still does not compile, undefined control sequence. – user36296 Nov 5 '18 at 14:07
  • overleaf.com/project/5bdf11657a791028b22d25ce there is my code – x-rw Nov 5 '18 at 14:09

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.