Line breaks not breaking using varwidth package for color background which is giving compilation error
When we are using varwidth package and the below macro
\newcommand\MyCBox[1]{%
\colorbox{red!60}{\begin{varwidth}{\dimexpr\linewidth-2\fboxsep}#1\end{varwidth}}}
While compiling we are getting the error as ! Undefined control sequence. \dimexpr
Please suggest me how to avoid this error.
When we are using varwidth package and the below macro
\newcommand\MyCBox[1]{%
\colorbox{red!60}{\begin{varwidth}{\dimexpr\linewidth-2\fboxsep}#1\end{varwidth}}}
While compiling we are getting the error as ! Undefined control sequence. \dimexpr
Please suggest me how to avoid this error.
No comments:
Post a Comment