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

Default shape color (e.g. white) #68

Open Splines opened 1 month ago

Splines commented 1 month ago

For YouTube videos, I'd like to keep my black background of the presentation. When pasting equations as shapes, I have to fill it with white color by hand (not much effort, but still one click / keystroke 😅).

It'd be amazing to have a setting in Main settings that controls the default color for shapes.

Jonathan-LeRoux commented 1 month ago

That's a good idea, let me see how I could implement that. A workaround is to create a first shape with the settings you like, then copy/paste it and use the edit function to create a new shape from the old one, pasting the new code in. I use this a lot when I want to keep sizes consistent.

Splines commented 1 month ago

Nice workaround. But compared to copying the object from another slide and pasting it into a new one, then editing it, it's probably not quicker than filling the color with white for a newly generated equation (especially since I added Shape fill to the quick access menu bar). To keep sizes consistent, I usually don't scale the equations in PowerPoint and instead only change the pt sizes in your plugin.

Jonathan-LeRoux commented 4 weeks ago

I implemented the choice of color for the Fill of Shape objects. There are actually many other things one could set other than the Fill, but that would start to be quite complicated, so I'll leave it that. The color is set in the editor window, and can be saved using the "Make Default" button. That default will be applied when generating new displays or converting an existing display to Shape. I also added the ability to change the color in the batch processing. Here is a zip with the .pptm and .ppam: IguanaTex_v1_61_1_20240726.zip. This also implements the ability to set a default file path when reading from file (issue https://github.com/Jonathan-LeRoux/IguanaTex/issues/66; note that the path only gets saved when "Make Default" is clicked on the "Read from file" tab), and it fixes an issue on Mac where the editor window size was not saved when clicking Make Default.

Please give it a try and let me know if you see any issue.

Splines commented 3 weeks ago

Wow, you're quick, thank you so much for the improvements. The default shape color works like a charm! Also see my feedback on #66 for the file path.