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
790 stars 57 forks source link

[Problem] "Input Code" and "Use templates" #17

Closed yikim0127 closed 2 years ago

yikim0127 commented 3 years ago

Your codes are very useful, and a great helper to me!

Before the problem started, I'm Korean. I have no ability to check about other languages. It seems there is a problem to hold "Make Default" 's information.

this is an original form of what I want to hold as a default form0 , base on this, and added my inputs: form1 "Generation" or "ReGenerate" correctly works (It is helpful).

After I make the 1'st one as "Default Make"

And "New LaTex display" form2

I get this form, some final parts of the default form are disappeared.

Please help me

Jonathan-LeRoux commented 3 years ago

Hi,

Thanks for pointing these issues out. I thought I had fixed this back in v1.42, but apparently I hadn't :) The problem is that multi-byte strings appear not to be handled well when saving them to the registry, and they get chopped. A workaround for now is to add as many new lines after \end{document} as you have multi-byte characters. I guess somewhere in the pipeline, the length of the string gets counted as the number of characters instead of the number of bytes. It's actually surprising that the string doesn't get mangled instead of chopped.

I now realize that the "fix" introduced in v1.42 had 2 issues:

By the way, if anyone reads this and is getting "?????" instead of the Unicode characters, you probably need to setup the "Language for non-unicode programs" to either a locale that includes these characters, or "Beta: Use Unicode UTF-8 for worldwide language support".

Thanks, Jonathan

Jonathan-LeRoux commented 2 years ago

I'm happy to report that this has now been fixed in the v1.60 release. Please give it a try!