Repository navigation
Description
Bug description
I've recently started using Quarto 1.6.30 and notice issues with markdown images in pdf output scaling incorrectly, even with width or height being set. I use nix so I could get things working by reverting to 1.4.554. However, I'd really prefer to use the newer version.
Steps to reproduce
I've created a reprex repo at https://github.com/shriv/quarto-1-6-30-pdf-reprex. I'm going to open an issue on nixpkgs as well as I'm uncertain where the issue is coming from - if quarto-cli or from the way it's been installed / LaTeX dependency in nix.
Thanks a lot!
Expected behavior
I expect quarto to scale images to the pdf space available or respect the scaling parameters. For example, setting {width=50%} should also automatically scale the height but that doesn't happen.
Actual behavior
Distorted figures or figures going beyond paper extent in pdf output.
Your environment
- Mac OS Sonoma 15.1
- Nix environment with quarto 1.6.30 and TexliveSmall to render pdf.
Quarto check output
Quarto 1.6.30
[✓] Checking environment information...
Quarto cache location: /Users/ravis/Library/Caches/quarto
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.80.5: OK
Deno version 2.0.5: OK
Typst version 0.12.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.6.30
Path: /nix/store/xsjglmzy228ybl0hq2c02jaxbqx35fi1-quarto-1.6.30/bin
[✓] Checking tools....................OK
Chromium: 869685
TinyTeX: (not installed)
[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /nix/store/kswbn11x2a02dcb0wn87hlplbcab75v7-texlive-2023-env/bin
Version: undefined
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.12.7
Path: /nix/store/frc7d30yv8r6sxx691sni1r0n5bzhzm6-python3-3.12.7-env/bin/python3.12
Jupyter: 5.7.2
Kernels: python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.4.1
Path: /nix/store/srzzswyj2dsdk8varcma496avn7d4vgp-R-4.4.1/lib/R
LibPaths:
- /Users/ravis/Library/R/arm64/4.4/library
- /nix/store/v0w7lckfrjx62m28kx6df4j4gwjmnbcd-r-boot-1.3-30/library
- /nix/store/il2g740v6q5c6nv2mp2s9p99fig0zl05-r-class-7.3-22/library
- /nix/store/w3z7xvawday7wkh2vr8mq1kba8pdljhj-r-MASS-7.3-61/library
- /nix/store/8b8p8igydyhd9nc5fy5c243aaqkxgryb-r-cluster-2.1.6/library
- /nix/store/a5ifdwbr06asns52fb2gpwqvk21dkrg0-r-codetools-0.2-20/library
- /nix/store/j7zmd2ah6djqrfrq95nmii9fjkfn7rba-r-foreign-0.8-87/library
- /nix/store/dwglrhlqq7r8f2iaypgqzcb3ml52q8r6-r-KernSmooth-2.23-24/library
- /nix/store/4s5vx67ps5zsr6h3cd7ablba071rnq0f-r-lattice-0.22-6/library
- /nix/store/w4g6ppzn1xyhnz9zdgf89sxqpjjm4dnj-r-Matrix-1.7-0/library
- /nix/store/77xcwh8cmc2fcmhrnbjc9njjwz8p7sbv-r-mgcv-1.9-1/library
- /nix/store/s5h0nhchjspl1w5iydr2r28ziwsvm9pi-r-nlme-3.1-166/library
- /nix/store/sck7bg1aqmcjhkylh5vpykz04d512wwn-r-nnet-7.3-19/library
- /nix/store/13v1hz990fj7adpqf0mg57lrsx108axq-r-rpart-4.1.23/library
- /nix/store/s61qq16abvy6byzxx4a6f3qyx3h13qas-r-spatial-7.3-17/library
- /nix/store/bsvwdrrdnkchnkp72kx5rgcwph82h0wq-r-survival-3.7-0/library
- /nix/store/v02n7cfnhssb3lfi8w7c16khiks041ap-r-rmarkdown-2.28/library
- /nix/store/piaijkzhfpagbpjyrikhn8am35kc4g4j-r-bslib-0.8.0/library
- /nix/store/k4s78cwa6xlxw6ygxzllq415hiiwawdx-r-base64enc-0.1-3/library
- /nix/store/4aw4chnibbfwy059lkm5q2dzlp9014k0-r-cachem-1.1.0/library
- /nix/store/wxnz65i9nzlw7zcxmsg9bw813yr7r6j1-r-fastmap-1.2.0/library
- /nix/store/57fg422i0ajimmn185ryg88kcs4mi0rl-r-rlang-1.1.4/library
- /nix/store/h5s7sc4y9wgxmggi8mlyw3mcq3im6k1b-r-htmltools-0.5.8.1/library
- /nix/store/d6vmm18jl97966l9kgbc0pc58s0ynjkd-r-digest-0.6.36/library
- /nix/store/walyj064wc4m3x50pgjmng7r1zfnv6p9-r-jquerylib-0.1.4/library
- /nix/store/bc88bbxwzxbdj2a348vziss61f3gr4hc-r-jsonlite-1.8.8/library
- /nix/store/6cks5zx7i4dmw9xill5x3zkwwg9a722p-r-lifecycle-1.0.4/library
- /nix/store/kj4qqajszrhhlcd1xklxwy823hga96pc-r-cli-3.6.3/library
- /nix/store/g32b9pqc9ddkxhg19knxvbpm0k8xa8v4-r-glue-1.7.0/library
- /nix/store/06a3w1kryh4z9hc4amw7fgh9l9b76n65-r-memoise-2.0.1/library
- /nix/store/i2jqxcs8kr83x4lq0bilmnfxd7jhqjjk-r-mime-0.12/library
- /nix/store/bbhf2bkd68rhm3r6ivlg891jpqhgp45s-r-sass-0.4.9/library
- /nix/store/438m1k15ha0m0jb217j9n70px5pydqjs-r-R6-2.5.1/library
- /nix/store/0px0i5sgaky2nk8fw9rkfncpw6d9bwls-r-fs-1.6.4/library
- /nix/store/pj42daw97jwn7phknq3xaazhcqg1k2as-r-rappdirs-0.3.3/library
- /nix/store/205cx6895l1ci02ks63fdmy61n430wxv-r-evaluate-0.24.0/library
- /nix/store/y8jsixzaykj290xcqyxx073wpl9dl9m3-r-fontawesome-0.5.2/library
- /nix/store/81jjkm4qq0vyhm09kj1mxn6z7cgc9hix-r-knitr-1.48/library
- /nix/store/49xkd6pp487a6m6qvfjx35rkpzqqb96b-r-highr-0.11/library
- /nix/store/c5kfkcwph580i60md07l4adw2scljc2p-r-xfun-0.47/library
- /nix/store/zij0vmpac2vv5s9dpgya2fyc7jr9yz0l-r-yaml-2.3.10/library
- /nix/store/9brqyw0z78fz1ipdxkwqxqfgrc67kpr4-r-tinytex-0.52/library
- /nix/store/4s8z8il6zyq77ixy4b8kfzwsnz90vsrm-apple-sdk-11.3/Library
- /nix/store/srzzswyj2dsdk8varcma496avn7d4vgp-R-4.4.1/lib/R/library
knitr: 1.48
rmarkdown: 2.28
[✓] Checking Knitr engine render......OK
Activity
cscheid commentedon Nov 13, 2024
We're not the authors nor do we support the
nixpackages, so we can't offer direct help there.With our packaged builds, I cannot reproduce this issue, and I believe I get the same output for 1.4.554 and
main:1.4.554
report-14.pdf
mainreport.pdf
shriv commentedon Nov 13, 2024
Thanks @cscheid! I've linked to a reprex in a github repo and noted in the README that I'm not sure where the issue is coming from! I've raised a problem in the MR that added 1.6.30 to nixpkgs. Happy to continue this with the nix folks if it's not a quarto CLI issue 🙏 😃
shriv commentedon Nov 14, 2024
Seems like this is a nix issue @cscheid so I'm closing this one. :-)