From: Fabrice Popineau <fabrice.popineau@supelec.fr>
To: Scott Otterson <scotto@sharpleaf.org>
Cc: "Emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Bug: Windows-unfriendly filename in org-preview-latex-process-alist customization
Date: Sat, 26 Nov 2016 17:35:17 +0100 [thread overview]
Message-ID: <CAFgFV9PXFYGbggQ6enRB58RtHPUgooTYyYAhzKBGW3wTEu4CwA@mail.gmail.com> (raw)
In-Reply-To: <CAPY3P0SjorjJdBAbHF7_GmEMiX8Y1EWGFUE2Hv9u06bqBkRJ1w@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1478 bytes --]
2016-11-26 16:41 GMT+01:00 Scott Otterson <scotto@sharpleaf.org>:
> In my Windows build of emacs, when I put the cursor in a latex equation
> and run
>
> M-x org-toggle-latex-fragment
>
>
> then things chug along for a second but then fail. In the *Org Preview
> LaTex Output* buffer, I see the message:
>
> This is dvipng 1.15 Copyright 2002-2015 Jan-Ake Larsson
> [1
> dvipng: Fatal error, cannot open output file c:/Users/scott/AppData/Local/
> Temp/"orgtex4628hQG.png
>
>
> The reason for the failure is the leftover quote (...Temp/"orgtex...) in
> the expected png output file. With some hackery, I can see that the
> command that's being run is:
>
> dvipng -fg "rgb 0 0 0" -bg "rgb 1 1 1" -D "102.0" -T tight -o
> "c:/Users/scott/AppData/Local/Temp/""orgtex4628hQG".png
> "c:/Users/scott/AppData/Local/Temp/orgtex4628hQG.dvi"
>
>
> If I paste that into a cygwin xterm, it runs fine on the .dvi file that's
> still in the Temp directory. But the command fails in a Windows cmd
> window; if I remove the extra quotes, then the command works in the cmd
> window too.
>
> The extra quote comes from the default customization for the dvipng
> image-converter field of org-preview-latex-process-alist:
>
> dvipng -fg %F -bg %B -D %D -T tight -o %o%b.png %f
>
>
>
This command should read :
dvipng -fg %F -bg %B -D %D -T tight -o "%o%b.png" %f
and the args shouldn't be quoted before.
Unquoting those strings will possibly require to change other command
strings.
Fabrice
[-- Attachment #2: Type: text/html, Size: 2568 bytes --]
next prev parent reply other threads:[~2016-11-26 16:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-26 15:41 Bug: Windows-unfriendly filename in org-preview-latex-process-alist customization Scott Otterson
2016-11-26 16:35 ` Fabrice Popineau [this message]
2016-11-26 23:15 ` Scott Otterson
2016-11-27 11:12 ` Nicolas Goaziou
2016-11-27 21:14 ` Scott Otterson
2016-11-27 22:12 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFgFV9PXFYGbggQ6enRB58RtHPUgooTYyYAhzKBGW3wTEu4CwA@mail.gmail.com \
--to=fabrice.popineau@supelec.fr \
--cc=emacs-orgmode@gnu.org \
--cc=fabrice.popineau@centralesupelec.fr \
--cc=scotto@sharpleaf.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).