Questions tagged [xaringan]
An R package to create HTML5 slides based on R Markdown and the JavaScript library remark.js.
115
questions
14
votes
1answer
2k views
How can I modifiy the positions of the text and logo on RMarkdown title slide
Because of the picture I have at the bottom of my title slide, I want to:
move all title, subtitle and author up from their center positions.
remove the Rlogo in the title slide only (don't ...
11
votes
2answers
585 views
xaringan slide separator not separating slides
In this example xaringan presentation, why are both the ## blank page and the leaflet map on the same slide, given I've separated them by the new-slide separator --- ?
---
title: "map test"
output:
...
8
votes
2answers
2k views
Incremental slides do not work with a two-column layout
I am using the xaringan package for r for a presentation:
https://cran.r-project.org/web/packages/xaringan/index.html
which builds upon the remark.js library.
I would like to use a two column ...
8
votes
1answer
683 views
xaringan: Changing code background for specific chunks
In this feature request back in 2016 Yihui shows, at the bottom, how to have different code chunks have different backgrounds in R Markdown. I've attached a screenshot of this here. Is there a way to ...
8
votes
1answer
1k views
Automatically reloading shiny app when add changes
I would like to have an option (when working locally) which allows me to see changes in my shiny app automatically after I put some changes in server.R or ui.R file. It is really annoying to manually ...
8
votes
1answer
626 views
Programmatically generate slides in R with xaringan and plotly
I recently started using xaringan and it's really neat. Thanks Yihui for the great package. One question I was wondering, is it possible to programmatically generate slides, each containing a plotly ...
6
votes
1answer
2k views
Customize font size for all the slides in xaringan
I'm using Yihui's awesome package xaringan to build html slides, and this might be a very simple question for those who are familiar with xaringan or css:
I can't figure out how to set the font size ...
6
votes
2answers
274 views
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 ...
5
votes
1answer
552 views
xaringan: Easy way to change aspect ratio?
I would like to change the aspect ratio of a xaringan presentation to 16:9. I guess it would be possible if I would create a custom css theme. However, this would be somewhat of an overkill for me.
...
5
votes
1answer
322 views
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` |...
5
votes
1answer
1k views
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;...
4
votes
1answer
537 views
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.
---
...
4
votes
1answer
141 views
Is there a shortcut to increment a Xaringan slide directly in the code?
I just discovered the awesome Xaringan package, and I'd like my presentation to be as incremental as possible.
For instance, my introduction slide looks like this:
```{r intro1, echo=TRUE}
version$...
4
votes
1answer
180 views
How to get a portable Xarginan presentation as you can do with ioslides?
I am pretty new to Rmarkdown presentations. I liked ioslides but it was quite a fixed theme, and Xarignan seemed more easily configurable (the visual aspect).
With ioslides, you get an html file with ...
3
votes
2answers
196 views
xaringan: add custom Latex file with macros
Is it possible to import a Latex macro file, for instance
\newcommand{\Xcal}{\mathcal{X}
so that I can then use it between $...$ as $\Xcal$?