[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 5ce08ab 33/48: Raise robustness o
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 5ce08ab 33/48: Raise robustness of call of dvipng command |
Date: |
Sun, 16 Sep 2018 01:47:25 -0400 (EDT) |
branch: externals/auctex
commit 5ce08ab0cc013b934e2dd65bf8ae4f73be35a572
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>
Raise robustness of call of dvipng command
* preview.el.in (preview-dvipng-command): Remove spurious quotes which
cause error for file names with space. (bug#31684)
(preview-dvipng-color-string): Replace single quotes with double
quotes for w32 users.
* doc/preview-latex.texi: (The preview images): Add warning that
(u)pLaTeX is not compatible with dvipng.
---
doc/preview-latex.texi | 6 ++++++
preview.el.in | 8 ++++----
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/doc/preview-latex.texi b/doc/preview-latex.texi
index 39eed39..d89c5a9 100644
--- a/doc/preview-latex.texi
+++ b/doc/preview-latex.texi
@@ -710,6 +710,12 @@ if the @acronym{DVI} file contains PostScript specials in
which case the
affected images will get run through Dvips and Ghostscript once
@samp{dvipng} finishes.
+Note for address@hidden and address@hidden users: It is known that
@code{dvipng}
+is not compatible with address@hidden and address@hidden If
address@hidden is set to @samp{dvipng} and (u)address@hidden is
+used, @samp{dvipng} just fails and @previewlatex{} falls back on Dvips
+and Ghostscript.
+
@item preview-gs-options
Most interesting to the user perhaps is the setting of this variable.
It contains the default antialiasing settings @option{-dTextAlphaBits=4}
diff --git a/preview.el.in b/preview.el.in
index 2d81cce..7c7cecc 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -522,7 +522,7 @@ an explicit list of elements in the CDR, or a symbol to
be consulted recursively.")
(defcustom preview-dvipng-command
- "dvipng -picky -noghostscript %d -o \"%m/prev%%03d.png\""
+ "dvipng -picky -noghostscript %d -o %m/prev%%03d.png"
"*Command used for converting to separate PNG images.
You might specify options for converting to other image types,
@@ -796,13 +796,13 @@ Pure borderless black-on-white will return an empty
string."
(border (aref colors 3)))
(concat
(and bg
- (format "--bg 'rgb %s' "
+ (format "--bg \"rgb %s\" "
(mapconcat #'preview-gs-color-value bg " ")))
(and fg
- (format "--fg 'rgb %s' "
+ (format "--fg \"rgb %s\" "
(mapconcat #'preview-gs-color-value fg " ")))
(and mask border
- (format "--bd 'rgb %s' "
+ (format "--bd \"rgb %s\" "
(mapconcat #'preview-gs-color-value mask " ")))
(and border
(format "--bd %d" (max 1 (round (/ (* res border) 72.0))))))))
- [AUCTeX-diffs] [elpa] externals/auctex 03ba1fa 43/48: Add new style/ocg-p.el and style/ocgx.el, (continued)
- [AUCTeX-diffs] [elpa] externals/auctex 03ba1fa 43/48: Add new style/ocg-p.el and style/ocgx.el, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex cff843b 17/48: Remove obsolete option related to Japanese TeX, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 3741b8c 26/48: Prepare for UTF-8 with BOM, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 94378c1 09/48: Correct record in changes.texi, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 96ba113 23/48: Support UTF-8 with BOM in Japanese TeX documents, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 3b1ffcd 30/48: TL 2018 non-ascii file name fix for preview-latex, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex a8ea127 29/48: Accept non-ascii file name in accord with change in TL 2018, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 8d30dc1 37/48: Add new style/marginnote.el, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex c3cf39e 34/48: Make preamble caching robust to LuaLaTeX and (u)pLaTeX, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 80bcd0a 46/48: Update style/lettrine.el to package version 2.1, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 5ce08ab 33/48: Raise robustness of call of dvipng command,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex e0caf59 25/48: Drop compatibility code for older emacsen in preview-latex, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex a7cde09 47/48: Update style/lettrine.el to package version 2.21, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 5df288d 44/48: ; Remove unwanted spaces., Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 74c4843 40/48: Add new style/thmtools.el and style/thm-restate.el, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 45747b9 42/48: Add qref to RefTeX's reference styles, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 31ee142 38/48: Fix regression of `TeX-view', Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 1fef01c 45/48: Update style/lettrine.el to package version 2.01, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 48325a7 20/48: Update URLs further, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex f761ab4 48/48: Merge branch 'master' into externals/auctex, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 168a4a1 19/48: Update URLs, Tassilo Horn, 2018/09/16