quarto-dev / quarto-cli

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

Clipped footnotes for PDF print of revealjs #5998

Open harrysw1729 opened 1 year ago

harrysw1729 commented 1 year ago

Bug description

Consider the following hello.qmd file:

---
title: Hello
format:
    revealjs:
        width: 1600
        height: 900
---

## Hello

Hello^[Hello<br>hello]

The document was rendered using quarto render hello.qmd.

In the HTML output, the footnote was displayed in full:

quart_html

However, if I print the HTML to PDF in Google Chrome according to the documentation here, the footnote was clipped:

quarto_pdf

Note that there was also a blank page in the printed PDF, which echoed the discussion in #3997.

Currently, a workaround is to use a different PDF converter such as decktape, which solved both the footnote display issue as well as the trailing-blank-page issue.

Thank you for your help in advance.

Steps to reproduce

No response

Expected behavior

No response

Actual behavior

No response

Your environment

Quarto check output

[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.3.361
      Path: /Applications/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.11.4
      Path: /opt/homebrew/opt/python@3.11/bin/python3.11
      Jupyter: 5.3.0
      Kernels: ir, julia-1.9

      NOTE: No Jupyter kernel for Python found

[✓] Checking R installation...........OK
      Version: 4.3.1
      Path: /opt/homebrew/Cellar/r/4.3.1/lib/R
      LibPaths:
        - /opt/homebrew/lib/R/4.3/site-library
        - /opt/homebrew/Cellar/r/4.3.1/lib/R/library
      knitr: 1.43
      rmarkdown: 2.22

[✓] Checking Knitr engine render......OK
cderv commented 1 year ago

Currently, a workaround is to use a different PDF converter such as decktape, which solved both the footnote display issue as well as the trailing-blank-page issue.

This will probably be the solution as we plan to add this method: https://github.com/quarto-dev/quarto-cli/issues/4677

harrysw1729 commented 1 year ago

Thanks for the quick reply!

One limitation of using decktape seems to be that it could take a long time to print the PDF when there are many slides. On my device, it took around one second for each slide, making a 50+ slide deck take more than a minute to convert to PDF.