0

This question already has an answer here:

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[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\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}

\begin{document}

\begin{minted}{csharp}

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

\end{minted}

\end{document}

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.

Greetings

marked as duplicate by Schweinebacke, egreg, CarLaTeX, Troy, Bobyandbob Nov 7 '17 at 9:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.