it seems that when using wrapfig within the beamer class, and aligning an image on the right, it sometimes breaks the text lines to make the last line of a paragraph full width, at the expense of making the first line of the paragraph much too short. A minimal example is:
I used this with the image file "iclicker.jpg" (attached) but I guess any image would do. Anyway, the result is as in the file "wrapfigtst.pdf" (also attached): the first word, "For", is put on a line all by itself which it shouldn't be. I have been plagued by similar problems for a year now -- any help most appreciated!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
The wrapfig package seems not work very good in a presentation. Therefore it's perhaps better to split the frame into columns by the columns environment and distribute the text and image to two column environments. An approach could look like this. The output is attached (as image).
The clear disadvantage of this method is that the text beside the image won't flow around the it automatically. So this might be a solution only for short text. For details please refer to the beamer user guide.
By the way, thanks for the almost perfect minimal example.
Best regards and welcome to the board
Thorsten
Attachments
beamer-split-frame.png (76.63 KiB) Viewed 12386 times
Thanks very much Thorsten. But yes, I do want my text to wrap around the figure if possible -- that is why I have been using wrapfig for the past year -- so I am still hoping there is a way to fix this bug without sacrificing the wrapping. Regards, Jeff
I'm not aware of a proper solution. So I suggest to contact the maintainer of wrapfig and ask him for help. His e-mail address can be found in the package manual.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p