]> git.eshelyaron.com Git - emacs.git/commitdiff
(tex-start-options-string): New option.
authorKarl Heuer <kwzh@gnu.org>
Fri, 4 Sep 1998 20:39:26 +0000 (20:39 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 4 Sep 1998 20:39:26 +0000 (20:39 +0000)
(tex-start-tex): Use that variable.

lisp/textmodes/tex-mode.el

index 8cb217e0efdf3cac633ef1acf1d5e0cd5258d982..b80287e50de98797afb2707f8c95e91e9fe86818 100644 (file)
@@ -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)