6

I have this line in my .emacs:

(setq TeX-view-program-list '(("Okular" "okular --unique %u"))) 

When I type C-c C-c, then View, then the command turns out to be okular --unique %u, however, I would like it to be okular-unique filename.pdf

Could anyone help? Thank you very much

Philipp
  • 43,805
  • 12
  • 78
  • 104
SoftTimur
  • 8,904
  • 23
  • 106
  • 212

1 Answers1

5

I think you should have something like this for your config:

(setq TeX-view-program-selection
      '((output-pdf "PDF Viewer")))
(setq TeX-view-program-list
      '(("PDF Viewer" "okular %o")))

I'm not sure if this okular-unique is a program name - it that case just replace okular with okular-unique.

Bozhidar Batsov
  • 52,348
  • 13
  • 95
  • 111