Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[aspectratio=169]{beamer}
- usepackage[skins]{tcolorbox}
- usecolortheme{rose}
- newenvironment{consoleBox}
- {usebeamercolor{block title}usebeamercolor{block body}%
- begin{tcolorbox}[sharp corners,frame empty,coltitle=block title.fg,%
- colbacktitle=block title.bg,colback=block body.bg,title=Console,%
- boxrule=0.5pt,arc=4pt,left=0pt,right=6pt,top=6pt]}
- {end{tcolorbox}}
- begin{document}
- begin{frame}
- frametitle{Problem}
- begin{block}{Console}
- This is the desired appearance.
- end{block}
- begin{consoleBox}
- This is close but not quite right. The body background is way too
- dark and the title background is a little too dark.
- end{consoleBox}
- begin{tcolorbox}[skin=beamer,title=Console]
- This is an attempt with skins...one might think that the beamer
- skin would use the beamer color theme?
- end{tcolorbox}
- end{frame}
- end{document}
Add Comment
Please, Sign In to add comment