mystmd icon indicating copy to clipboard operation
mystmd copied to clipboard

Figures side by side with aligned captions.

Open atharvaaalok opened this issue 9 months ago • 0 comments
trafficstars

I am using the following code to represent two figures side by side:

:::::{grid} 2

::::{grid-item}
:::{figure} assets/fish_swimming.svg
:label: fish_swimming
:alt: Fish swimming with its body in a curve shape not representable in polar coordinates.
:height: 350px
A swimming fish with its body curved cannot be represented by a polar parameterization.
:::
::::

::::{grid-item}
:::{figure} assets/stanford_bunny.svg
:label: stanford_bunny
:height: 250px
:alt: The Stanford Bunny shown as a target curve.
The [Stanford Bunny](https://en.wikipedia.org/wiki/Stanford_bunny). We will use it as
a target shape against which we test our parameterization techniques.
:::
::::

But the captions are not aligned and it appears weird.

Image

How do I fix this?

Attaching .svg files below. Image Image

atharvaaalok avatar Feb 25 '25 23:02 atharvaaalok