Make all sub-images the same height #7251
Unanswered
dmkaplan2000
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I don't think you can because Note that this is a Pandoc thing: {#fig-no02 height="100"} quarto pandoc --from markdown --to latex index.qmd \begin{figure}
\centering
\includegraphics[width=\textwidth,height=1.04167in]{https://github.com/mcanouil/awesome-quarto/blob/main/media/media.png?raw=true}
\caption{Caption 1}\label{fig-no02}
\end{figure} |
Beta Was this translation helpful? Give feedback.
0 replies
-
OK, thanks for the information. I ended up using GIMP to ember each image in a box of the same dimensions... Not elegant, but it works... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I have several sub-images that I am combining into a single panel in a Quarto document that I export to PDF. I would like to force the images to have the same height (but different widths), but everything I have tried to change the relative size of each image seems to do nothing. I tried adding
height
arguments to each image and to the overall figure division, both giving the height as a percent and giving it as a number of pixels. I also tried rescaling the images in an image editing program so they all have the same vertical number of pixels. But neither of these had any effect. I could add a transparent square around each image to force them to appear as if they have the same dimensions, but this seems like a heavy-handed solution to the problem. Is there another way to force all images to appear as the same height in the output image?A conceptual example of the figure I am trying to create is:
Beta Was this translation helpful? Give feedback.
All reactions