So I started debugging by commenting out lines in my preamble, and found that the colors came back whenever I commented out my use of the pst-infixplot package.
Below is a MWE that gives me the error:
Code: Select all
\documentclass{article}
\usepackage[dvipsnames]{xcolor}
\usepackage{pstricks}
\usepackage{pst-infixplot}
\usepackage{listings}
\lstloadlanguages{Matlab}
\lstset{ commentstyle=\color{Periwinkle}, stringstyle=\color{PineGreen} }
\lstdefinestyle{mystyle}{ language=Matlab, morekeywords={sin,plot,fprintf}, morecomment=[l][\color{Periwinkle}]{\%} }
\begin{document}
\begin{lstlisting}[style=mystyle]
% Dette er en test-m-fil til at se hvordan listings klarer sig
x = 1:10:10000; y = sin(x);
plot(x,y,'.')
fprintf(['hej med dig - ',num2str(x(2)),' ja den var lidt kedelig'])
\end{lstlisting}
\end{document}
My system is the newest version of MikTeX (2.9) and TeXnicCenter.
Does everyone else get the same error, or is there something wrong with my code? Can anyone figure out why this error is there?
