[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#40449: 12.1; view with okular crashes
From: |
Arash Esbati |
Subject: |
bug#40449: 12.1; view with okular crashes |
Date: |
Tue, 05 Mar 2024 10:03:34 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Arash Esbati <arash@gnu.org> writes:
> Hi Ernst,
>
> Ernst Reissner <rei3ner@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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#40449: 12.1; view with okular crashes,
Arash Esbati <=