Skip to content

Conversation

@darren-chiu
Copy link

Updated to current split function version

@jpreiss
Copy link
Owner

jpreiss commented Apr 25, 2025

Was something changed in the Python split function? Or is something different in the pdf info table you are using? Either way, the original version of the code definitely worked for me using Beamer slides generated by pdflatex a couple of years ago. So maybe the best fix is:

width, _, height, *_ = size_str.split(" ")

which doesn't care if the result has 4 or 5 items.

@jpreiss
Copy link
Owner

jpreiss commented Apr 25, 2025

Also, thanks for the contribution! Did this package work for your presentation? I believe you are the first user besides me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants