rmarkdown-cookbook
rmarkdown-cookbook copied to clipboard
9.6.3 infobox code
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}
}