Questions tagged [xaringan]

An R package to create HTML5 slides based on R Markdown and the JavaScript library remark.js.

An R package to create HTML5 slides based on R Markdown and the JavaScript library remark.js . See its Github repository for more information: https://github.com/yihui/xaringan.

224 questions
7
votes
1 answer

Presenter mode of a Xaringan presentation does not sync

When I use Xaringan's presenter mode, the window (in chrome) showing the presenter mode and the window showing the normal view (another tab in chrome) are out of sync. IE, moving slides in the presenter mode window does not move the normal slides…
StarScream2010
  • 241
  • 1
  • 5
7
votes
1 answer

Xaringan: Math renders as inline code in footnote class

Using the default Xaringan CSS, if $math$ is placed in a footnote, it appears to be rendered as inline code, rather than rendering as math. I was not able to find information about this - is this just a natural limitation in Xaringan or remark.js?…
ryansafner
  • 93
  • 3
7
votes
3 answers

Get Xaringan incremental animations to print to PDF?

My Xaringan (fantastic package) deck in HTML has incremental additions of bullets that behave as desired. When printed to PDF, the incremental additions disappear. I tried printing the HTML to PDF in a few ways suggested by the documentation:…
dizhihong
  • 105
  • 3
7
votes
1 answer

xaringan: kableExtra::kable_styling() and wider tables

I am using xaringan to create an html presentation, which includes some tables generated using kable(). Unfortunately, these tables are quite narrow, so I'd like to use the full_width option in kable_styling. Moreover, I'd like to turn off the…
simoncolumbus
  • 526
  • 1
  • 8
  • 23
7
votes
1 answer

Highlight selection of code in xaringan

How can I highlight a single word or a selection of code in xaringan instead of the whole line? In the following example I want to highlight only the pipe operator %>% and not the whole line. --- output: xaringan::moon_reader: css: [default] …
David
  • 9,216
  • 4
  • 45
  • 78
7
votes
2 answers

Xaringan Title Slide

In xaringan, I want to add a background in the title slide. I've managed to do that following Yihui's instructions. This works, except I loose the default fonts (Yanone Kaffeesatz). YAML: --- title: "My title" subtitle: "My subtitle" author: "Me…
Thomas Speidel
  • 1,369
  • 1
  • 14
  • 26
7
votes
1 answer

Using emoji in xaringan presentation

I'd like to know if there is a way to use markdown syntax for adding emoji in xaringan presentation. A minimal example would be --- # Slide #1 :smile: --- that would produce Slide #1 Thanks!
J.P. Le Cavalier
  • 1,315
  • 7
  • 16
7
votes
1 answer

Adding logo to title slide

How do I properly add logos to the top of the title slide? After some trial and error, I came up with this which I add to the css file. .title-slide.remark-slide-content:before{ position: absolute; content:url(logo.svg); height:60px; } This…
mindlessgreen
  • 11,059
  • 16
  • 68
  • 113
6
votes
1 answer

Include filepath for css file in R Markdown YAML

I need to link my R Markdown to a css file. If the css file is in the same directory as the .Rmd file, it works without problems. If the css is in a different directory, it does not work. How do I include a file path in the css field of my…
Brigadeiro
  • 2,649
  • 13
  • 30
6
votes
1 answer

Label rows and columns of a matrix in R Markdown with Latex and HTML rendering

I am having trouble rendering some Latex code with R Markdown in HTML using the excellent xaringan R package. Specifically I would like to label the rows and columns of a matrix as described here. The thing is that, as far as I understand, some…
6
votes
2 answers

Xaringan: Export slides to PDF while preserving formatting

I have a Xaringan slide that looks like this: --- title: "Xaringan test" output: xaringan::moon_reader: self_contained: false chakra: 'assets/remark-latest.min.js' css: 'assets/presentation.css' --- ### This is a heading This is…
mindlessgreen
  • 11,059
  • 16
  • 68
  • 113
6
votes
1 answer

xaringan: generated table with nested formatted code

In xaringan how to create table having some cells being formatted as code. In markdown I would declare such table in a following way: header1 | header2 | header3 --------------------------- `fun1` | `code1` | text not formatted as code `fun2` |…
jangorecki
  • 16,384
  • 4
  • 79
  • 160
5
votes
2 answers

Can I print tibbles in Rmarkdown / xaringan so they look like the RStudio console

If I print a tibble with the console in the RStudio IDE the NA values appear in red. When I print the table on a xaringan slide the table is black and white and the NA_character_ values display as . Is there a way to get the output on a xaringan…
itsMeInMiami
  • 2,324
  • 1
  • 13
  • 34
5
votes
0 answers

Including LaTeX packages in xaringan presentation?

I'm trying to use the bm package in a xaringan presentation, but for the life of me can't figure it out. I've tried using the header-includes option in the YAML to no avail. Is there something very obvious I'm missing? I couldn't find anything on…
Yue-Jiang
  • 51
  • 1
5
votes
2 answers

Rmarkdown in two columns with .pull-left[] does not work twice

Using Rmarkdown to make slides with xaringan. I want text explaining the code on the left column and the code itself on the right. On each slide, the first time I try it, it works; but the second time it gets clunky: the right column starts after…
Ramon
  • 133
  • 1
  • 5
1
2
3
14 15