Here you go:
var d = new Date();
var nn = "_"+ d.getFullYear()+"_"+ d.getMonth()+"_"+ d.getUTCDay()+".tex";
var fn = editor.fileName().replace(/.tex$/, nn);
This will open the save as dialog when you close a file. You can change the trigger however you want.
I figured out how to manipulate how to manipulate the Style of KOMA Script, as well as TOC, LOT and LOF, generated text, to a .ttf font. Additionally, the style of package acronym generated acronym lists.
First you need to add your font with fontspec. You need to use LuLaTex or XeTeX to use this package:
You can do the following:
In your main.tex change the \setversion macro to:
I did not find an answer to how one can integrate chktex into TexStudio, therefore here is my own answer
If someone is interested, this is how to achieve that on Ubuntu through a custom command:
install chktex (e.g. sudo apt install chktex)
Open TexStudio -> Options -> Configure TexStudio
Enable Show Advanced Options in the botttom left
Go to Build tab and ...
Let's said that you have foo.Rtex in Overleaf:
Save locally as foo.Rnw.
Edit with Rstudio.
Clik on the Compile PDF buttom
Without Rstudio you can also compile the .Rnw files from the command line or within a raw R session, but indeed is easier in this way.
I had this problem. I have three files:
MySty.sty (here defined some new commands, enviroments, etc),
1.tex (here my custom commands not ...