Dark Theme for TeXstudio
This theme is based on the theme provided by Master Prodigy user on YouTube. Check out his amazing LaTeX tutorials.
The math mode is intact and I tweaked some colors, mainly: put text to white, comments to green, keywords to orange, extra-keywords to blue, environment to yellow and ...
For making easier to look at the errors & find/replace highlightnings I changed:
Line highlighting
line:error -> from HSV(10,64,255) #FFC9BF to HSV(10,150,255) #FF8269
line:warning -> from HSV(56,64,255) #FFFABF to HSV(56,150,255) #FFF569
line:badbox -> from HSV(218,64,255) #BFD6FF to HSV(218,150,255) #69A0FF
Search
replacement -> from HSV(0,33,255) #FFDEDE to HSV(0,150,255) #FF6969
Backup your TeXstudio settings.
Go to menu bar -> Click in 'Options' -> Click on 'Save Profile...'
Firstly, this repo was intended for helping to replace the text editor colors but as soon as I realize that TeXstudio have various dark IDE themes I decided to add it.
Basically you can only change the text editor colors or change the text editor colors + the IDE theme
To change to the dark IDE theme:
- Go to menu bar -> Click in 'Options' -> Click on 'Configure TeXstudio...'
- In the Configure TeXstudio window clic on 'General' tab.
- In the 'Appereance' group choose the style of your preference
- In 'Color Scheme' select 'Modern - dark'
- Clic OK, most times no need to restart TeXstudio
- If TeXstudio does not look full dark repeat step 1 and continue with the next steps, if does restart TeXstudio
- In the left-bottom corner mark the 'Show Advanced Options' checkbox
- In the 'General' tab, in the 'Appereance' group mark the 'Ignore Most System Colors' checkbox
- Restart TeXstudio
Now we can proceed to change the text editor colors.
- Download the latest release.
- Open TeXstudio.
- Export your actual profile (same procedure as backup).
- Open your *.txsprofile file on any text editor.
- Find the "[formats]" string or "[formatsdark]" string if applies.
- Copy the content from "Dark-TeXstudio.txt" under the "[formats]"/"[formatsdark]" string, if it there is any text under overwrite it.
- Save the file.
- Go to menu bar -> Click in 'Options' -> Click on 'Load Profile...' and select the file your *.txsprofile file.
- Restart TeXstudio.
- Enjoy!
This method could overwrite your shortcuts, recommended if you have not tweaked any configuration.
- Download the latest release.
- Open TeXstudio.
- Go to menu bar -> Click in 'Options' -> Click on 'Load Profile...' and select the file "Dark-TeXstudio-text-editor.txsprofile" for change only the text editor colors or select the file "Full-Dark-TeXstudio.txsprofile" for change both IDE and text editor.
- Restart TeXstudio.
- Enjoy!
There are 2 methods:
- Creating the document itself with a dark page color and light font color
- Making the internal pdf viewer invert colors.
We can change colors in our document using the the xcolor package.
Type texdoc xcolor
in your terminal for help.
This method does not inverts colors of pictures and some elements like boxes.
Recommendation: For better readability try using colors in the scale of gray, the contrast should not be very high as in the black background & white foreground combination.
% To join the dark side add these lines to the preamble (before \begin{document})
\usepackage{xcolor}
\pagecolor[HTML]{111111} % dark color
\color[HTML]{EEEEEE} % light color
At the end you will need to comment those lines to get a typical black & white document.
If you just want the internal pdf viewer does the job follow the next steps, thanks to ZeliTheZealot for the advice.
This method inverts colors of everything, including pictures and elements like boxes.
- Go to menu bar -> Click in 'Options' -> Click on 'Configure TeXstudio...'
- In the Configure TeXstudio window clic on 'Internal PDF Viewer' tab
- In the 'Paper Color' box choose a light gray color, #D1CFCF for example
- Switch to Windowed Viewer (right next to internal viewer 'Close' button)
- Compile and view the changes
- In the Windowed Viewer go to menu bar, do Configure -> Invert Colors
- Switch back to Embedded Viewer When you open the pdf with an external pdf viewer you will see the typical black & white document.