2

Can I get coloured highlight all around the block? (currently its just highlighted/shadowed only around the bottom edge and the right edge)

\documentclass{beamer}

\mode<presentation>
{
\usetheme{CambridgeUS}   
\usecolortheme{default} 
\usefonttheme{default}  
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}[numbered]
} 
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\title[Your Short Title]{Your Presentation}
\author{AA}
\institute{SS}
\date{Date of Presentation}

\begin{document}
\begin{frame}
\titlepage
\end{frame}

\section{Introduction}
\begin{frame} 
bLAH bLAH
\pause
\\
\begin{block}{}
BLAH
\end{block} 

\end{frame} 
\end{document}
user6818
  • 291
  • 1
  • 3
  • 9
  • Those who would love to help you will welcome your MWE. Any code you could provide is a great starting point for them. – Malipivo Apr 02 '15 at 06:15
  • I have now added a MWE – user6818 Apr 02 '15 at 14:17
  • So you want the highlight around the box to be colored, but the background of the box itself to remain white? – erik Apr 02 '15 at 15:01
  • Yes - at least get the highlight to be all around the box rather than just at the bottom and right! – user6818 Apr 02 '15 at 16:09
  • 2
    If you want framed blocks, have a look at http://tex.stackexchange.com/a/11481/36296 – samcarter_is_at_topanswers.xyz Apr 03 '15 at 23:34
  • 1
    As the answers there show, it will be easier to use tcolorboxes than to hack beamer's block environment. Note that it isn't entirely clear what you want. Drop shadows are inherently directional. So probably you do want a frame like that in the link samcarter pointed to? In that case, look at the answer there using tcolorbox. – cfr Apr 04 '15 at 02:06

1 Answers1

3

A simple tcolorbox solution:

\documentclass{beamer}
\usetheme{CambridgeUS}

\usepackage[most]{tcolorbox}

\begin{document} \begin{frame} \begin{tcolorbox}[enhanced,colframe=white,colback=white, fuzzy halo = 1mm with gray] Preface \end{tcolorbox} \end{frame} \end{document}

enter image description here

The code can be further simplified with the new tcolorbox inner theme (https://www.ctan.org/pkg/beamertheme-tcolorbox )

\documentclass{beamer}
\usetheme{CambridgeUS}

\useinnertheme[shadow=false]{tcolorbox} \tcbset{fuzzy halo=1mm with gray}

\begin{document} \begin{frame} \begin{block}{Title} Preface \end{block} \end{frame} \end{document}

enter image description here