Xaringan: Presenter notes don't display at the correct time if using `--`

Created on 15 Jun 2017  Â·  3Comments  Â·  Source: yihui/xaringan

This is a fantastic package! One thing irks me. When I use -- to control when elements show up on my slides, the presenter notes wait _until the last element has been displayed_ before they show up. I would like the presenter notes to pop up right when I get on the slide. An example is below (note that I had to comment out that r setup line for github to display this properly).

title: "Presentation Ninja"
subtitle: "âš”<br/>with xaringan"
author: "Yihui Xie"
date: "2016/12/12"
output:
  xaringan::moon_reader:
    lib_dir: libs
    nature:
      highlightStyle: github
      highlightLines: true
      countIncrementalSlides: false
---

#```{r setup, include=FALSE}
#options(htmltools.dir.version = FALSE)
#```

---
class: center, middle

# xaringan

### /ʃæ.'riŋ.ɡæn/

--

A thing broken up by the two dashes

???

These presenter notes should be on the Xaringan slide _when it first pops up_ 
so I can use the notes along the way, 
but instead it waits until I get to the last bullet/element on the page.

---
class: center, middle

# Get Started

--

Thing 1

--

Thing 2

???

The same thing happens here. Presenter notes dont show up until the end. Not useful!

I figured out that if I place the presenter notes right after the title, and before the first -- then they show up at the correct time, and they even last for the duration of the slide like I'd want (shown below). It just seems ugly to have to place the presenter notes right in the middle of the slide, instead of at the end. Is this the only work around?

class: center, middle

# Get Started

???

Awkwardly, this seems to work!

--

Thing 1

--

Thing 2

Most helpful comment

That's what I found as well with more research. Turns out, by using -- in remark.js, all the material from before the break is first copied to after the break, then the new material written after the break is added as well. This seems to be why presenter notes written before the first -- get copied through to the rest of that slide.

I'll close as not an issue with xaringan

All 3 comments

I have noticed the same thing myself, but this issue is not specific to xaringan, which is a simple wrapper of remark.js. If this issue is to be fixed at all, it needs to be fixed in remark.js.

That's what I found as well with more research. Turns out, by using -- in remark.js, all the material from before the break is first copied to after the break, then the new material written after the break is added as well. This seems to be why presenter notes written before the first -- get copied through to the rest of that slide.

I'll close as not an issue with xaringan

this works for me.

## Header

???
* notes
* notes
--

* Bullet point 1
--

* Bullet point 2
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ekstroem picture ekstroem  Â·  6Comments

emitanaka picture emitanaka  Â·  3Comments

ndphillips picture ndphillips  Â·  3Comments

royfrancis picture royfrancis  Â·  4Comments

gavinsimpson picture gavinsimpson  Â·  4Comments