Pavel Sanda wrote:
> i was doing similar searches. going to particular page is not much of use with
> texrow structure, however from certain thread it seems that auctex succeeds
> somehow even with this (xpdf).

from what i understand auctex calls synctex to get this info:

(defun TeX-synctex-output-page ()
  "Return the page corresponding to the current source position.
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" (line-number-at-pos)
                                      (current-column)
                                      ;; The file name relative to the
                                      ;; directory of the master file.
                                      (file-relative-name
                                       (buffer-file-name)
                                       (file-name-directory
                                        (TeX-active-master))))
                         "-o" (TeX-active-master (TeX-output-extension))))))
    (when (string-match "Page:\\([0-9]+\\)" synctex-output)
      (match-string 1 synctex-output))))

pavel

Reply via email to