Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title on a "reveal" slide #17

Closed
droglenc opened this issue Apr 9, 2020 · 6 comments
Closed

Title on a "reveal" slide #17

droglenc opened this issue Apr 9, 2020 · 6 comments

Comments

@droglenc
Copy link

droglenc commented Apr 9, 2020

Dr. Reynolds,

First, think you very much for flipbookr. It looks to be a wonderful tool!!

I do have a couple of questions that I will pose as issues here. My first question is whether it is possible to have a "title" on the slides that are "revealing" the code. I do not see that in any of the example flipbooks. Essentially I would like to have a slide that looks like this (I have a minimal reproducible example I could give you, but I can't figure out how to include it here without Github rendering the rmarkdown code) ...

---

# I would like to include a title here!

`r chunk_reveal("cars", break_type = "auto")`

---
@droglenc
Copy link
Author

droglenc commented Apr 9, 2020

I should have noted that the reveal slide looks roughly like this ...


I would like to include a title here!

class: split-40 count: false

cars

@EvaMaeRey
Copy link
Owner

Hi @droglenc, I have thought about the title a few times myself, so I will let you know soon if I get to implementing it.. I think this might involve changing the side-by-side approach to one that is more like @gadenbuie's https://www.garrickadenbuie.com/blog/decouple-code-and-output-in-xaringan-slides/ Currently the css is different - columns defined, not .pull-left and .pull-right. This probably doesn't explain very clearly. Just some notes to myself. But I have been thinking about it, and appreciate your interest in this.

@EvaMaeRey
Copy link
Owner

Regarding left_assign. It sounds not hard to implement, but I guess it is a little lower priority in my mind. Out of curiosity, I'd be interested to know how you found out about flipbookr. Thanks!

@droglenc
Copy link
Author

Thank you. I don't remember how I first heard of flipbookr. I know that I watched the video of your UserR talk because I am interested in teaching R. However, I have not had a need to for such a step-by-step (the revealing) approach until I was just approved to teach (essentially) a ggplot2 course. I am now preparing materials for that. We will see how it goes in a couple of weeks.

Thanks again for your creation of the package and your response.

@EvaMaeRey
Copy link
Owner

There is now an argument for title = "" in chunk_reveal, if you want to update your {flipbookr} package by reinstalling. You will have to enter the markdown hierarchy if you want that, so title = "# My Title" should give you a nice big bold title.

@droglenc
Copy link
Author

Gina .... sorry for the delay. Thank you. I also like the other new features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants