The most reliable way would be to use mklatex as your pdf-engine. It will always run the right number of times.

Sounds like we need two runs for beamer slides. Can you put an issue on the bug tracker?
https://github.com/jgm/pandoc/issues


On Nov 27, 2023, at 9:06 AM, Matthias Güdemann <matthias.gudemann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Hi all,

since the following commit

```
bb36f127e * LaTeX template: include bookmark package unconditionally.`
```

I get an incomplete pdf output for slides based on beamer. The first slide is incomplete, slide numbers are incorrect and headers are missing.

Creating a .tex and running xelatex / lualatex two times produces the desired output, running either only once reproduces the effect of the incomplete pdf.

The commit message of the above commit states

```
As a consequence, we now default to running LaTeX only
once in producing a PDF (instead of twice). If a table
of contents is present, we still have to run three times
to get the page numbers.
```

is there a way to force running latex twice/thrice even if there is not toc?

best regards
Matthias



--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c17d418c-d9c5-469a-bf07-089ef375fb9bn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/48242F5E-8DF4-49AD-BC67-6B74A5EA0111%40gmail.com.