auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. d7cba92dbe15474dceb4c


From: Ikumi Keita
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. d7cba92dbe15474dceb4c18d021ef9535da5050e
Date: Sun, 2 Aug 2020 04:54:38 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  d7cba92dbe15474dceb4c18d021ef9535da5050e (commit)
      from  3ef28a55e3671b078c2042d0620c45c973216684 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d7cba92dbe15474dceb4c18d021ef9535da5050e
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Date:   Sat Aug 1 22:07:20 2020 +0900

    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.

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
 @item
+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
+@code{nil}.
+
+@item
 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 
modify."
  (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)
    (LaTeX-add-environments
     '("pspicture" LaTeX-pst-env-pspicture)

-----------------------------------------------------------------------

Summary of changes:
 doc/changes.texi  | 9 +++++++++
 style/pstricks.el | 9 +++++++--
 2 files changed, 16 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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