GNU bug report logs -
#40449
12.1; view with okular crashes
Previous Next
Reported by: Ernst Reissner <rei3ner <at> arcor.de>
Date: Sun, 5 Apr 2020 13:10:01 UTC
Severity: normal
Found in version 12.1
Done: Arash Esbati <arash <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 40449 <at> debbugs.gnu.org (full text, mbox):
Arash Esbati <arash <at> gnu.org> writes:
> Hi Ernst,
>
> Ernst Reissner <rei3ner <at> arcor.de> writes:
>
>> In newest version of auctex, there is no tex view list any more.
>
> There is still a `TeX-view-program-list' but it is a user customizable
> variable which defaults to nil. The predefined entries are in
> `TeX-view-program-list-builtin'.
>
>> The old one was
>> '(TeX-view-program-list
>> (quote
>> (("Okular" "okular -unique %o#src:%n%(masterdir)./%b"))
>> ))
>>
>> but as masterdir seems no longer supported, view crashes.
>> I modified:
>>
>> '(TeX-view-program-list
>> (quote
>> ;(("Okular" "okular -unique %o#src:%n%(masterdir)./%b"))
>> (("Okular" "okular -unique %o#src:%n./%b"))
>> ))
>
> `TeX-view-program-list-builtin' has an entry for Okular which goes like
> this:
>
> ("Okular" ("okular --unique %o" (mode-io-correlate "#src:%n%a")) "okular")
>
> %a is an expander defined like this in `TeX-expand-list-builtin', note
> the comment:
>
> ;; Okular forward PDF search requires absolute path.
> ("%a" (lambda nil (prin1-to-string (expand-file-name (buffer-file-name)))))
>
>> This works better but sometimes causes a crash with okular
>> if tried to tap on a menu item.
>> There is a workaround.
>> But of course this config is a workaround itself.
>
> I don't use Okular but in theory, it should be sufficient if you check
> the above variables for entries quoted (otherwise please update AUCTeX)
> and just put something like this in your init file:
>
> (setq TeX-view-program-selection '((output-pdf "Okular")))
>
> Okular must be in $PATH then.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
No further comments, therefore I'm closing this report.
Best, Arash
This bug report was last modified 1 year and 74 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.