Articles

AucTeX + sumatra PDF

In softwares on August 10, 2010 by hoxide

The main problem is how to config the AucTeX. There is no any other posts talking about the new AucTeX.

After 3 hours+ struggle, I decided to read the manual. Then every thing is clear. In the new version, it’s TeX-view-program-selection not TeX-output-view-style determine the viewer. But it’s still preserve these options. So if you want to use the “old” one, set “%vv” instead of “%V” for the View command in TeX-command-list.

For the new version,
1. Insert a new item of Tex-View-Program-List, with name sumatraPDF or any think you like. choose command and the command is : sumatrapdf %o.
2. save and restart EMACS,
3. change the viewer for predicate output-pdf to sumatraPDF in TeX-view-program-selection.
4. save and restart EMACS.

Now every ting works.

Problem, inverse search for new vesion of sumatraPDF. In fact I can not find the “File/Set” menu mentioned in this post.
Except this problem, I just follow him.

About these ads

4 Responses to “AucTeX + sumatra PDF”

  1. It works for me. Thanks a lot!

    The old version 0.9.3 has “File/Set” menu.

  2. (add-hook ‘LaTeX-mode-hook
    ( lambda ()
    (setq TeX-view-program-list ‘(“SumatraPDF” “F:/SumatraPDF/SumatraPDF.exe %o”))
    (setq TeX-view-program-selection ‘((output-pdf “SumatraPDF”)
    (output-dvi “Yap”)))
    )
    )

    It doesn’t work. AcrobatReader always start at first.

    gan.feng.china (at) gmail.com

    • I think you may have to edit the configuration of auctex by its own interface instead of just adding above code in your “.emacs”.

      I think you may not in LaTeX-mode, but using other TeX system.
      Good Luck!

  3. For latest Sumatra PDF, you can set inverse search using the command line option -inverse-search. I couldn’t figure out how to form a correct command string that sends inverse search option to Sumatra PDF because I don’t know how command line escaping works, but then AUCTeX can take a Lisp function that invokes a program in place of a command string, so I wrote a function:

    http://yoo2080.wordpress.com/2013/06/26/using-sumatrapdf-with-auctex-with-inverse-search-and-forward-search/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: