Problem: I created a custom dark theme for TeXworks (a LaTeX editor) that I am happy with but I am running into an issue when opening files with the .tex
file extension in folders when TeXworks is not activated. I changed via properties my TeXworks toolbar shortcut to append this code to the Target:
C:texlive2021binwin32texworks.exe -stylesheet "C:UsersAcerDocumentsProgrammingLaTeXCSS Stylesdarkbg.css"
where darkbg.css
is the custom style file that enables the TeXworks editor dark theme. I also appended -stylesheet "C:UsersAcerDocumentsProgrammingLaTeXCSS Stylesdarkbg.css"
to my desktop shortcut of TeXworks which when opening .tex
files within folders still opened with the default white theme.
Seeing that they were all calling the same .exe
, I found the location of the TeXworks executable in C:texlive2021binwin32
but when opening the properties, I cannot see a way to append the -stylesheet
path to it to set it globally:
The advanced properties do not glean anything useful.
Question: How can I change the texworks.exe
executable to launch with the addition of the -stylesheet "C:UsersAcerDocumentsProgrammingLaTeXCSS Stylesdarkbg.css
path or via any alternative way? It is only a minor issue as I can open a TeXworks window, then open the file and it automatically loads the dark theme but I would prefer for it not to be like this if possible please!
This is my first question here and I am more used to TeX.SE question etiquette so if you need anything further please ask.