aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKarl Heuer1998-09-04 20:39:26 +0000
committerKarl Heuer1998-09-04 20:39:26 +0000
commit1f882e21d600690d5eb2fa6f5793adc9de107f13 (patch)
tree841309a5b68b8122671287723e02e2cd17493d48 /lisp
parent65e7e846c918d0c079edf8b45a025636f8dd08be (diff)
downloademacs-1f882e21d600690d5eb2fa6f5793adc9de107f13.tar.gz
emacs-1f882e21d600690d5eb2fa6f5793adc9de107f13.zip
(tex-start-options-string): New option.
(tex-start-tex): Use that variable.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/textmodes/tex-mode.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 8cb217e0efd..b80287e50de 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -95,6 +95,13 @@ otherwise, the file name, preceded by blank, is added at the end."
95 :type 'string 95 :type 'string
96 :group 'tex-run) 96 :group 'tex-run)
97 97
98(defcustom tex-start-options-string " \\\\nonstopmode\\\\input"
99 "*TeX options to use when running TeX.
100These precede the input file name."
101 :type 'string
102 :group 'tex-run
103 :version "20.4")
104
98;;;###autoload 105;;;###autoload
99(defcustom latex-run-command "latex" 106(defcustom latex-run-command "latex"
100 "*Command used to run LaTeX subjob. 107 "*Command used to run LaTeX subjob.
@@ -1065,7 +1072,7 @@ If NOT-ALL is non-nil, save the `.dvi' file."
1065 1072
1066(defun tex-start-tex (command file) 1073(defun tex-start-tex (command file)
1067 "Start a TeX run, using COMMAND on FILE." 1074 "Start a TeX run, using COMMAND on FILE."
1068 (let* ((cmd (concat command " \\\\nonstopmode\\\\input")) 1075 (let* ((cmd (concat command tex-start-options-string))
1069 (star (string-match "\\*" cmd)) 1076 (star (string-match "\\*" cmd))
1070 (compile-command 1077 (compile-command
1071 (if star (concat (substring cmd 0 star) 1078 (if star (concat (substring cmd 0 star)