whenever I'm trying to compile LaTeX using TeXmaker, my document provides the following error:

pdfTeX error (\pdfcolorstack): not allowed in DVI mode (\pdfoutput <= 0).\set@color ->\pdfcolorstack@pdfcolorstack push{\current@color }\aftergroup... \color{black}"

I could not find a solution for this, as people with a similar error message tried to change colors, but I'm just looking to get rid of this error message, but cannot make a sense out of it. The .tex-file is otherwise working fine, and I can build the PDF with no problem whatsoever, but this error message is bugging me.

What do? Thank you in advance.

  • 3
    Welcome to TeX.SX! Please consider providing a MWE in order for people to be able to reproduce your problem and help you.
    – KersouMan
    Commented Dec 11, 2019 at 9:08
  • 1
    you seem to be using latex not pdflatex but forcing pdflatex color options. How are you loading color, and calling latex? Commented Dec 11, 2019 at 9:11

1 Answer 1


make sur that you are compiling using pdflatex not latex pdflatex


You must log in to answer this question.

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