Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to position two logos (one logo and the titlegraphics) and a overlapping sidebar (graphical element)

I used negative \vskip \hskip for the top left logo and \vspace for the vertical spacing. (which is kinda bad, as the whole thing shifts up and down if the user uses a titlegraphic with not the exact dimensions, making the top logo disappear).

  1. Is there a better way to do this?

  2. Is there a way to generate a colored box on the side which overlaps the titlegraphics?!

Example code:

\documentclass[12pt,a4paper]{beamer}
\usepackage[utf8x]{inputenc}
\usepackage{ucs}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{graphicx}
\author{der Autor}
\title{Titel der Präsentation}
\titlegraphic{\includegraphics[width=\textwidth,height=5.5cm]{sample.eps}}
\subtitle{Unteritel der Präsentation}
%\usetheme{FHNW}

\defbeamertemplate*{title page}{FHNW}[1][]
{
\vskip -0.3cm
\hskip -0.7cm
\logo{\includegraphics[height=0.8cm]{fhnw_de.eps}}
\insertlogo

\vspace{0.5cm}
  \usebeamerfont{title}\inserttitle\par
  \usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par
\vspace{0.5cm}
\hspace{-1.2cm}
\inserttitlegraphic
}

\begin{document}
\begin{frame}
\maketitle
\end{frame}

\end{document} 

Screenshot: screenshot

share|improve this question
    
Which theme(s) are you using? Exactly where exactly do you want the elements (the logos and the colored box)? Can you please compose a little sample document showing the relevant settings and add it as an edit to your question? –  Gonzalo Medina Dec 18 '12 at 22:22
    
Could you provide a MWE (Minimum Working Example) of the code you have used so far? –  Peter Jansson Dec 18 '12 at 22:22
    
@performant without the MWE it's really hard to provide effective help. –  Gonzalo Medina Dec 18 '12 at 22:31
    
Thanks for the hint Gonzalo. I've added the code - it's lacking the images though –  performant Dec 18 '12 at 22:38
    
@performant Not anymore :) –  Vivi Dec 18 '12 at 22:46
add comment

1 Answer 1

up vote 8 down vote accepted

Here's one possibility; the key is to use beamercolorboxes to fix the position for the elements:

\documentclass[12pt,a4paper]{beamer}
\usepackage[utf8x]{inputenc}
\usepackage{ucs}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{makeidx}

\definecolor{myblue}{RGB}{187,224,227}
\definecolor{myorange}{RGB}{255,102,0}

\setbeamercolor{graphbg}{fg=blue,bg=myblue}

\makeatletter
\defbeamertemplate*{title page}{FHNW}[1][]
{%
\vfill
\logo{\includegraphics[height=0.8cm]{cat}}%
\begin{beamercolorbox}[wd=\paperwidth,sep=0.5em,left,ht=0.6cm,dp=0.2cm]{}
\insertlogo
\end{beamercolorbox}
\vskip8pt
\begin{beamercolorbox}[sep=0em,left]{}
\usebeamerfont{title}\inserttitle\par
\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par
\end{beamercolorbox}
\vskip12pt
\hspace*{-0.25\beamer@leftmargin}%
\begin{beamercolorbox}[wd=\dimexpr\textwidth+1.5\beamer@rightmargin\relax,sep=0em,left,rightskip=3em,ht=5cm,dp=0.5cm]{graphbg}
\parbox[t]{30pt}{\textcolor{myorange}{\rule[6pt]{30pt}{4cm}}}%
\makebox[0pt][l]{\inserttitlegraphic}%
\end{beamercolorbox}
\vfill
}
\makeatother

\author{der Autor}
\title{Titel der Präsentation}
\titlegraphic{\includegraphics[width=\linewidth,height=5cm]{cat}}
\subtitle{Unteritel der Präsentation}

\begin{document}

\begin{frame}
\maketitle
\end{frame}

\end{document}

enter image description here

I wasn't sure about the desired positioning for the other information (author, institution, etc.), but you can easily adapt my example code to put those elements at the desired location.

On a side note, there's no need to load graphicx (since beamer internally loads it); also, since amssymb internally loads amsfonts, you can only load the former.

share|improve this answer
    
Exactly what I was looking for! Thank you, kind sir! –  performant Dec 19 '12 at 7:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.