0

reading a presentation I found a block with this color combination (image attached) enter image description here

Can someone guide me on how to get a block with these colors?

2
  • 2
    This looks like a tcolorbox, have a look at tex.stackexchange.com/questions/628683/… for an example of using them in beamet Aug 20, 2022 at 15:44
  • 1
    According to the eyedropper in Firefox's web developer tools on my computer, the cream color in the JPEG you posted is #FFFFDD. I'm not using beamer yet, but I think, after converting to decimal, the color could be defined \definecolor{coolcream}{RGB}{255,255,221} and then used for block backgrounds with \setbeamercolor{block}{bg=coolcream}.
    – user97945
    Aug 20, 2022 at 17:00

1 Answer 1

2

This looks like a tcolorbox more than a beamer block:

\documentclass{beamer}
\usepackage[most]{tcolorbox}
\usepackage{amsmath}
\definecolor{cream}{RGB}{255,255,221}

\begin{document}
\begin{frame}
\begin{tcolorbox}[colback=cream, title=Definition, colbacktitle=black!15, coltitle=black]
\begin{align*}
\beta^+(u) & =\limsup_{y\rightarrow\infty} \max_{(a_p)}\left(\left|[0,y]\in S_{y^{1/u}}\right|\frac{\log(y^{1/u})}{e^{-\gamma}y}\right),\\
\beta^-(u) & =\liminf_{y\rightarrow\infty} \max_{(a_p)}\left(\left|[0,y]\in S_{y^{1/u}}\right|\frac{\log(y^{1/u})}{e^{-\gamma}y}\right).\\
\end{align*}
\end{tcolorbox}
\end{frame}
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .