1

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?

6
  • 2
    Maybe you could show us what you have done? Something we could compile on our side and see what's not working?
    – Ivan
    May 16, 2020 at 19:57
  • You are right. I have edited the question. May 17, 2020 at 8:06
  • 1
    Page 127 of the beamer user guide (version 3.58) explicitly mentions that the beamerboxesrounded environment is not available in article mode.
    – leandriis
    May 17, 2020 at 8:15
  • I was about to say it. Here is the doc
    – Ivan
    May 17, 2020 at 8:24
  • 1
    Have a look at the tcolorbox package which offers much flexibility for box creation and styles.
    – BambOo
    May 17, 2020 at 12:08

1 Answer 1

1

You can provide two different definitions of \dq for different beamer modes.

As your beamercolourbox does not have a background colour or shadow, it seems just changing the text colour would be enough to replicate it for article mode:

%\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}

\mode<presentation>{
  \newcommand{\dq}[1]{
    \begin{beamerboxesrounded}[shadow = false, lower = disc ques body]{}
        #1
    \end{beamerboxesrounded}
  }
}
\mode<article>{
  \newcommand{\dq}[1]{
    \textcolor{oiB}{#1}
  }
}



\mode<all>



\begin{document}

\begin{frame}

\dq{\lipsum[1]} 

\end{frame} 

\end{document}

You must log in to answer this question.

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