Replies: 2 comments 13 replies
-
Did you try setting some wait time before the screenshots happen? It might simply be because MathJax was not fully loaded which means the math layout is not finished. |
Beta Was this translation helpful? Give feedback.
-
For revealjs printing to PDF, I found I had the best results with using decktape to make the PDF printing. and linked issues I don't have ideas on what could cause the Math to not be fully rendered 🤔 You could also check what Revealjs gives you before printing in browser by looking at the print-pdf version of the slide. This would make sure there is nothing weird already there before triggering a chrome print. All this PDF printing is touchy, with lots of element. I would really try out other printing tools so that we can know if this is an issue with pagedown itself, or other layers. Hope it helps |
Beta Was this translation helpful? Give feedback.
-
Description
I'm using RevealJS html-slides created with Quarto more and more, and to create pdf handouts I've been using
pagedown::chrome_print()
which works very well. I have however noticed a very random bug when converting my slides: the pdf produced bypagedown::chrome_print()
is not always exactly the same. Most of the times, the conversion is flawless but some times all LaTeX formulas are missing while other times some but not all formulas are missing. It appears more frequently with large decks, so it's taken me some time to create a minimal reproducible example. I'm not sure whether this is a Quarto or pagedown/chromote thing, but I'd be happy to see if anyone other than me can recreate the problem and to get some input on what might be causing this.Consider this
slides.qmd
:I've used the following script to create 350 pdf's of the html slides
When I look at their sizes I see this pattern:
The majority of the slides look like this (which matches the html):
The larger files are because the plot is pushed to its own slide which is weird because everything else is unchanged. The smaller files are because some of the LaTeX is stripped like this:
The above has been created using
but the issue has been bugging me for quite a while, so it's definitely not something new. Any ideas what's at stake here?
Beta Was this translation helpful? Give feedback.
All reactions