[Top][All Lists]

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

[elpa] externals/auctex d7cba92 21/30: Prepare for pdf output for PSTric

From: Tassilo Horn
Subject: [elpa] externals/auctex d7cba92 21/30: Prepare for pdf output for PSTricks documents
Date: Fri, 25 Sep 2020 11:00:15 -0400 (EDT)

branch: externals/auctex
commit d7cba92dbe15474dceb4c18d021ef9535da5050e
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>

    Prepare for pdf output for PSTricks documents
    * style/pstricks.el ("pstricks"): Prepare for pdf output rather than
    turn off PDF mode.
    (): Update copyright year.
    * doc/changes.texi: Mention above change.
 doc/changes.texi  | 9 +++++++++
 style/pstricks.el | 9 +++++++--
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/doc/changes.texi b/doc/changes.texi
index bc2bfb6..5127927 100644
--- a/doc/changes.texi
+++ b/doc/changes.texi
@@ -12,6 +12,15 @@
 @itemize @bullet
+Support for @samp{PSTricks} is now @acronym{PDF}-oriented. @AUCTeX{} no
+longer turns off PDF mode for @samp{PSTricks} documents even without
+@samp{pst-pdf}. It now sets up @code{TeX-PDF-from-DVI} option so that
+@acronym{PDF} output is generated when @code{TeX-PDF-mode} is enabled
+(default). Users who want @acronym{DVI} output should disable PDF mode
+explicitly by file local variable, or customize @code{TeX-PDF-mode} to
 The function @code{font-latex-update-font-lock} has been obsoleted in
 order to fix @samp{bug#37945}.  That function was used by several style
 files in order to refresh fontification after adding new symbols or
diff --git a/style/pstricks.el b/style/pstricks.el
index 33652f9..1a24767 100644
--- a/style/pstricks.el
+++ b/style/pstricks.el
@@ -1,6 +1,7 @@
 ;;; pstricks.el --- AUCTeX style for the `pstricks' package.
-;; Copyright (C) 2007, 2009, 2013-2015, 2018  Free Software Foundation, Inc.
+;; Copyright (C) 2007, 2009, 2013-2015, 2018, 2020
+;;                Free Software Foundation, Inc.
 ;; Author: Holger Sparr <holger.sparr@gmx.net>
 ;; Maintainer: auctex-devel@gnu.org
@@ -781,7 +782,11 @@ comma separated list. Point has to be within the sexp to 
  (lambda ()
    (unless (or (member "pst-pdf" TeX-active-styles)
               (eq TeX-engine 'xetex))
-     (TeX-PDF-mode-off))
+     ;; Leave at user's choice whether to disable `TeX-PDF-mode' or
+     ;; not. Instead set up `TeX-PDF-from-DVI' option so that AUCTeX
+     ;; takes dvips+ps2pdf route when `TeX-PDF-mode' is enabled.
+     ;; (TeX-PDF-mode-off)
+     (setq TeX-PDF-from-DVI "Dvips"))
    (mapc 'TeX-auto-add-regexp LaTeX-auto-pstricks-regexp-list)
     '("pspicture" LaTeX-pst-env-pspicture)

reply via email to

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