quarto-dev / quarto-cli

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

Cannot put notes on Section Header slides #7383

Open jenineharris opened 11 months ago

jenineharris commented 11 months ago

Bug description

First, it's so awesome that we can now create well-formatted Powerpoint files from R Studio!

Today I ran across what might be a bug or might just be a limitation: I am creating a PPTX file using a template that has Title, Section Header, and Title and Content slide formats. I tried to add notes to the slides and the rendering would break. After some testing, I found that when I added notes to Section Header slides, the section headers were formatted like Title and Content slides and the Title and Content slides were not formatted properly at all. The entire Powerpoint would render this way if there were notes on ANY of the Section Header slides. I can add notes to the Title and Content slides without issue.

Thanks!

Steps to reproduce

---
title: "Fake file for reproducing"
subtitle: "Whoop here it is"
format: pptx
---

# This is a Section Header slide with one hashtag to denote

::: {.notes}
I wanted notes on the section header slides but it breaks the rendering completely. If I leave off the notes on the section header slides everything works great.
:::

## This is a Title and Content slide which breaks if I put notes on Section Header slide

* Woooooo
* Wooooooooo
* Wooooooooooo

## Here is another Title and Content slide which will look terrible as well

Expected behavior

I should get 4 slides: a title slide, a Section Header slide, and two Title and Content slides.

Actual behavior

I get 2 slides: a title slide and a terrible slide with all the 3 slide content together

Your environment

Quarto check output

I have no idea how to do this. Where do you type bash?

cscheid commented 11 months ago

I have no idea how to do this. Where do you type bash?

In RStudio, you should have a tab called "Terminal". Click on that, and then type "quarto check" and press Enter.

jenineharris commented 11 months ago

Here is the quarto check:

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.353 Path: /Applications/RStudio.app/Contents/Resources/app/quarto/bin

cderv commented 11 months ago

Unfortunately, this is a limitation in Pandoc itself. Check the result of

quarto pandoc -f markdown -t pptx -o test.pptx index.qmd

(quarto pandoc is just a way to call the bundled pandoc binary).

It seems providing a div content on the first slide will break the auto layout choice for powerpoint (https://pandoc.org/MANUAL.html#powerpoint-layout-choice)

This should be reported upstream IMO

jenineharris commented 11 months ago

Alrighty, thank you for this information!