quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.62k stars 296 forks source link

revealjs export pdf changes code block font #9699

Open bcm0 opened 2 months ago

bcm0 commented 2 months ago

Bug description

Fonts in code blocks change and line highlighting is deleted

Steps to reproduce

Visit https://quarto.org/docs/presentations/revealjs/demo/#/line-highlighting look at the font, press e key and scroll down again to see the changed font

Expected behavior

The font should stay the same

Actual behavior

The font changes

Your environment

No response

Quarto check output

No response

mcanouil commented 2 months ago

I cannot reproduce any font change.

I don't thing there is a bug here even with the "different animation".

image image
bcm0 commented 2 months ago

I cannot reproduce any font change.

Thank you for your quick reply. I can clearly see the font change in your screenshots because the font changed from sans-serif to serif and 0,=,* look different.

I tried the revealjs demo and there's no font change during pdf export and the line highlighting works.

https://revealjs.com/demo/#/4

https://revealjs.com/demo/?print-pdf

cderv commented 2 months ago

About the overwrite, this is an issue in Revealjs, fixed in 4.6

We'll update to v5 for next release, so it should fix it.

For the highlighting, Quarto does not use the same tool that reveal, so maybe we need to add some specific CSS rules to the print version. We'll see that after v5 update.