yihui / xaringan

Presentation Ninja 幻灯忍者 · 写轮眼
https://slides.yihui.org/xaringan/
Other
1.49k stars 280 forks source link

Incremental slides do not work with a two-column layout #71

Closed Woosah closed 7 years ago

Woosah commented 7 years ago

I do not know if this is the right place to ask this question, because it does also apply to the remark.js source, but...:

If you use a two column layout, i.e. something like you did here:

https://slides.yihui.name/xaringan/#15

Than incrementing the bullet points with -- does not work anymore.

I also tried the css rules from here, which are embedded in the source:

https://remarkjs.com/

/* Two-column layout */
.left-column {
  color: #777;
  width: 20%;
  height: 92%;
  float: left;
}
.left-column h2:last-of-type, .left-column h3:last-child {
  color: #000;
}
.right-column {
  width: 75%;
  float: right;
  padding-top: 1em;
}

and inside the right column, the original remark css rules:

.pull-left {
  float: left;
  width: 47%;
}
.pull-right {
  float: right;
  width: 47%;
}
.pull-right ~ p {
  clear: both;
}

are applied to have a two-column-layout within the right column. Here, the incremental functions do not work!

Have you any idea how to fix this? How can I modify the css to accomplish this?

Next to this, some functionality of the original remark.js like having "mini-slides" within the code like here:

https://remarkjs.com/#7

do not work with xaringan. Is this missing feature due to R?

yihui commented 7 years ago

Sorry, but I don't have time to answer your two questions. Could you ask them (separately) on StackOverflow with minimal reproducible examples and see if you have any luck there? You can use the tag remarkjs https://stackoverflow.com/questions/tagged/remarkjs

You can let me know the links if no one answers your questions after two days.

Woosah commented 7 years ago

Sorry that I have bothered you immediately by filing an issue here...especially as I have read your blog post about this some weeks ago. My apologies!

I did not receive any answers on stackoverflow until now, so I am carefully coming back here to see if you may have a look at it?

https://stackoverflow.com/questions/46408057/incremental-slides-do-not-work-with-a-two-column-layout

If not - no problem. At the end, I can solve this manually by just hiding the slide numbering and put each incremental step on a new slide....this would be my go-to solution back in the ppt-days anyway! :-)

Greetings and thanks for your time!

yihui commented 7 years ago

Thanks for your understanding! I have posted an answer on SO.