My question
How do I wrap the frame environment in beamer to have it in a tcolorbox in \mode<article> ? (and not just the title as below)
Context
I use beamer and beamarticle.
I'd like to highlight the frames in a tcolorbox when I use \mode<article>.
It enables me to see what is in the notes vs the shorter version that should be in the frames.
I understand I need to change the \setbeamertemplate with the right key for the frame environment.
I'd like what's in the frame to be a wrapped in a tcolorbox in \mode<article>
(not just the title as in MWE with an error).
I'd like also to have the Title(+Subtitle) as the title of the tcolorbox.
MWE
\documentclass[11pt]{article}
\usepackage{xcolor}
\usepackage[envcountsect]{beamerarticle}
\usepackage{tcolorbox}
\mode<article>
{
\setbeamertemplate{frame begin}{%
\begin{tcolorbox}[
colback=red!20,
colframe=red!60,
arc=4mm,
title={\insertframetitle \emph{\insertframesubtitle}},
coltitle=red!50!black,
fonttitle=\bfseries\scshape,
detach title,
before upper={\tcbtitle\par}
]
}%
\setbeamertemplate{frame end}{\end{tcolorbox}}
}
\begin{document}
\begin{frame}
{Title of the frame}
{Subtitle of the frame}
\begin{itemize}
\item first
\item Second
\item third
\end{itemize}
\end{frame}
\end{document}


tcolorboxenvironment seems to be more tricky. – May 31 '20 at 18:15tcolorboxes: here. You can make it work for the above scenario. However, there will always be scenarios in which it fails.) – May 31 '20 at 19:04\insertframtitle/\insertframetitlebefore the actual start of theframeso\frametitle/subtitleare not defined yet, leading to and empty\tcbtitle. Moreover, it seems thetcolorboxhas trouble with the\begin{frame}{<frametitle>}{<framesubtitle>}format see the below (not really an answer) proposal. – BambOo Jun 01 '20 at 13:17