Skip to content

Commit

Permalink
Add third party logo command for external supervisors
Browse files Browse the repository at this point in the history
  • Loading branch information
argenos committed Mar 15, 2018
1 parent 4de665c commit 44e241d
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 8 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# HBRS beamer template


You can add a third party logo by using the command `\thirdpartylogo{path/to/your/image}`.

Heavily adapted from [Masaryk University beamper template](https://www.overleaf.com/latex/templates/fibeamer-for-the-faculty-of-arts-at-the-masaryk-university-in-brno/rbtxqwnjyndf).
Binary file modified hbrs-example.pdf
Binary file not shown.
3 changes: 3 additions & 0 deletions hbrs-example.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
\date{\today}
\subject{Test beamer}

% \thirdpartylogo{path/to/your/image}


\begin{document}
{
\begin{frame}
Expand Down
51 changes: 43 additions & 8 deletions theme/beamerouterthemehbrs.sty
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,33 @@
\defbeamertemplate*{title page}{hbrs}{%
\setcounter{framenumber}{0} %Set title frame counter to 0

\begin{tikzpicture}
\node[anchor=south west,yshift=\extrapadding, xshift=\extrapadding] at (current page.south west){
\includegraphics[height=1cm]{theme/images/Logo-HBRS-cyan.png}
};
\node[anchor=south east,yshift=\extrapadding, xshift=-10\extrapadding] at (current page.south east){
\includegraphics[height=1cm]{theme/images/b-it.pdf}
};
\end{tikzpicture}

\ifx\@thirdpartylogo\@empty
\begin{tikzpicture}
\node[anchor=south west,yshift=\extrapadding, xshift=\extrapadding] at (current page.south west){
\includegraphics[height=1cm]{theme/images/Logo-HBRS-cyan.png}
};
\node[anchor=south east,yshift=\extrapadding, xshift=-10\extrapadding] at (current page.south east){
\includegraphics[height=1cm]{theme/images/b-it.pdf}
};
\end{tikzpicture}
\else

\begin{tikzpicture}
\node[anchor=south west,yshift=\extrapadding, xshift=\extrapadding] at (current page.south west){
\includegraphics[height=.7cm]{theme/images/Logo-HBRS-cyan.png}
};
\node[anchor=south east,yshift=\extrapadding, xshift=-10\extrapadding] at (current page.south east){
\includegraphics[height=.7cm]{theme/images/b-it.pdf}
};
\node[anchor=south east,yshift=\extrapadding, xshift=-30\extrapadding] at (current page.south east){
\includegraphics[height=.7cm]{\@thirdpartylogo}
};
\end{tikzpicture}

\fi%



% Input the title
\usebeamerfont{title}%
Expand Down Expand Up @@ -95,13 +114,29 @@
\includegraphics[height=0.45cm]{theme/images/b-it.pdf}
};

\ifx\@thirdpartylogo\@empty
\relax
\else
% If you have added a third party logo, you might need to adjust its position
% change the xshift value to something that suits your needs
\node[anchor=south west,yshift=\extrapadding, xshift=32\extrapadding] at (current page.south west){
\includegraphics[height=0.45cm]{\@thirdpartylogo}
};
\fi%



\node[anchor=south east, yshift=\extrapadding, xshift=-\extrapadding] at (current page.south east) {
\usebeamerfont{title in head/foot}\insertshorttitle~ -
\usebeamerfont{author in head/foot}\textbf{\insertshortauthor}\hspace*{2em}
\usebeamercolor[fg]{framenumber}%
\usebeamerfont{framenumber}%
\insertframenumber/\inserttotalframenumber
};




\end{tikzpicture}
\fi
}{}
Expand Down
2 changes: 2 additions & 0 deletions theme/beamerthemehbrs.sty
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
\usepackage{theme/beamerouterthemehbrs}
\usepackage{theme/beamercolorthemehbrs}

\newcommand{\thirdpartylogo}[1]{\def\@thirdpartylogo{#1}}
\thirdpartylogo{}


\mode<all>
Expand Down

0 comments on commit 44e241d

Please sign in to comment.