I use mdframed to create a black background in a preview environment. Since I could not figure out how to color the preview border black as well, I set it to 0 and included a black line around the content with mdframed. Unfortunately there are small white lines between the mdframed background and the mdframed outer line.
\documentclass[12pt]{article}
\usepackage[dvipsnames]{xcolor}
\usepackage[active,tightpage]{preview}
\renewcommand{\PreviewBorder}{0cm}
\usepackage{mdframed}
\usepackage{lipsum}
\begin{document}
\begin{preview}
\begin{mdframed}[backgroundcolor=black,fontcolor=white,linecolor=black,linewidth=0.5cm]
\section{Title}
\lipsum[10]
\end{mdframed}
\end{preview}
\end{document}
Is there a way to get rid of them? Alternatively, if there is a way to change the color of the preview border, I could circumvent the problem entirely. Thanks in advance for your help :)