Replies: 2 comments 4 replies
-
Did the following not work? ```{=latex}
\includepdf[pages=-, scale=0.8, frame]{my_file.pdf}
``` (Or the span/inline version) Please take the habit to provide the steps to get a reproducible example, here it does not need to be a book. |
Beta Was this translation helpful? Give feedback.
-
The code below worked for me (suggested by the latex output for
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I'm using Quarto 1.6.40 with RStudio 2024.12.0 and R 4.4.2.
I created an instance of the quarto book template. I revised
index.qmd
like this:I'm really happy with how the page is embedded. But it is only the first page. Is there a way to get all the pages? Elsewhere I tried
\includepdf[pages=-, scale=0.8, frame]{my_file.pdf}
(with\usepackage{pdfpages}
) but that solution does not display quarto's native margins (page numbers, etc). I saw https://github.com/jmgirard/embedpdf but as advertised it supports html only. Per https://stackoverflow.com/questions/52486342/how-to-add-a-multipage-pdf-to-rmarkdown , I tried iterating from 1 to n-pages, but quarto escapes the latex characters from my loop, despiteoutput: asis
:I tried wrapping in fences with
{=latex}
but I'm missing something important. Suggestions welcome.Beta Was this translation helpful? Give feedback.
All reactions