How could I set up a verbatim-environment which has

  • black background
  • white text in scriptsize ?
  • use the listings package.
    – yannisl
    Commented Jan 15, 2011 at 19:38
  • I did, but there it gives me small white lines between each textline. And on the other hand, there seems to be no other way to have completely white text within listings than \color{white}\begin{listing}...\end{listing}\color{black}
    – Produnis
    Commented Jan 15, 2011 at 19:40

1 Answer 1


Here is a solution inspired by the code of the moreverb package and using code lines of it:

    \hsize=\wd0 \the\verbatim@line\par}}%
  \setbox0=\vbox\bgroup \verbatim


alt text


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .