Quantcast
Channel: How to wrap rounded tcolorbox around lstinline? - TeX - LaTeX Stack Exchange
Browsing latest articles
Browse All 3 View Live

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 Article



Image may be NSFW.
Clik here to view.

Answer 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 Article

Image may be NSFW.
Clik here to view.

How 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
Browsing latest articles
Browse All 3 View Live




Latest Images