10
votes
2answers
345 views

Rounded corner for the code listing

Is it possible to make a rounded corner for the tex code listing? Given: \documentclass[10pt]{article} \usepackage[usenames,dvipsnames]{xcolor} %used for font color \usepackage[utf8]{inputenc} ...
5
votes
2answers
1k views

Background overflows when using rounded corners for listings (package: `listings`)

I'm using listings to list code in my document, and I want the code to be displayed in a frame with rounded corners and a grey background color. But the background overflows the frame, as if the frame ...
4
votes
2answers
2k views

Can I get a shadowbox with rounded corners? (using `listings` package)

I'm using the listings package as below: \usepackage{listings} \lstnewenvironment{pythoncode}[1][] {\lstset{language=Python, basicstyle=\ttfamily\footnotesize, frame=shadowbox, ...