I'm trying to get some source code into my tex-document but only get the error message mentioned in the thread title. I disabled nearly all of the other packages I use but it did not work.

\documentclass[a4paper, 13pt, twosides, openany, liststotoc]{scrbook}

\usepackage[footnote, nohyperlinks, printonlyused, withpage, smaller]{acronym}
\usepackage[top=30mm, left=25mm, right=25mm, bottom=30mm, headsep=10mm, footskip=12mm]{geometry}
\usepackage{amsmath, graphicx, lmodern, fancyhdr, listings, xcolor, acronym, etoolbox, calc, setspace, tabto, enumitem, microtype, chngcntr, xcolor, pdfpages, minted}



public static void Main (string[] args)
    Console.WriteLine ("Hello World!");



I'm actually using all of these packages so I'd really want to find a posibility to include my code in addition to all the other packages. It don't really need to be coloured like what the minted package does but I'd prefer so.

Thanks for every help or useful thougth.




Browse other questions tagged .