Guest User

Untitled

a guest
May 25th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. documentclass[aspectratio=169]{beamer}
  2. usepackage[skins]{tcolorbox}
  3. usecolortheme{rose}
  4. newenvironment{consoleBox}
  5. {usebeamercolor{block title}usebeamercolor{block body}%
  6. begin{tcolorbox}[sharp corners,frame empty,coltitle=block title.fg,%
  7. colbacktitle=block title.bg,colback=block body.bg,title=Console,%
  8. boxrule=0.5pt,arc=4pt,left=0pt,right=6pt,top=6pt]}
  9. {end{tcolorbox}}
  10. begin{document}
  11. begin{frame}
  12. frametitle{Problem}
  13.  
  14. begin{block}{Console}
  15. This is the desired appearance.
  16. end{block}
  17.  
  18. begin{consoleBox}
  19. This is close but not quite right. The body background is way too
  20. dark and the title background is a little too dark.
  21. end{consoleBox}
  22.  
  23. begin{tcolorbox}[skin=beamer,title=Console]
  24. This is an attempt with skins...one might think that the beamer
  25. skin would use the beamer color theme?
  26. end{tcolorbox}
  27.  
  28.  
  29. end{frame}
  30. end{document}
Add Comment
Please, Sign In to add comment