You can use width
and height
, as documented here.
---
title: "resize image"
format: pdf
---
{width=10%}
{height=50%}
You can also use px
and in
as the unit, or specify it between quotes:
{height=100px}
{height=2in}
{height="100"}
Why are fig-height
and fig-width
not working?
As stated in the document you cite, fig-height
and fig-width
are settings for the default size for figures generated by R or Matplotlib graphics.
Since your image is not generated by R or Matplotlib, you should use pandoc
's attributes, as documented here.