[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 5ce08ab 33/48: Raise robustness of call of dvipn
From: |
Tassilo Horn |
Subject: |
[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))))))))
- [elpa] externals/auctex 96ba113 23/48: Support UTF-8 with BOM in Japanese TeX documents, (continued)
- [elpa] externals/auctex 96ba113 23/48: Support UTF-8 with BOM in Japanese TeX documents, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex d5f98ae 32/48: ; Fix typos, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 3b1ffcd 30/48: TL 2018 non-ascii file name fix for preview-latex, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 0d8f8a2 14/48: Prevent spurious newlines to be added, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 527bcb2 16/48: ; * doc/auctex.texi (Processor Options): Add note of case in an option., Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 7371b46 07/48: Add support for dvipdfmx to \includegraphics, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 4afd633 11/48: Update key=val options to geometry package v5.8, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 6a17a52 24/48: ; * doc/changes.texi (News in 12.2): Add news about removed option., Tassilo Horn, 2018/09/16
- [elpa] externals/auctex ff08d38 28/48: Fix region compilation with \usepackage[utf8]{inputenc}, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex cad042f 31/48: Add note and test about the change involving non-ascii file name, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 5ce08ab 33/48: Raise robustness of call of dvipng command,
Tassilo Horn <=
- [elpa] externals/auctex 3741b8c 26/48: Prepare for UTF-8 with BOM, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 4816092 36/48: Fix possible endless loop, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 74c4843 40/48: Add new style/thmtools.el and style/thm-restate.el, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex ff8f183 39/48: ; * style/floatrow.el (LaTeX-floatrow-update-key-val-options): Use `setq' inside the loop., Tassilo Horn, 2018/09/16
- [elpa] externals/auctex e0caf59 25/48: Drop compatibility code for older emacsen in preview-latex, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 1fef01c 45/48: Update style/lettrine.el to package version 2.01, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex cff843b 17/48: Remove obsolete option related to Japanese TeX, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex a59c754 35/48: Adjust test for known emacs bug, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 0d5c1c0 41/48: ; Fix last commit and push missing Makefile.in., Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 45747b9 42/48: Add \eqref to RefTeX's reference styles, Tassilo Horn, 2018/09/16