auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] pstricks and TeX-PDF-mode


From: Mosè Giordano
Subject: Re: [AUCTeX] pstricks and TeX-PDF-mode
Date: Tue, 13 Oct 2015 22:11:52 +0200

Hi Joost,

2015-10-13 19:01 GMT+02:00 Joost Kremers <address@hidden>:
> On Di, Okt 13 2015, Mandar Mitra <address@hidden> wrote:
>> I use xetex as my default TeX-engine, and it seems to handle pstricks 
>> without any problems, but style/pstricks.el contains the following:
>>
>>     780    (unless (member "pst-pdf" TeX-active-styles)
>>     781      (TeX-PDF-mode-off))
>>
>> So whenever I use the pstricks package, I have to turn TeX-PDF-mode on
>> by hand.
>
> I usually put `TeX-PDF-mode: t` to my local variable block to avoid
> this.
>
> Which, BTW, reminds me of a question I've often been wondering (but
> never got round to asking here): AUCTeX inserts a local variable block
> into a new TeX file to set the mode and the TeX-master. Is it possible
> to customise this block, or is it hard-coded?
>
> Mmm, ok, so I've looked at the source a bit and it seems to be
> hardcoded... So I guess my question becomes: would it be possible to
> allow adding custom variables to the local variable block that gets
> inserted into new files?

Uhm, no, not really, but you may try to add a function to
`TeX-update-style-hook' which is run when the styles are updated, also
when creating a new file, that should be what you want.
`add-file-local-variable' is very handy for this purpose.

Cheers,
Mosè



reply via email to

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