user12703198 (imported from SE)
I am trying to convert a beamer presentation (which cointains usage of the environment beamerboxesrounded and works fine) into an article using the package beamerarticle, but I get the message

> Environnment beamerboxesrounded undefined

This is the code that does not work:


%\documentclass[Palatino, hyperref={pdfpagelabels=false}]{beamer}

\documentclass[12pt]{article}
\usepackage[noxcolor]{beamerarticle}

\usepackage[utf8]{inputenc} % usually not needed (loaded by default)
\usepackage[T1]{fontenc}
\usepackage[italian]{babel}

\usepackage{lipsum,wrapfig,xcolor}

\setbeamercovered{dynamic}

\useoutertheme{infolines}

\usetheme{Singapore} % NO

\xdefinecolor{oiB}{rgb}{0.22,0.52,0.72}

\setbeamercolor{disc ques body}{fg=oiB}

\newcommand{\dq}[1]{
\begin{beamerboxesrounded}[shadow = false, lower = disc ques body]{}
#1
\end{beamerboxesrounded}
}

\begin{document}

\begin{frame}

\dq{\lipsum[1]}

\end{frame}

\end{document}


It does work fine if I replace the first three lines with


\documentclass[Palatino, hyperref={pdfpagelabels=false}]{beamer}

%\documentclass[12pt]{article}
%\usepackage[noxcolor]{beamerarticle}


What should I do?
samcarter
beamerboxesrounded is primarily used as an internal tool for beamer to set up various boxed things, for example the block environment, which will work both in beamer and beamerarticle.

As far as I can see the only special configuration of your \dp macro is the text colour (your theme does anyway not have a shadow). You can make the same colour change with block like this:


\documentclass[Palatino, hyperref={pdfpagelabels=false}]{beamer}

%\documentclass[12pt]{article}
%\usepackage[noxcolor]{beamerarticle}

\usepackage[utf8]{inputenc} % usually not needed (loaded by default)
\usepackage[T1]{fontenc}
\usepackage[italian]{babel}

\usepackage{lipsum,wrapfig,xcolor}

\setbeamercovered{dynamic}

\useoutertheme{infolines}

\usetheme{Singapore} % NO

\xdefinecolor{oiB}{rgb}{0.22,0.52,0.72}

\setbeamercolor{disc ques body}{fg=oiB}

\newcommand{\dq}[1]{
\begingroup
\setbeamercolor{block body}{parent=disc ques body}
\begin{block}{}%
#1
\end{block}
\endgroup
}

\begin{document}

\begin{frame}

\dq{\lipsum[1]}

\begin{block}{title}
content...
\end{block}

\end{frame}

\end{document}