Rstudio 0.98.1028 add background image only to title slide

前端 未结 1 1649
陌清茗
陌清茗 2020-12-17 02:52

I am attempting to create a R Presentation (.Rpres) using RStudio 0.98.1028 with a different background image on the title slide and another background image on the rest of

相关标签:
1条回答
  • 2020-12-17 03:06

    You're 99% of the way there. Just one or two more tweaks and you'll have it. You may consider adding the following to ensure your slides are using the separate css file with something like the following added to your title slide.

    Intro
    ======
    author: Clever Name
    css: css-file.css
    

    You then can overwrite the background of the title slide by including the following between <style> </style> tags at the very top of your .Rpres file before your intro slide, or in your separate css file.

    <style>
    /* Your other css */
    
    .section .reveal .state-background {
        background: url(foo1.png);
        background-position: center center;
        background-attachment: fixed;
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }
    </style>
    

    You're really close. Just change your title-slide { /* do stuff */ } to .section .reveal .state-background { /* do stuff */ }

    0 讨论(0)
提交回复
热议问题