Answer by StefanH for How to wrap rounded tcolorbox around lstinline?
The \lstinline wants the argument between two symbols, like \lstinline!for!, where ! is not in the argument. So what you want your command to do is \Colorbox{MyGray}{\lstinline!for!} where for is the...
View ArticleAnswer by samcarter_is_at_topanswers.xyz for How to wrap rounded tcolorbox...
The tcolorbox documentation has an example on p. 21 which shows how to use \NewTotalTCBox with \lstinline. Adapted to your case:\documentclass{article}\usepackage[most]{tcolorbox}\lstset{ language=c++,...
View ArticleHow to wrap rounded tcolorbox around lstinline?
I would like to have boxes around \lstinline. From another question I found the \xpretocmd trick with \Colorbox, but I cannot manage to apply it with \tcbox. Is there a...
View Article
More Pages to Explore .....