posts/layout-folder-images/ #38
Replies: 4 comments 2 replies
-
Hi Cynthia. Thanks for the excellent (and very well explained) code. I was wondering about how you deal with page breaks when rendering a large number of images. It looks like there's no problem with creating a .docx, but when many images are rendered to a pdf, I find that that they overwrite the bottom of the page, and then terminate outputting. Thanks again |
Beta Was this translation helpful? Give feedback.
-
Hi Kevin.
I’m glad you found the post useful! I haven’t needed to output to pdf so I
don’t have any direct experience with your issue. But have you tried
modifying the code chunk to generate raw latex with position options rather
than quarto markdown (or to add some position options as per
https://quarto.org/docs/authoring/figures.html#latex-figures)
? You might find this post helpful as well —
quarto-dev/quarto-cli#6736
The translation between quarto markdown into latex figure environments is a
bit finicky and I try to avoid it as much as possible so sorry I can’t be
of more help.
…On Monday, 2 December 2024, Kevin Shook ***@***.***> wrote:
Hi Cynthia. Thanks for the excellent (and very well explained) code. I was
wondering about how you deal with page breaks when rendering a large number
of images. It looks like there's no problem with creating a .docx, but when
many images are rendered to a pdf, I find that that they overwrite the
bottom of the page, and then terminate outputting.
Thanks again
—
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHCXTQ2IVE2TEPYPZLESYO32DNW5FAVCNFSM6AAAAABS2BNDZGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNBTGAZDONQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: <cynthiahqy/digital-garden/repo-discussions/38/comments/11430276@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Interesting, do you mean the `fs::dir_ls()` is not returning paths to your
images, or {glue} is truncating the leading "/"?
…On Tue, 3 Dec 2024 at 01:23, Kevin Shook ***@***.***> wrote:
I forgot to add that it looks like the method only works with relative
path names to the figures. When I tried using absolute paths, the leading
"/" was truncated.
—
Reply to this email directly, view it on GitHub
<#38 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHCXTQ4EKEOGTVDSTNOWOCD2DRUOLAVCNFSM6AAAAABS2BNDZGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNBTG4ZDCNY>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Hi Cynthia |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
posts/layout-folder-images/
How to use ‘asis’ output from R code chunks to generate inline image links for an entire directory of images, AND arrange them using Quarto’s custom figure layout syntax
https://www.cynthiahqy.com/posts/layout-folder-images/
Beta Was this translation helpful? Give feedback.
All reactions