0

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}
  • 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 2 '15 at 6:15
  • I have now added a MWE – user6818 Apr 2 '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 2 '15 at 15:01
  • 2
    If you want framed blocks, have a look at tex.stackexchange.com/a/11481/36296 – user36296 Apr 3 '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 4 '15 at 2:06
1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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