Function: TeX-synctex-output-page-1
TeX-synctex-output-page-1 is a byte-compiled function defined in
tex.el.
Signature
(TeX-synctex-output-page-1 FILE)
Documentation
Return the page corresponding to the current position in FILE.
This method assumes that the document was compiled with SyncTeX
enabled and the synctex binary is available.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-synctex-output-page-1 (file)
"Return the page corresponding to the current position in FILE.
This method assumes that the document was compiled with SyncTeX
enabled and the `synctex' binary is available."
(let ((synctex-output
(with-output-to-string
(call-process "synctex" nil (list standard-output nil) nil "view"
"-i" (format "%s:%s:%s" (1+ (TeX-current-offset))
;; FIXME: Using `current-column'
;; here is dubious. See comment in
;; `TeX-evince-sync-view-1'.
(1+ (current-column))
file)
"-o" (TeX-active-master (TeX-output-extension))))))
(when (string-match "^Page:\\([0-9]+\\)" synctex-output)
(match-string 1 synctex-output))))