6
votes
1answer
1k views

How to get caption above listing with minted?

I'm using the minted package. How can I get the caption to show before the code in the document? \documentclass[a4paper]{scrartcl} \usepackage{minted} \begin{document} \begin{listing}[H] ...
3
votes
0answers
334 views

The [H] “put it here” placement option doesn't work with floatrow [closed]

I'm using the minted, floatrow, caption, and listing packages to create code blocks like these: To do this, I'm using a hack based on this answer. Here is what I have: ... \usepackage{listings} ...