[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#32251: [Windows] Cannot locate gs when the path contains space
From: |
Ikumi Keita |
Subject: |
bug#32251: [Windows] Cannot locate gs when the path contains space |
Date: |
Wed, 31 Oct 2018 17:18:50 +0900 |
Hi Jian, sorry for very late response.
>>>>> Jian Wang <address@hidden> writes:
> Hi, all
> When I try to preview on windows, the Ghostscript executable bundled with
> MiKTeX cannot be located since the path of MiKTeX contains a space. Thus
> when I open a tex buffer there will be an echoed message telling me
> ''c:/Program" is not a valid command.
> I fixed this issue by making the following change:
> (defcustom preview-gs-command
> (or ;; The GS wrapper coming with TeX Live
> (executable-find "rungs")
> ;; The MikTeX builtin GS
> (let ((gs (executable-find "mgs")))
> ;; Check if mgs is functional for external non-MikTeX apps.
> ;; See
> http://blog.miktex.org/post/2005/04/07/Starting-mgsexe-at-the-DOS-Prompt.aspx
> (when (and gs (= 0 (shell-command (concat (shell-quote-argument gs) " -q
> -dNODISPLAY -c quit"))))
> gs))
> ;; Windows ghostscript
> (executable-find "GSWIN32C.EXE")
> ;; standard GhostScript
> (executable-find "gs"))
> "*How to call gs for conversion from EPS. See also `preview-gs-options'."
> :group 'preview-gs
> :type 'string)
Thank you for your contribution, I incorporated the above change into
the git repository.
Best regards,
Ikumi Keita
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#32251: [Windows] Cannot locate gs when the path contains space,
Ikumi Keita <=