I see that many people use these settings:
"args": [
"-synctex=1",
"--shell-escape",
"-interaction=nonstopmode",
"%DOCFILE%"
Can anyone explain what these arguments mean and do?
I see that many people use these settings:
"args": [
"-synctex=1",
"--shell-escape",
"-interaction=nonstopmode",
"%DOCFILE%"
Can anyone explain what these arguments mean and do?
Generally see the manual page of pdftex, xelatex or lualatex for information about the engine options and the manual of your gui/editor/TeX runner for information about its features.
-synctex=1 (or --synctex=1)Do the basic synchronization between the editor and the PDF viewer. For information about the synchronization see the documentation of your editor and your PDF viewer. Note: Value 1 is not the only available value. The synctex manual explains other numbers (also depending on the features of the editor and the PDF viewer).
--shell-escapeAllow the TeX engine to run every application without any security check. This option is not recommended for foreign documents, you've not inspected before. Because someone could, e.g., delete directories or write other harmful code. For your own documents it is OK, because you should know, what you are doing.
--interaction=nonstopmodePrevents TeX to stop on the first error. So TeX will try to continue, even if there are syntax errors in your code. This often results in several more errors than really exist.
%DOCFILE%A placeholder for the (main) document file. This will be replaced by the caller and therefore is not a feature of the TeX engine but the system you are using with this configuration. You can find more information in the corresponding manual.