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

Encoding issue #14

Closed TingxunShi closed 3 years ago

TingxunShi commented 3 years ago

Hi,

I installed the plugin and tried but when I clicked "generate", I was always prompted that there is an encoding issue, no matter which latex engine I used. I checked the temp file located in the temp directory, only saw a file containing non-sense characters (seems generated a binary file). Could you please kindly help?

I'm using Win 10 and PowerPoint 2016, both are Chinese version

Here is a clipped snippet from the bulk error message (using the default latex-dvi engine):

The document does not appear to be in UTF-8 encoding.
Try adding \UseRawInputEncoding as the first line of the file
or specify an encoding such as \usepackage [latin1]{inputenc}
in the document preamble.
Alternatively, save the file in UTF-8 using your editor or another tool

! Package inputenc Error: Unicode character 
 (U+000B)
(inputenc)                not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.4 ...顼]辒X墖Iら?倻玘?W兀{畨楰篂wy運遥此?
                                                  殗摯=3燕扛?GN=?%語...

You may provide a definition with
\DeclareUnicodeCharacter 

! Package inputenc Error: Invalid UTF-8 byte "AF.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

My test code is quite simple

\documentclass{article}
\usepackage{amsmath}
\pagestyle{empty}
\begin{document}

a + b = c

\end{document}
Jonathan-LeRoux commented 3 years ago

Hi, This sounds like there's an issue when saving the file, and it may be difficult for me to debug as it's likely related to some locale setting on your end. Can you try checking "Debug" and see how the generated files look in the Temp folder? Also, I'd suggest reposting your question to the IguanaTex mailing list, where others who also use the Chinese version of Windows and Office may provide feedback. Thanks, Jonathan

TingxunShi commented 3 years ago

Hi Jonathan,

Thanks for the reply. I switched to my personal laptop and seems everything goes fine (at least compiled successfully), so I doubt it's my office PC's issue. Ticket closed, thank you

Regards, Tingxun

Jonathan-LeRoux commented 3 years ago

Okay, good! If you figure out what the issue was, please let me know. Thanks, Jonathan