I'm using auctex within Emacs, and my .emacs includes:

'(TeX-command-list (quote (

... lots of other TeX-related commands...

("Evince" "evince %s.pdf" TeX-run-background nil (context-mode)))))

-Alasdair




On Sat, Jul 30, 2011 at 9:39 AM, Tassilo Horn <tassilo@member.fsf.org> wrote:
Christoph Bier <christoph.bier@web.de> writes:

Hi Christoph,

>> --8<---------------cut here---------------start------------->8---
>> (eval-after-load 'tex
>>      '(add-to-list 'TeX-view-program-selection '(output-pdf "xpdf")))
>> --8<---------------cut here---------------end--------------->8---
>>
>> So, I suppose you just need to replace "xpdf" by "Evince".
>
> Thanks! But no, I already have this line---with Evince---in my
> .emacs. I think I need to adjust TeX View Program List similar to
> "okular %o#src:%n%b" for Okular.

Depends on your AUCTeX version.  At least the current CVS has Evince
support built in (including forward/backward search).

,----[ C-h v TeX-view-program-list-builtin RET ]
| TeX-view-program-list-builtin is a variable defined in `tex.el'.
| Its value is shown below.
|
| Documentation:
| Alist of built-in viewer specifications.
| This variable should not be changed by the user who can use
| `TeX-view-program-list' to add new viewers or overwrite the
| definition of built-in ones.  The latter variable also contains a
| description of the data format.
|
| Value: (("xdvi"
|   ("%(o?)xdvi"
|    (mode-io-correlate " -sourceposition \"%n %b\" -editor \"%cS\"")
|    ((paper-a4 paper-portrait)
|     " -paper a4")
|    ((paper-a4 paper-landscape)
|     " -paper a4r")
|    ((paper-a5 paper-portrait)
|     " -paper a5")
|    ((paper-a5 paper-landscape)
|     " -paper a5r")
|    (paper-b5 " -paper b5")
|    (paper-letter " -paper us")
|    (paper-legal " -paper legal")
|    (paper-executive " -paper 7.25x10.5in")
|    " %d"))
|  ("dvips and gv" "%(o?)dvips %d -o && gv %f")
|  ("gv" "gv %o")
|  ("xpdf"
|   ("xpdf -remote %s -raise %o"
|    (mode-io-correlate " %(outpage)")))
|  ("Evince"
|   ("evince"
|    (mode-io-correlate " -p %(outpage)")
|    " %o"))
|  ("Okular"
|   ("okular --unique %o"
|    (mode-io-correlate "#src:%n%b")))
|  ("xdg-open" "xdg-open %o"))
`----

Bye,
Tassilo


_______________________________________________
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex



--
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew