Discussion:
[Dvipng] Path error with dvipng under Windows 10
Johan Andberger
2016-07-08 14:56:48 UTC
Permalink
Hello

I'm having issues with using dvipng 1.15 under Windows 10, when I try to
execute:

dvipng "-q" "-bg" "Transparent" "-T" "tight" "-o"
"c:\users\johana~1\appdata\local\temp\zim-Johan%20Andberger\equation.png"
"c:\users\johana~1\appdata\local\temp\zim-Johan%20Andberger\equation.dvi"

I get:
dvipng: Fatal error, unacceptible format spec in output file name

However, if I change the output path to e.g.
"c:\users\johana~1\appdata\local\temp\equation.png" it works. I don't
know if the issue might be the % sign in the path or something else, is
there some workaround for this?

I'm getting the issue because I'm using the Equation editor plugin for
Zim (http://zim-wiki.org/).

I would be thankful for any assistance.

Kind regards

Johan
Jan-Åke Larsson
2016-07-08 16:11:46 UTC
Permalink
Hi,
The % character is special, yes, so that %02d for example inserts a
2-digit pagenumber. I did not include special translation for %20=space.
But you should not need %20 inside quotes, a simple space would do.

dvipng "-q" "-bg" "Transparent" "-T" "tight" "-o"
"c:\users\johana~1\appdata\local\temp\zim-Johan Andberger\equation.png"
"c:\users\johana~1\appdata\local\temp\zim-Johan Andberger\equation.dvi"

I *could* add %20 translation in the source, but I cannot compile for
windows 10, so I don't think this would help much.

Let me know what you think.

/JÅ
Post by Johan Andberger
Hello
I'm having issues with using dvipng 1.15 under Windows 10, when I try to
dvipng "-q" "-bg" "Transparent" "-T" "tight" "-o"
"c:\users\johana~1\appdata\local\temp\zim-Johan%20Andberger\equation.png" "c:\users\johana~1\appdata\local\temp\zim-Johan%20Andberger\equation.dvi"
dvipng: Fatal error, unacceptible format spec in output file name
However, if I change the output path to e.g.
"c:\users\johana~1\appdata\local\temp\equation.png" it works. I don't
know if the issue might be the % sign in the path or something else, is
there some workaround for this?
I'm getting the issue because I'm using the Equation editor plugin for
Zim (http://zim-wiki.org/).
I would be thankful for any assistance.
Kind regards
Johan
_______________________________________________
Dvipng mailing list
https://lists.nongnu.org/mailman/listinfo/dvipng
Johan Andberger
2016-07-09 15:07:03 UTC
Permalink
Hi

Thank you for the quick response, I've modified the path of the temp
folder for Zim. Seems like the easiest solution.

Best
Johan

Loading...