Replies: 2 comments 9 replies
-
Thank you for sharing this! Could you share the qmd that causes this? I think it it probably is a bug and I'd love to fix it... |
Beta Was this translation helpful? Give feedback.
9 replies
-
Closing this as resolved and in favour of #3518 |
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.
-
I asked a question on stackoverflow and got an answer that resolved the problem. I am posting both here, maybe it is worth some modifications in quarto or not, let me know what you think.
Question:
I am wondering if it is possible to render quarto document faster.
When I render my document I get these messages in the "Background Jobs" window:
All the way until:
Output created:
Does anyone know what those 10 "running xelatex mean ? Is there a way to decrease this number of runs and what is the impact on the final rendering ?
Answer:
Quarto generates PDF via LaTeX by default. The LaTeX processors sometimes require multiple runs, as they step through the document sequentially and need a another run to, for example, update the table of contents after seeing another heading. Usually two runs are enough, but some LaTeX packages require more runs to get the correct output. Ten runs is quite unusual though, there might be something wrong elsewhere.
Quarto uses a heuristic to determine if it needs to run the LaTeX engine once more. Quarto also installs any missing LaTeX packages automatically. However, the tool latexmk is probably better in determining when to do additional calls to xelatex. You can use this tool with Quarto:
If the document still requires 10 runs, then there might be an issue with a LaTeX package somewhere.
Comment:
I added pdf-engine: latexmk and pdf-engine-opt: -xelatex and now it does not even tell me running xelatex and renders the document very quickly
Beta Was this translation helpful? Give feedback.
All reactions