I am trying to set a dark theme in TeXworks on Mac OS. I found the following link
How can I set a dark theme in TeXworks?
showing how we can do in Windows.
But I am not sure we can do the same in Mac, can we? Could anyone tell me how to do it?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI am trying to set a dark theme in TeXworks on Mac OS. I found the following link
How can I set a dark theme in TeXworks?
showing how we can do in Windows.
But I am not sure we can do the same in Mac, can we? Could anyone tell me how to do it?
Regarding the how-to instructions you found in an earlier query, the only thing that's meaningfully different for TeXworks under MacOS compared TeXworks under Windows is the location of the executable program. If your system has MacTeX, if TeXworks was installed along with MacTeX, and if you chose the default folder names throughout, the executable program should be at
/Applications/TeX/TeXworks.app/Contents/MacOS/TeXworks
The white-on-black instructions should otherwise be exactly the same as in the earlier posting:
Create a file called mystyle.css
(using, say, TeXworks as the editor) with the following contents:
QTextEdit {
background-color: black;
color: white; /* sets the main text color */
}
Save this file in the directory where you keep most (or at least some of) your tex files. E.g., I've saved the file to ~/documents/tex
. (tex
is a directory I created.)
Open a command prompt window and type
/Applications/TeX/TeXworks.app/Contents/MacOS/TeXworks -stylesheet ~/documents/tex/mystyle.css
It may take a few seconds, but then the TeXworks program should start. At first the interior of the window will be all black because, after all, that's what the css file tells it to show. Once you start typing, the material will show up as white on black.
Happy TeXworking!