[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-AUCTeX] 11.86; View problems

From: Tassilo Horn
Subject: Re: [Bug-AUCTeX] 11.86; View problems
Date: Fri, 14 Jun 2013 10:25:01 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

David Kastrup <address@hidden> writes:

>> In what cases would AUCTeX automatically determine that it should
>> compile to PDF instead of DVI and vice versa?
> Looking in latex.el shows something like
>   (TeX-add-style-hook "pdftex" 'TeX-PDF-mode-on)
>   (TeX-add-style-hook "pdftricks" 'TeX-PDF-mode-on)
>   (TeX-add-style-hook "pst-pdf" 'TeX-PDF-mode-on)
>   (TeX-add-style-hook "dvips" 'TeX-PDF-mode-off)
> ;; This is now done in style/pstricks.el because it prevents other
> ;; pstricks style files from being loaded.
> ;;   (TeX-add-style-hook "pstricks" 'TeX-PDF-mode-off)
>   (TeX-add-style-hook "psfrag" 'TeX-PDF-mode-off)
>   (TeX-add-style-hook "dvipdf" 'TeX-PDF-mode-off)
>   (TeX-add-style-hook "dvipdfm" 'TeX-PDF-mode-off)
> ;;  (TeX-add-style-hook "DVIoutput" 'TeX-PDF-mode-off)
> ;;
> ;;  Well, DVIoutput indicates that we want to run PDFTeX and expect to
> ;;  get DVI output.  Ugh.
>   (TeX-add-style-hook "ifpdf" (lambda ()
>                               (TeX-PDF-mode-on)
>                               (TeX-PDF-mode-off)))
> ;; ifpdf indicates that we cater for either.  So calling both
> ;; functions will make sure that the default will get used unless the
> ;; user overrode it.

Ah, yes, of course that makes sense.  But probably the average user like
Michel or me doesn't use any of those packages.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]