New answers tagged

0

The other alternative would be to use the changepage package and adjustwidth environment, \usepackage{changepage} \begin{adjustwidth}{.3\textwidth}{} \end{adjustwidth}


4

It's possible to do this by modifying the underlying Pygments style macros. This will work with recent versions of minted, but since it is modifying the internals, it may not always work in the future. You would need to replace the default in \PYGdefault with a different style name if you want to use a different highlighting style. Also, if you want to use a ...


1

So, I figured the \tcblistof thing out. It was the title with an image causing the problem. There are two approaches to this issues: Do not use this image in the title definition, but in an overlay. This keeps the title simple and suitable for the list of listings. Use a list entry to define a title for the list of listings. Here's the solution suited to ...


4

UPDATE: I've looked at this question for some hours, checking the tcolorbox and cleveref documentation (I even asked here for something related to this, although the MWE I initially did was a mess and I deleted the question afterwards), but @cfr gave me clues and finally I found a solution to your problem. You can create and use your own counters, and the ...


10

It is hard to have the minted environment itself as an argument to \censorbox, because it contains verbatim material. At the time where it is passed as an argument, the catcodes are fixed and the verbatimness is basically broken. There are workarounds for this, but I will take another approach, namely saving the output of the minted environment in a box ...


1

To update the previous answers, this is what the manual says about it as 2016: This option will prevent breaklines from working with \mintinline. A \colorbox cannot break across lines. This option will prevent environments from breaking across pages. If you want support for page breaks and advanced options, you should consider a framing package ...



Top 50 recent answers are included