Commit 1f882e21 authored by Karl Heuer's avatar Karl Heuer
Browse files

(tex-start-options-string): New option.

(tex-start-tex): Use that variable.
parent 65e7e846
......@@ -95,6 +95,13 @@ otherwise, the file name, preceded by blank, is added at the end."
:type 'string
:group 'tex-run)
(defcustom tex-start-options-string " \\\\nonstopmode\\\\input"
"*TeX options to use when running TeX.
These precede the input file name."
:type 'string
:group 'tex-run
:version "20.4")
;;;###autoload
(defcustom latex-run-command "latex"
"*Command used to run LaTeX subjob.
......@@ -1065,7 +1072,7 @@ If NOT-ALL is non-nil, save the `.dvi' file."
(defun tex-start-tex (command file)
"Start a TeX run, using COMMAND on FILE."
(let* ((cmd (concat command " \\\\nonstopmode\\\\input"))
(let* ((cmd (concat command tex-start-options-string))
(star (string-match "\\*" cmd))
(compile-command
(if star (concat (substring cmd 0 star)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment