Replies: 2 comments 6 replies
-
... or alternatively: |
Beta Was this translation helpful? Give feedback.
-
You can use Lua filter to tweak the output. You don't need a full custom writer for Pandoc as with Quarto you can insert Lua filter at different step of the rendering, one being the very last. See https://quarto.org/docs/prerelease/1.4/lua_changes.html#more-precise-targeting-of-ast-processing-phases Doing something like filters:
- at: post-render
path: filter.lua would apply your Lua filter after all Quarto processing, before Pandoc writing to output. So if you want to write the LaTeX yourself from there instead of Pandoc this could be possible.
Regarding PDF engine, by default Quarto uses its own with some auto-install logic (https://quarto.org/docs/output-formats/pdf-engine.html#quarto-pdf-engine) but you could also opt out and use another one (https://quarto.org/docs/output-formats/pdf-engine.html#latexmk). In that case Quarto won't render to PDF itself and I suspect that you can pass to Hope this helps |
Beta Was this translation helpful? Give feedback.
-
Description
I'm using quarto for project documentation, basically turning "quarto books" into PDF documents.
To render the PDF output to the desired style, I already use an extension supplying the required templates, etc. (veriy similar to PrettyPDF).
Now, there are still some "flaws" in the generated PDF, which I want to eliminate and which go beyond the regular filter or template modifications. Actually, they originate from pandoc's latex output writer, regarding the rendering of some particular elements (like tables). For example this issue: jgm/pandoc#3929.
My requirements could possibly be resolved with a custom output writer I have to create for pandoc, which would render the "fixed" latex that is then used for the PDF generation process.
So my question is:
Is there any configurable way, to tell quarto to use a custom output writer to create the intermediate latex?
Beta Was this translation helpful? Give feedback.
All reactions