slidify

How to use MathJax in Slidify?

痞子三分冷 提交于 2019-12-04 23:30:09
问题 It seems that all that need to do is to claim widget: mathjax in the title page. But I can't get the formulas correctly rendered. Anything missing? Thank you. UPDATE : I checked the final index.html , and found that many "*"'s have become <em> or </em> . It seems that slidify is mixing the * in LaTeX and the * in markdown. Here is my LaTeX snippet: \begin{align*} &\begin{bmatrix} \mathbf{y}\\ y_* \end{bmatrix} =\mathcal{N}\left(0,\begin{bmatrix} K & K_*\\ K_*^T & K_{**} \end{bmatrix}\right)\\

How to use slidify with impress.js

妖精的绣舞 提交于 2019-12-04 07:49:06
Following https://twitter.com/ramnath_vaidya/status/274636089715740672 slidify should support impress.js. But when I use --- title : Test subtitle : author : job : framework : impressjs # {io2012, html5slides, shower, dzslides, ...} highlighter : highlight.js # {highlight.js, prettify, highlight} hitheme : tomorrow # widgets : [] # {mathjax, quiz, bootstrap} mode : selfcontained # {standalone, draft} --- as head of my Rmd-file (impressjs as in https://raw.github.com/ramnathv/slidify/gh-pages/samples/impressjs/index.Rmd ) I get an empty directory in libraries/frameworks called impressjs. Where

Adjust the size of plotly charts in slidify

故事扮演 提交于 2019-12-03 16:23:50
I've created a plotly chart in R and then save the plot via htmlwidget so the plot can called in slidify. I played with width and height , in both layout argument and index.Rmd to fit the plot on a slidify slide but the final result always cut the bottom portion of the chart when some texts are added together. How can I truly adjust the size of the plotly chart in slidify? The code in R script ## first slide date <- seq(from = as.POSIXct("2015/4/1"), to = as.POSIXct("2015/10/1"), by = "month") as.Date(date, "%Y/%m/%d") set.seed(2016) tot.prem <- runif(n = 7, min = 0, max = 1200) pol.frce <-

How to use MathJax in Slidify?

情到浓时终转凉″ 提交于 2019-12-03 14:15:27
It seems that all that need to do is to claim widget: mathjax in the title page. But I can't get the formulas correctly rendered. Anything missing? Thank you. UPDATE : I checked the final index.html , and found that many "*"'s have become <em> or </em> . It seems that slidify is mixing the * in LaTeX and the * in markdown. Here is my LaTeX snippet: \begin{align*} &\begin{bmatrix} \mathbf{y}\\ y_* \end{bmatrix} =\mathcal{N}\left(0,\begin{bmatrix} K & K_*\\ K_*^T & K_{**} \end{bmatrix}\right)\\ \Longrightarrow & y_*|\mathbf{y}\sim\mathcal{N}\left(K_*K^{-1}\mathbf{y},K_{**}-K_*K^{-1}K_*^T\right)\

customizing slide layouts in slidify

*爱你&永不变心* 提交于 2019-12-02 21:16:18
I am interested in using different layouts for different slides within my index.Rmd file. after copying the template provided here and below, I created a .html file in my assets/layouts folder. <slide class="{{ class }}" id="{{ id }}"> <hgroup> {{{ header }}} </hgroup> <article> <hr noshade size=4 color='red'> {{{ content }}} <div class='left' style='float:left;width:48%'> {{{ left }}} </div> <div class='right' style='float:right;width:48%'> {{{ right }}} </div> </article> </slide> having got this far, it remains unclear: 1) why the slides in my deck are blank and not displaying any of the

Set chart area background color in rCharts/slidify/nvd3

南笙酒味 提交于 2019-12-02 07:09:13
For the following slidify deck, --- title : Foo framework : revealjs # {io2012, html5slides, shower, dzslides, ...} revealjs : {theme: solarized} highlighter : highlight.js # {highlight.js, prettify, highlight} hitheme : tomorrow # widgets : [] # {mathjax, quiz, bootstrap} mode : selfcontained # {standalone, draft} ext_widgets : [libraries/nvd3] --- ## NVD3 Plot Iframe ```{r nvd3plot2, results = 'asis', comment = NA, message = F, echo = F} require(rCharts) n1 <- nPlot(mpg ~ wt, data = mtcars, type = 'scatterChart') n1 ``` I want to set the background color of the chart to white. I can do this

Slidify: Alignment of Codes

放肆的年华 提交于 2019-11-30 20:23:39
I have problem with the alignment of the codes in two column slide. Here is my code for this slide, --- &twocol ## Sample R Codes *** =left ```{r, echo=FALSE} options(width=30) ``` ```{r, fig.height=5.5,highlight=TRUE, fig.show='hide',tidy=TRUE} mvreg.sim <- function(xcov,beta1=matrix(c(0.7, 0.2, 0.2, 0.7), nr = 2, nc = 2), err.mu=c(0,0), err.sigma=matrix(c(100,0,0,100), nr=2)){ library(mvtnorm) N <- nrow(xcov) e <- rmvnorm(N, mean = err.mu, sigma = err.sigma) y <- matrix(NA, nrow = N, ncol = 2) for(i in 1:N){ y[i,] <- (xcov[i,])%*%beta1 + e[i,] } return(y) } ``` *** =right This is the

Adding an image to title slide using slidify

倾然丶 夕夏残阳落幕 提交于 2019-11-30 08:35:47
I am using the latest version of Rstudio (and knitr) and I have installed the development version of slidify from github. Slidify allows you to go straight from Rmarkdown to html5slides with 1 click. My issue is that I would like to add an image to the title slide, but using the normal Rmarkdown syntax does not work. I think this is because the first slide is specified as a YAML. title : subtitle : author : job : framework : io2012 # {io2012, html5slides, shower, dzslides, ...} highlighter : highlight.js # {highlight.js, prettify, highlight} hitheme : tomorrow # widgets : [] # {mathjax, quiz,

Adding an image to title slide using slidify

…衆ロ難τιáo~ 提交于 2019-11-29 12:15:26
问题 I am using the latest version of Rstudio (and knitr) and I have installed the development version of slidify from github. Slidify allows you to go straight from Rmarkdown to html5slides with 1 click. My issue is that I would like to add an image to the title slide, but using the normal Rmarkdown syntax does not work. I think this is because the first slide is specified as a YAML. title : subtitle : author : job : framework : io2012 # {io2012, html5slides, shower, dzslides, ...} highlighter :

Show an R markdown chunk in the final output

早过忘川 提交于 2019-11-28 05:27:05
问题 I am writing on a presentation using Knitr, Markdown and Slidify. The slides will be partly deal with Knitr as topic which is the reason why I stumbeld upon a problem. I cannot include for example a knitr-markdown chunk to show it on the slide. It will always be interpreted on the first run even if I do something like this: ``` ```{r eval = F, include = T} ``` ``` How can I prevent a chunk to be interpreted and thus removed from the final output so that I can show how a chunk is structured