What I'm looking for is a simple latex editor with autocompletion capabilities, live preview, and a night mode which applies to both the code and live preview (so that one can make the preview background be dark and the text light).

I get almost all of these with gummi, which I've been using for years, except now I'm trying to reduce eye strain, and I haven't been able to find a way to make gummi's live preview turn into night mode. I looked at TeXStudio, which also seems to have all the other features (though is kind of unnecessarily burdened with stuff I don't use), but again no luck with night-mode preview.

  • You have the option to change the colour scheme in TeXstudio. Check this out: tex.stackexchange.com/a/108599/117534
    – Troy
    Commented Mar 25, 2017 at 4:07
  • I had tried the exact theme you pointed me to, but it doesn't change the preview background
    – amakelov
    Commented Mar 25, 2017 at 4:08
  • Are you talking about the PDF? For that, you'd have to change the document. (I don't know how gummi's preview works - maybe it doesn't compile and does something else.)
    – cfr
    Commented Mar 25, 2017 at 4:10
  • You mean the PDF? I'm not too sure of the possibilities in that regard then. Apart from actually changing the background colour of your PDF file through hardcoding into your TeX code.
    – Troy
    Commented Mar 25, 2017 at 4:10
  • Oh, I guess you're right I can change it from the TeX code. That's slightly annoying but I think it will have to do for now! :)
    – amakelov
    Commented Mar 25, 2017 at 4:27

2 Answers 2


TeXstudio supports inverting the colors of the pdf.

Changing the option is only possible in the menu of windowed viewer: Configure -> Invert Colors. You can also combine it with Grayscale if you want. The options stays active also when you switch back to the embedded viewer.


One can get close to the nightly mode using following two tricks.

  1. Go to Edit -> Preferences -> Fonts and Colors and select Cobalt theme which is closer to night mode.
  2. Add following code to just before \begin{document} tag:


The above code might perform poorly for colored content, but performs very well for grayscale pdf.


You must log in to answer this question.

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