3

Since recently deleted from StackOverflow for being off topic, I would like to repost the following question (originally asked by User Фадиме Бекмамбетова):

When using the LatexIt! extension for thunderbird on Ubuntu I get the error:

LatexIt! run report...
*** Found expression $a$
convert failed with error code 1. Aborting.
Possible explanations include:
- you're running Windows, and you didn't install Ghostscript
- you're running OSX, and you didn't launch Thunderbird from a Terminal
Please see http://github.com/protz/LatexIt/wiki

When running from inside a terminal, I get

This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
This is dvips(k) 5.995 Copyright 2015 Radical Eye Software (www.radicaleye.com)
' TeX output 2018.10.12:1055' -> /tmp/tblatex-1.ps
</usr/share/texlive/texmf-dist/dvips/base/tex.pro>
</usr/share/texlive/texmf-dist/dvips/base/texps.pro>.
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb>[1] 
convert: not authorized `/tmp/tblatex-1.ps' @ error/constitute.c/ReadImage/412.
convert: no images defined `/tmp/tblatex-1.png' @ error/convert.c/ConvertImageCommand/3210.

How to fix that?

cero
  • 221
  • 1
  • 5

2 Answers2

3

In /etc/ImageMagick-6/policy.xml you have to change (needs root) the line

<policy domain="coder" rights="none" pattern="PS" />

to

<policy domain="coder" rights="read | write" pattern="PS" />

Related: Wand Policy Error: error/constitute.c/ReadImage/412

cero
  • 221
  • 1
  • 5
0

Note that I'm pushing an update to the addon right now that does not rely on convert but instead uses dvipng directly.