quarto-dev / quarto-dev/quarto-cli

Clipped footnotes for PDF print of revealjs

Open
#5,998 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug footnotes revealjs
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

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
  • IDE: Visual Studio Code 1.79.2 (Universal)
  • OS: macOS 13.4
  • Quarto: 1.3.361
  • Google Chrome: 114.0.5735.133 (Official Build) (arm64)
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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by rendering the provided hello.qmd with quarto render, then follow the revealjs print-to-PDF documentation and compare the Chrome output with the decktape workaround. Done means the footnote is no longer clipped and the trailing blank page is removed when printing the revealjs HTML to PDF.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.