Basically, i want my emacs to run latex-preview-pane-mode (which is a emacs function, provided by this package) instead of executing the external application evince.

After reading the acutex docs about this, i have now this code:

    (((output-dvi has-no-display-manager)
     ((output-dvi style-pstricks)
      "dvips and gv")
     (output-dvi "xdvi")
     (engine-omega "Atril")
     (output-pdf "Evince")
     (output-html "xdg-open")))))

The part after '(TeX-view-program-selection works fine, it's the not-changed default. However, i don't know how to proceed, because obviously evince is a actual binary program and latex-preview-pane-mode a function.

After changing (output-pdf "Evince") to (output-pdf 'latex-preview-pane-mode), i receive the error message:

TeX-view-command-raw: Unknown latex-preview-pane-mode viewer. Check the
`TeX-view-program-selection' variable

When i change it to (output-pdf "preview-pane-mode") and execute it, my emacs is hanging.


From docstring of TeX-view-program-list:

The second element can be a command line to be run as a process or a Lisp function to be executed.

So you have to specify the name of the function (latex-preview-pane-mode), not a function call ((latex-preview-pane-mode)). This is the specification for "preview-pane-mode" you have to use:


To avoid confusion, the full code you can add to your init file to add this entry to TeX-view-program-list is

(eval-after-load "tex"

Then in TeX-view-program-selection pick up "preview-pane-mode", not 'latex-preview-pane-mode.

  • A malformed value of `TeX-view-program-list' shouldn't hang Emacs anymore: git.savannah.gnu.org/gitweb/…
    – giordano
    Apr 12 '16 at 23:15
  • I had to use (("preview-pane-mode" latex-preview-pane-mode)). With single Braces I receive the error mapc: Wrong type argument: listp, "preview-pane-mode"..
    – toogley
    Apr 13 '16 at 19:11
  • Sorry for not being clear, that wasn't the whole value of TeX-view-program-list but the specification for preview-pane-mode. I'll update the answer
    – giordano
    Apr 13 '16 at 20:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.