# Tag Info

0

One possible solution (thanks Tom Bombadil) would split the code in more minted blocks. However, this also shows some problem. (see below) What I tried is the following code \begin{minted}[linenos=true,fontsize=\footnotesize,breaklines=true]{cpp} ... if (is_continuous<T>::value && value.size() == 0) ar.write(path, ...

0

This is a very common problem, and is related to the way listings processes its input. When you escape within a listing, no listing-related processing occurs, so you'll find that not only the formatting changes, but also the natural spacing. Moreover, you'll notice a difference between the spacing supplied via lstlisting and the inline lstinline. Either way, ...

2

According to the manual of minted, a minipage and an underlying \colorbox is used if the bgcolor=... option is applied. Since \colorbox uses the \fboxsep length as separation between text and box 'frame', it's sufficient to change \fboxsep. Applying a patch to \minted@inputpyg@inline this will succeed: \xpatchcmd{\minted@inputpyg@inline}{% \colorbox% ...

Top 50 recent answers are included