Variable: tex-compile-commands
tex-compile-commands is a variable defined in tex-mode.el.gz.
Value
Large value
(((concat "pdf" tex-command " " tex-start-options " "
(if
(< 0
(length tex-start-commands))
(shell-quote-argument tex-start-commands))
" %f")
t "%r.pdf")
((concat "xe" tex-command " " tex-start-options " "
(if
(< 0
(length tex-start-commands))
(shell-quote-argument tex-start-commands))
" %f")
t "%r.pdf")
((concat "lua" tex-command " " tex-start-options " "
(if
(< 0
(length tex-start-commands))
(shell-quote-argument tex-start-commands))
" %f")
t "%r.pdf")
((concat tex-command " "
(if
(< 0
(length tex-start-commands))
(shell-quote-argument tex-start-commands))
" %f")
t "%r.dvi")
("xdvi %r &" "%r.dvi")
("\\doc-view \"%r.pdf\"" "%r.pdf")
("xpdf %r.pdf &" "%r.pdf")
("gv %r.ps &" "%r.ps")
("yap %r &" "%r.dvi")
("advi %r &" "%r.dvi")
("gv %r.pdf &" "%r.pdf")
("bibtex %r" "%r.aux" "%r.bbl")
("makeindex %r" "%r.idx" "%r.ind")
("texindex %r.??")
("dvipdfm %r" "%r.dvi" "%r.pdf")
("dvipdf %r" "%r.dvi" "%r.pdf")
("dvips -o %r.ps %r" "%r.dvi" "%r.ps")
("ps2pdf %r.ps" "%r.ps" "%r.pdf")
("lpr %r.ps" "%r.ps"))
Documentation
List of commands for tex-compile.
Each element should be of the form (FORMAT IN OUT) where
FORMAT is an expression that evaluates to a string that can contain
- %r the main file name without extension.
- %f the main file name.
IN can be either a string (with the same % escapes in it) indicating
the name of the input file, or t to indicate that the input is all
the TeX files of the document, or nil if we don't know.
OUT describes the output file and is either a %-escaped string
or nil to indicate that there is no output file.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/tex-mode.el.gz
(defvar tex-compile-commands
`(,@(mapcar (lambda (prefix)
`((concat ,prefix tex-command
" " tex-start-options
" " (if (< 0 (length tex-start-commands))
(shell-quote-argument tex-start-commands))
" %f")
t "%r.pdf"))
'("pdf" "xe" "lua"))
((concat tex-command
" " (if (< 0 (length tex-start-commands))
(shell-quote-argument tex-start-commands))
" %f")
t "%r.dvi")
("xdvi %r &" "%r.dvi")
("\\doc-view \"%r.pdf\"" "%r.pdf")
("xpdf %r.pdf &" "%r.pdf")
("gv %r.ps &" "%r.ps")
("yap %r &" "%r.dvi")
("advi %r &" "%r.dvi")
("gv %r.pdf &" "%r.pdf")
("bibtex %r" "%r.aux" "%r.bbl")
("makeindex %r" "%r.idx" "%r.ind")
("texindex %r.??")
("dvipdfm %r" "%r.dvi" "%r.pdf")
("dvipdf %r" "%r.dvi" "%r.pdf")
("dvips -o %r.ps %r" "%r.dvi" "%r.ps")
("ps2pdf %r.ps" "%r.ps" "%r.pdf")
("lpr %r.ps" "%r.ps"))
"List of commands for `tex-compile'.
Each element should be of the form (FORMAT IN OUT) where
FORMAT is an expression that evaluates to a string that can contain
- `%r' the main file name without extension.
- `%f' the main file name.
IN can be either a string (with the same % escapes in it) indicating
the name of the input file, or t to indicate that the input is all
the TeX files of the document, or nil if we don't know.
OUT describes the output file and is either a %-escaped string
or nil to indicate that there is no output file.")