Skip to content

Latest commit

 

History

History
80 lines (57 loc) · 1.83 KB

index.md

File metadata and controls

80 lines (57 loc) · 1.83 KB
author categories date tags thumbnail title description
TC
theme
2015-07-26
xaringan
xaringan_example_theme
a theme example

A example xaringan theme example

How to use this theme

Add the following chunk in your xaringan slide.

    ```{r echo=TRUE}
    use_theme_github = function(theme = "tcgriffith/xaringan_theme_example", ref =
                                  "master") {
      bn = basename(theme)
      
      css_remote = paste0("https://raw.githubusercontent.com/",
                          theme,
                          "/",
                          ref,
                          "/",
                          bn,
                          ".css")
      
      css_name = basename(css_remote)
      xfun::download_file(css_remote)
      
      htmltools::includeCSS(css_name)
    }
    use_theme_github("tcgriffith/xaringan_theme_example", "83908f")
    ```
<style> .resp-container { position: relative; overflow: hidden; padding-top: 56.25%; } .testiframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; } </style>

Demo

slide source

<iframe class="testiframe" src="https://tcgriffith.github.io/xaringan_theme_example/use_master.html"> Fallback text here for unsupporting browsers, of which there are scant few. </iframe>

link

csslink