R presentation (rpres) goes black in full screen mode

ε祈祈猫儿з 提交于 2019-12-06 23:27:50

问题


Whenever I take an .Rpres file full screen under the latest RStudio (v0.99.902) on macOS every slide after the intro has a black overlay that does not disappear.

While the window is minimized we have:

[

Under full screen mode (press f), switching from the title slide to the subsequent slides yields:

Code used:

Lecture 4: The Art of Life
====
author: 385
date: Today
autosize: true

On the Agenda
====

- Learn about functions
- Learn about other things..

> Only this text appears

回答1:


I had this problem too.

F11 didn't help me either, until after I started viewing the slides full-screen using the menu bar:

This made my slides full-screen (with the nice white background), then I could use F11 to toggle off the full-screen option. Does this work for other folks?




回答2:


Explicitly adding font and background colors in custom.css worked for me.

.reveal .state-background {
  background: white;
} 
.reveal {
  color: black;
}

(You also obviously have to add css: custom.css under the title slide's title.)



来源:https://stackoverflow.com/questions/37902552/r-presentation-rpres-goes-black-in-full-screen-mode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!