rmarkdown-cookbook icon indicating copy to clipboard operation
rmarkdown-cookbook copied to clipboard

9.6.3 infobox code

Open jdambroise opened this issue 10 months ago • 4 comments

In 9.6.3 it appears there is an error in the following code. The image appears outside of the blackbox not inside. Although I'm playing around to find a solution myself, I wonder if someone can provide a correction quicker than I can figure it.

 \newenvironment{infobox}[1]
   {
   \begin{itemize}
   \renewcommand{\labelitemi}{
     \raisebox{-.7\height}[0pt][0pt]{
       {\setkeys{Gin}{width=3em,keepaspectratio}
         \includegraphics{images/#1}}
     }
   }
   \setlength{\fboxsep}{1em}
   \begin{blackbox}
   \item
   }
   {
   \end{blackbox}
   \end{itemize}
   }

jdambroise avatar Aug 12 '23 19:08 jdambroise