I am making a presentation in which I need two logos at the bottom of a beamer
. I manage to make it work with
\logo{%
\makebox[1\paperwidth]{%
\includegraphics[height=1cm,keepaspectratio]{ntnu.pdf}%
%\hspace{390pt}
\hfill%
\includegraphics[height=1cm,keepaspectratio]{rose.pdf}%
}%
}
or
\logo{%
\makebox[1\paperwidth]{% <--- THIS ONE IS IMPORTANT TOO
\makebox[0pt][l]{\includegraphics[height=1cm]{example-image}}%
%\hspace{440pt}
\hfill%
\makebox[0pt][r]{\includegraphics[height=1cm]{example-image}}%
}%
}
However, alas, they are not perfectly aligned. The right logo is not as close to the edge as the left one (see the red area in the image below).
\hfill
is used to show to exemplify the problem but in reality I would like to use, for example, \hspace{}
so that they are not completely at the edges.
\documentclass[aspectratio=169]{beamer}
\usetheme[compress]{Singapore}
\usepackage{graphicx}
\graphicspath{ {figures/} }
\usefonttheme{serif}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{graphicx}
\setbeamertemplate{caption}[numbered]
\setbeamersize{text margin left=14mm,text margin right=14mm}
\setbeamertemplate{navigation symbols}{}
\title{ON GENERAL RELATIVITY}
\author{John Doe\inst{1}}
\institute[Eidgenössische Technische Hochschule Zürich (ETH)]
{
\inst{1}%
{PhD Candidate at the Department of Physics\\
Eidgenössische Technische Hochschule Zürich (ETH)}}
\date{\today}
\subject{General relativity}
\newcommand{\nologo}{\setbeamertemplate{logo}{}}
% \logo{%
% \makebox[1\paperwidth]{%
% \includegraphics[height=1cm,keepaspectratio]{example-image}%
% %\hspace{390pt}
% \hfill%
% \includegraphics[height=1cm,keepaspectratio]{example-image}%
% }%
% }
\logo{%
\makebox[1\paperwidth]{%
\makebox[0pt][l]{\includegraphics[height=1cm]{example-image}}%
\hspace{440pt}
\hfill%
\makebox[0pt][r]{\includegraphics[height=1cm]{example-image}}%
}%
}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section*{OUTLINE}
\begin{frame}{OUTLINE}
\tableofcontents
\end{frame}
\section{INTRODUCTION}
\begin{frame}{INTRODUCTION}
INSERT INTRODUCTION.
\end{frame}
\section{THEORY}
\begin{frame}{THEORY}
INSERT THEORY.
\end{frame}
\section{METHOD(S)}
\begin{frame}{METHOD(S)}
INSERT METHOD(S).
\end{frame}
\section{RESULTS}
\begin{frame}{RESULTS}
INSERT RESULTS.
\end{frame}
\section{DISCUSSION}
\begin{frame}{DISCUSSION)}
INSERT DISCUSSION.
\end{frame}
\section{CONCLUSION}
\begin{frame}{CONCLUSION}
INSERT CONCLUSION.
\end{frame}
\section*{BIBLIOGRAPHY}
\nologo{
\begin{frame}{BIBLIOGRAPHY}
INSERT BIBLIOGRAPHY
\end{frame}
\section*{ACKNOWLEDGEMENTS}
\begin{frame}{ACKNOWLEDGEMENTS}
\centering{
\includegraphics[height=3cm,keepaspectratio]{example-image}%
\hspace{30pt}
\includegraphics[height=3cm,keepaspectratio]{example-image}%
}
\end{frame}
}
\end{document}
- How do I make the two logos perfectly aligned (with constant separation from the edges on each side)?
- Bonus: How do I remove certain sections from the navigation pane on the top? In this example, I would like to remove
OUTLINE
,BIBLIOGRAPHY
, andACKNOWLEDGEMENTS
.
\logo{% \makebox[1\paperwidth]{% \makebox[0pt][l]{\includegraphics[height=1cm]{example-image}}% \hspace{440pt} \hfill% \makebox[0pt][r]{\includegraphics[height=1cm]{example-image}}% }\kern-2.5pt% }