Hello everyone!
I am happy to share another update for my Typst package oasis-align!

For those unfamiliar, oasis-align provides you with the tools to cleanly align content side-by-side. This is particularly useful for when you want to place to figures right next to each other with a common baseline, or want to create brief aside to main body of text.
Here are some examples! Check out the README for the source.
What’s New?
oasis-align() is now content aware, and will use the best strategy that best matches the kind of content its aligning. This includes being able to identify and align images within figures and ignoring long figure captions.
I have also added a built in padding parameter for those times that you want the images to take a little less space on the page.
How does it work?
There are two main stragies:
Fixed Aspect Ratio Content (Images & Figures)
This is the simplest and most common case. Here, we can create ratio of the widths and heights of the images, and then use that to determine the new widths using a set of equations.

Variable Aspect Ration Content (Text)
When we introduce text into the mix, it immediately becomes a much more challenging process. When changing the width of a block of text, the height does not scale linearly, but instead behaves as a step function that follows an exponential trend (the graph below has a simplified visualization of this). This prevents the use of an analytical methodology and thus must be solved using an iterative approach. Here I choose to use the bi-section method, though there are most likely better techniques out there.
Closing
Its been almost two years since I first published this package, and I am incredibly grateful to be able to give back to a community and project that I adore.
Until next time!
- Jason


