I'm doing a beamer presentation and for this I'm using a background image on each slide. To have a readable text I put it on a untitled block with background transparency (cf image).
My problem is the overlap between the block's header and the block's body : as you can see, together, the element's transparency is lower because this overlap.
I think I've two solution :
- reduce the height of the block's header
- extend the space between header and body's block
But I don't know how to do this. Can someone explain me how to do this properly ? Or may be existing an other (and simpler) solution…
Thank you
Here is my code :
\documentclass{beamer}
\usepackage{beamerbasethemes}
\usepackage{calc}
\usepackage{ifthen}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[no-math]{fontspec}
\usepackage{ragged2e}
\usepackage{graphics}
\usepackage[frenchb]{babel}
\usepackage{nicefrac}
\usepackage{xcolor}
\usepackage{calc}
\usepackage{tikz}
% link to the backgroundimage
% image should be in the same directory as the other files
\def\blackboard@backgroundimagefile{bg.jpg}
\DeclareOptionBeamer{backgroundimagefile}{\def\blackboard@backgroundimagefile{#1}}
\ProcessOptionsBeamer
\mode<presentation>
\pgfdeclareimage[interpolate=true, height=\the\paperheight, width=\the\paperwidth]{backgroundImage}{\blackboard@backgroundimagefile}
% stretch background image over the entire page
\setbeamertemplate{background}{
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle (\the\paperwidth, \the\paperheight);
\pgftext[at=\pgfpoint{0cm}{0cm}, left, base]{\pgfuseimage{backgroundImage}};
\end{tikzpicture}
}
\setbeamertemplate{blocks}[rounded][shadow=false]
\addtobeamertemplate{block begin}{\pgfsetfillopacity{0.75}}{\pgfsetfillopacity{1}}
\begin{document}
\begin{frame}{Projet}{Axe 1 : Petite enfance et découverte}
\begin{block}{}
\begin{itemize}
\item A deux ans, 90\% de psychomotricité globale et 10\% de jeux et d'activités sur surface élastique
\item A 3 ans, 80\% de psychomotricité globale et 20\% de jeux et d'activités sur surface élastique
\item A 4 ans, 65\% de psychomotricité globale et 35\% d'activités sur surface rebondissante
\item A 5 ans, 50\% de psychomotricité globale et 50\% d'éducation aérienne.
\end{itemize}
\vfill
En introduisant ainsi les surfaces élastiques, cela nous permettrait également une détection précoce des talents et aptitudes des enfants, pouvant alors à les orienter vers des disciplines plus appropriées une fois l’âge venu.
\end{block}
\end{frame}
\end{document}

