Seweryn Kokot wrote:

> Holger Sparr <[EMAIL PROTECTED]> 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


-- 



_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to