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

Input text bug (on Mac) #40

Closed Atcold closed 1 year ago

Atcold commented 1 year ago

When trying to move the plugin GUI using Spectacle, only the text input is moved.

Screenshot 2022-10-13 at 15 00 43

I think there's some bug related to the text input. The content is different (there's an additional \usepackage{amsmath} in the dark editor).

tsung-ju commented 1 year ago

I did a quick testing, and it seems that windows created using the add-in API simply don't support being moved by apps like Spectacle or Rectangle.app, so we have to wait for Microsoft to fix this.

The latex input is actually implemented as a separate native window (which can be moved by Spectacle), hence the inconsistency.

Atcold commented 1 year ago

I'm confused about the fact that there are 2 input windows. Do you know what's going on there?

tsung-ju commented 1 year ago

Yes, that part was written by me. The main reason I added a separate window is because the textbox control provided by the add-in api (of macOS PowerPoint) lacks many editing features (such as copy/paste/undo etc). So I added an overlay window (which contains only a single textbox) using native macOS apis. Since the textbox is native, it supports most editing features. The overlay window is positioned right above the original textbox, so normally users won't notice there are 2 textboxes. In your screenshot, the white textbox is the original one, and the black textbox is the native one. The add-in only uses latex code from the black textbox. The latex code inside white textbox is just some placeholder text that's no longer used.

Atcold commented 1 year ago

the textbox control provided by the add-in api (of macOS PowerPoint) lacks many editing features (such as copy/paste/undo etc)

That's insane 😳😳😳

So… shall I close this issue since it seems unfixable?

tsung-ju commented 1 year ago

I think so. Actually it might be possible to avoid using a separate window for text, but even so we still have to wait for MS to make the add-in window movable by other apps.

Atcold commented 1 year ago

Closing because the bug is @microsoft's.

Jonathan-LeRoux commented 1 year ago

Note that Microsoft isn't likely to do anything unless they're made aware of the bug. Best way is to send feedback via the Help menu in PowerPoint. And it can't hurt to ask a question in Microsoft Community and get the attention of an MVP there.