auctex
[Top][All Lists]
Advanced

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

[AUCTeX] Re: pstricks style blocked


From: Holger Sparr
Subject: [AUCTeX] Re: pstricks style blocked
Date: Thu, 31 May 2007 18:27:33 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

Seweryn Kokot wrote:

> Holger Sparr <address@hidden> writes:

>> I wanted to try a pstricks style file found on EmacsWiki 
>>
>> <URI: http://www.emacswiki.org/cgi-bin/wiki/pstricks.el>
>>
>> Leaving it somewhere on 'TeX-style-path' had no effect at all. I think,
>> the style file is blocked by:
>>
>> ,----[ (defun LaTeX-common-initialization ... ) in latex.el ]
>> |   [...]
>> |   (TeX-add-style-hook "pstricks" 'TeX-PDF-mode-off)    <---
>> |   [...]
>> `----

> I've already reported that here
> http://thread.gmane.org/gmane.emacs.auctex.general/1475/focus=1497
> where I had to comment the line with "pstricks" in latex.el. Until now I
> have no other solution.

(Sorry, I didn't notice your post.)

Looking into it again the `unless' in `TeX-run-style-hooks' defun
prevents the loading.

,----
| (defun TeX-run-style-hooks (&rest styles)
|   "Run the TeX style hooks STYLES."
|   (mapcar (lambda (style)
|           ;; Avoid recursion.
|           (unless (TeX-member style TeX-active-styles 'string-equal)
|
|    [...]
|
`----

Putting the marked line into a separate file ($AUCTEXDIR/style/pstricks.el)
should work, since all files named "pstricks.el" in `TeX-style-path' get
loaded.

Holger


-- 





reply via email to

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