[texworks] Scripting: Open new file with a specified name

Henrik Skov Midtiby henrikmidtiby at gmail.com
Fri Nov 4 11:38:22 CET 2011


I would like to make a script that opens a new file and save it with a
specified name.

The following approach does not work

The use case I wan't to handle is the following
A new line with the following content have just been entered
By placing the cursor inside the curly brackets and invoking the
script, texworks should create a new file with the name
"filethatdoesnotexist.tex" in the same directory as the current file.

Any hints?

Best regards,

More information about the texworks mailing list