Divide-By-0 / autolatex

All Auto Latex Equations Versions.
https://autolatex.com
MIT License
17 stars 1 forks source link

Slides - Position equations from tables correctly #16

Open grimsteel opened 1 year ago

grimsteel commented 1 year ago

Right now, all table equations are rendered at the top left of the table.

I tried to fix this when I first fixed tables, but I ended up just giving up, because Slides offers no way to get the width/height of a table cell.

A hacky solution, which assumes that all table cells are sized equally, would be to get the width/height of the table and divide it by the number of columns/rows

Divide-By-0 commented 1 year ago

You should request that feature in the issue tracker: https://issuetracker.google.com/issues

Till then, I like your hacky solution.

grimsteel commented 1 year ago

Apparently we can't even get the width/height of a table (https://developers.google.com/apps-script/guides/slides/moving-elements#limitations) so even the hacky solution won't work...

I think I saw some Stack Overflow answers which got table width and height using the amount of text and font size, so I'll try that.

I requested it: https://issuetracker.google.com/287505190