pandoc icon indicating copy to clipboard operation
pandoc copied to clipboard

Support adding notes to title page

Open paulmenzel opened this issue 5 years ago • 1 comments

For a presentation, when trying to add speaker notes (to be displayed for example in reveal.js) to the title slide (for the introduction for example), pandoc creates an empty first slide after the title, instead of adding the notes block(?) to the title section block. (Editing the HTML manually works around the problem.)

----
title: bla
...

::: notes

Notes for the title slide

:::

# First slide

Something interesting

# Second slide

Even more

paulmenzel avatar Oct 22 '19 14:10 paulmenzel

Like the OP, I also would like to see speaker notes on the title slide for reveal.js. Rather than editing the HTML after the fact, I have done something like this in the metadata.

---
title: bla
title-slide-attributes:
	data-notes: "In today's presentation:
	
	<p>
		&bull; list 1 <br/>
		&bull; list 2 <br/>
		&bull; list 3
	</p>
	"
...

Not as ideal as using ::: notes that convert to <aside class="notes"> but it is functional.

lief-erickson avatar May 12 '22 21:05 lief-erickson

Not as ideal as using ::: notes that convert to <aside class="notes"> but it is functional.

What I did and seem to work quite well so far was to download https://github.com/jgm/pandoc-templates/blob/master/default.revealjs and to add a snippet to put the custom attribute title-notes to the output.

tpl snippet, added right under <h1 class="title">$title$</h1>

$if(title-notes)$
  <aside class="notes">
  <p>
$for(title-notes)$
  $title-notes$<br/>
$endfor$
  </p>
  </aside>
$endif$

That way I can add speaker notes to the title like this:

---
title-notes:
  - First line of Speaker Notes on the Title Slide
  - Second Line
  - Third Line
...

Formatting wasn't a big deal for me, having just newlines was fine in my case.

wombelix avatar Nov 22 '22 10:11 wombelix