Hide logo and page number only for scrolling slides in RMarkdown

别来无恙 提交于 2019-12-13 06:25:01

问题


I produce a deck of ioslides with logo and page number in RStudio with rmarkdown. If the content is to big for a slide I can add slides > slide { overflow: scroll; }to my .css file and supress the logo and page number with slides > slide:not(.nobackground):after {content: '';} and slides > slide:not(.nobackground):before {background: none;}.

But I want to keep the logo and page numbers to every page with no overflow. So I tried to reference the css-styles to the #id of the overfull page but that doesn't work.

EDIT: Here is what I tried.

My .Rmd file:

---
title: "Untitled"
author: "Samuel Merk"
output: 
  ioslides_presentation:
    css: mycss.css
    logo: logo.png
date: "12 Juli 2016"
---



## Very long slide

This is the long slide.

efewg  
sdfg  
sdfg  
sdfg  

sdfg  
sdfg  
sdfg  

  efewg  
sdfg  
sdfg  
sdfg  

sdfg  
sdfg  
sdfg  


## Bullets

- Bullet 1
- Bullet 2
- Bullet 3

My Customization of the .css file

#very-long-slide {
  slides > slide { overflow: scroll; }
  slides > slide:not(.nobackground):after {content: '';}
  slides > slide:not(.nobackground):before {background: none;}
 }

来源:https://stackoverflow.com/questions/38338469/hide-logo-and-page-number-only-for-scrolling-slides-in-rmarkdown

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