Jonathan-LeRoux / IguanaTex

A PowerPoint add-in allowing you to insert LaTeX equations into PowerPoint presentations on Windows and Mac
http://www.jonathanleroux.org/software/iguanatex/
Other
852 stars 59 forks source link

can not use unicode characters inside math mode #9

Closed jdhao closed 5 years ago

jdhao commented 5 years ago

I want to use some Chinese characters inside math mode. The following code compiles correctly in command line using pdflatex:

\documentclass[UTF8]{ctexart}
\usepackage{amsmath}
\pagestyle{empty}

\begin{document}

$\text{比例} = \frac{\text{部分}}{\text{全部}}$

\end{document}

But when I tried to generate an image inside the powerpoint, I got the following error

Error while using ghostscript to compute the bounding box Is your path correct?

Jonathan-LeRoux commented 5 years ago

This works on my system. Can you try clicking the Debug check box, see where it crashes, then run that step in the command line (you should be able to paste the command, it's saved to clipboard)?

jdhao commented 5 years ago

@Jonathan-LeRoux , thanks for your suggestion. I have figured out that it is because I have not set the correct path for GhostScript and ImageMagick, which is required if we use pdflatex. After I set their paths correctly, I was able to generate the equation successfully.