Replies: 2 comments 1 reply
-
function Pandoc(doc)
print(quarto.doc.input_file)
print(quarto.doc.output_file)
endEmbarrassingly, we don't appear to document this. We should, it's a public API and we even have lua-types declarations for it. I should also note that for For pre- and post-render scripts, you have (documented, phew!) environment variables |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Thanks! How would I add this to my file to get it automatically, swap out the html to pdf, and embed with {{}}? |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Description
I have a file, e.g. in
slides/intro.qmdwhich I am using to buid revealjs slides (which end up asslides/intro.htmlin my render).I am following advice to also add in a decktape post-render script to generate a
slides/intro.pdfin my toolchain.My question is how I can, generally, refer to a PDF created for a particular file? Is there a way with a shortcode to get the
slides/introin some way, which I can then copy/paste into my templates to work for linking to any files?Beta Was this translation helpful? Give feedback.
All reactions