[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: can't use Kdvi as dvi previewer
From: |
Johs |
Subject: |
Re: can't use Kdvi as dvi previewer |
Date: |
Sun, 29 Oct 2006 23:24:22 +0100 |
User-agent: |
KNode/0.10.4 |
Johs wrote:
> Oliver Heins wrote:
>
>> Johs <asdasd@asd.com> writes:
>>
>>> hmm do I have to enter:
>>>
>>> (info "(auctex)Viewing")
>>>
>>> into my .emacs file?
>>
>> Of course you're free to do it this way, but the preferable way is to
>> copy this line into an emacs buffer (eg the *scratch* buffer) and then
>> type C-x C-e. This leads you to the section "Viewing" of the auctex
>> manual. Here you will probably find an answer to your question.
>
>
> not really.
>
> I have now tried:
>
> (setq Tex-view "kdvi")
>
> does not work
>
> and I have also tried:
>
> (setq TeX-view-style '(("^a5$" "kdvi %d -paper a5")
> ("^landscape$" "kdvi %d -paper a4r -s 4")
> ("." "kdvi %d"))
>
> which does not work either.
>
> Any hints?
This works:
(add-hook 'TeX-mode-hook
;; Super-Tab
(lambda ()
;; Preview-LaTeX
(TeX-source-specials-mode 1)
(local-set-key "\C-i" 'th-complete-or-indent)
;; PDFs per default mit kpdf öffnen
(add-to-list 'TeX-output-view-style
'("^pdf$" "." "kpdf %o"))
;; DVIs per default mit kdvi öffnen
(add-to-list 'TeX-output-view-style
'("^dvi$" "." "kdvi %o"))))
So the option I needed was: TeX-output-view-style