Closed ollyhensby closed 10 months ago
Thanks for the report.
Could you provide the reproducible example as plain text? (and use online images in it)
You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````
).
````qmd
---
title: "Reproducible Quarto Document"
format: html
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
The end.
@mcanouil Thanks for the quick reply!
As requested:
---
title: Image Height Issue in Column Layout
author: Oliver Hensby
format:
pdf:
pdf-engine: xelatex
---
## Some Images
![A flower](https://www.gstatic.com/webp/gallery3/1_webp_ll.png){height=30mm}
![A penguin](https://www.gstatic.com/webp/gallery3/2_webp_a.png){height=10mm}
::: {layout-ncol=2}
![A flower](https://www.gstatic.com/webp/gallery3/1_webp_ll.png){height=30mm}
![A penguin](https://www.gstatic.com/webp/gallery3/2_webp_a.png){height=10mm}
:::
PDF Output:
The first page shows the images on their own. The second page shows the images within a layout column div.
This has been fixed on 1.4 prereleases:
Perfect, thank you!
@cscheid, which pre-release are you running to compile this successfully?
I installed the latest pre-release and tried to run the above and got the following error:
ERROR:
compilation failed- error
LaTeX Error: Not in outer par mode.
Did you try 1.4.466?
I tried with 1.4.458
but I shall try 1.4.466
now and let you know.
@mcanouil, that resolved the issue for me:
Thank you for resolving this so quickly!
Bug description
Image height is not applied when using an image within column layout.
Steps to reproduce
Here is a zip folder containing
document.md
,document.pdf
, andimages
which demonstrates the issue:quarto-cli-height-issue.zip
Within the markdown, setting
sets the height correctly when rendering to PDF.
However, trying to set the height when within a column layout does not work.
This behaviour can be seen in the rendered PDF.
Expected behavior
I expect the heights of the images to be adjusted appropriately based on the height value passed
Actual behavior
Currently the image height is not changed within a layout column div.
Your environment
Quarto check output
[✓] Checking versions of quarto binary dependencies... Pandoc version 3.1.1: OK Dart Sass version 1.58.3: OK [✓] Checking versions of quarto dependencies......OK [✓] Checking Quarto installation......OK Version: 1.3.450 Path: /home/jovyan/mambaforge/envs/quarto-resource-path-issue/bin
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK Version: 3.8.10 Path: /usr/bin/python3 Jupyter: (None)
[✓] Checking R installation...........(None)