Closed darthlite closed 1 year ago
Ok, this is super obnoxious. I don't understand why, but https://tex.stackexchange.com/questions/42007/table-of-contents-does-not-show-in-a-frame had the solution: pdflatex and lualatex require two compilations in the presence of frame
environments.
You can verify that the following fixes the problem: add keep-tex: true
to your metadata, and then manually run lualatex file.tex
twice (even though there's no indication from the output that two compilations are required.)
@dragonstyle I'm not sure if this is the case for all such situations, but the only difference between the output of the two compilations I can find is the following line:
No file 6226-test.aux.
On the second compilation, this message is missing. I wonder if we should be detecting this line, and reissuing a compilation in that case.
Yes we should! There is an option to manually set minimum number of runs (‘latex-min-runs: 2’) which should allow you to force this until we get that fixed…
I’ll have a look at the fix…
Bug description
Note: I only ran into this on my fourth document using the same
_quarto.yml
file without any changes (and all with lualatex), so it seems the issue is not consistent, and I'm not sure what triggers it. However, I was able to reproduce the issue on a small MWE so decided to file this bug report.When rendering my .qmd document to beamer using lualatex as the engine and with
toc: true
, the TOC slide appears blank. If the engine is changed to xelatex, then it is populated correctly with sections.P.S. I don't want to change over to xelatex because another issue arises: it messes up my slides. For some reason anything that I wrote on the slides without a bullet point never gets shown if I switch to xelatex. I could not, however, reproduce this issue on a small example so it might have to do with my template. (Any hints about this other issue are welcome, however!).
Steps to reproduce
Expected behavior
TOC slide should look like this (this is generated with xelatex):
Actual behavior
Instead, it looks like this:
Your environment
Quarto check output