Function: TeX-mode-specific-command-menu-entries
TeX-mode-specific-command-menu-entries is a byte-compiled function
defined in tex.el.
Signature
(TeX-mode-specific-command-menu-entries MODE)
Documentation
Return the entries for a Command menu specific to the major MODE.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-mode-specific-command-menu-entries (mode)
"Return the entries for a Command menu specific to the major MODE."
(append
`("Command on"
[ "Master File" TeX-command-select-master
:keys "C-c C-c" :style radio
:selected (eq TeX-command-current #'TeX-command-master)
:help "Commands in this menu work on the Master File"]
[ "Buffer" TeX-command-select-buffer
:keys "C-c C-b" :style radio
:selected (eq TeX-command-current #'TeX-command-buffer)
:help "Commands in this menu work on the current buffer"]
[ "Region" TeX-command-select-region
:keys "C-c C-r" :style radio
:selected (eq TeX-command-current #'TeX-command-region)
:help "Commands in this menu work on the region"]
[ "Fix the Region" TeX-pin-region
:active (or (if prefix-arg
(<= (prefix-numeric-value prefix-arg) 0)
(and (boundp 'TeX-command-region-begin)
(markerp TeX-command-region-begin)))
(TeX-active-mark))
;;:visible (eq TeX-command-current 'TeX-command-region)
:style toggle
:selected (and (boundp 'TeX-command-region-begin)
(markerp TeX-command-region-begin))
:help "Fix the region for \"Command on Region\""]
"-"
["Recenter Output Buffer" TeX-recenter-output-buffer
:help "Show the output of current TeX process"]
["Kill Job" TeX-kill-job
:help "Kill the current TeX process"]
["Next Error" TeX-next-error
:help "Jump to the next error of the last TeX run"]
["Previous Error" TeX-previous-error
:help "Jump to the previous error of the last TeX run"
:visible TeX-parse-all-errors]
["Error Overview" TeX-error-overview
:help "Open an overview of errors occured in the last TeX run"
:visible TeX-parse-all-errors]
["Quick View" TeX-view
:help "Start a viewer without prompting"]
"-"
("TeXing Options"
,@(mapcar (lambda (x)
(let ((symbol (car x)) (name (nth 1 x)))
`[ ,(format "Use %s engine" name) (TeX-engine-set ',symbol)
:style radio :selected (eq TeX-engine ',symbol)
:help ,(format "Use %s engine for compiling" name) ]))
(TeX-engine-alist))
"-"
[ "Generate PDF" TeX-PDF-mode
:style toggle :selected TeX-PDF-mode
:active (not (eq TeX-engine 'omega))
:help "Use PDFTeX to generate PDF instead of DVI"]
( "PDF from DVI"
:visible TeX-PDF-mode
:help "Compile to DVI with (La)TeX and convert to PDF"
[ "Compile directly to PDF"
(lambda () (interactive) (setq TeX-PDF-from-DVI nil))
:style radio :selected (null (TeX-PDF-from-DVI))
:help "Compile directly to PDF without intermediate conversions"]
[ "dvips + ps2pdf"
(lambda () (interactive) (setq TeX-PDF-from-DVI "Dvips"))
:style radio :selected (equal (TeX-PDF-from-DVI) "Dvips")
:help "Convert DVI to PDF with dvips + ps2pdf sequence"]
[ "dvipdfmx"
(lambda () (interactive) (setq TeX-PDF-from-DVI "Dvipdfmx"))
:style radio :selected (equal (TeX-PDF-from-DVI) "Dvipdfmx")
:help "Convert DVI to PDF with dvipdfmx"])
[ "Run Interactively" TeX-interactive-mode
:style toggle :selected TeX-interactive-mode :keys "C-c C-t C-i"
:help "Stop on errors in a TeX run"]
[ "Correlate I/O" TeX-source-correlate-mode
:style toggle :selected TeX-source-correlate-mode
:help "Enable forward and inverse search in the previewer"]
["Debug Bad Boxes" TeX-toggle-debug-bad-boxes
:style toggle :selected TeX-debug-bad-boxes :keys "C-c C-t C-b"
:help "Make \"Next Error\" show overfull and underfull boxes"]
["Debug Warnings" TeX-toggle-debug-warnings
:style toggle :selected TeX-debug-warnings
:help "Make \"Next Error\" show warnings"])
["Compile and view" TeX-command-run-all
:help "Compile the document until it is ready and open the viewer"])
(delq nil
(mapcar #'TeX-command-menu-entry
(TeX-mode-specific-command-list mode)))))