-
Added a function
decktape()
to export slides to PDF via the DeckTape library (thanks, @pat-s, #177). -
Added a CSS theme
uol
(University of Leicester) (thanks, @ellessenne, #183).
-
Added output highlighting using the chunk option
highlight.output
(thanks, @malcolmbarrett, #175). -
Added a CSS theme
chocolate
. See here for an example slide (thanks, @liao961120, #171). -
Added a set of CSS theme
kunoichi
,shinobi
andninjutsu
- see here for example (thanks, @emitanaka, #165). -
Added a CSS theme
lucy
(thanks, @LucyMcGowan, #163).
-
Added a CSS theme
middlebury
(Middlebury College) (thanks, @jvcasillas, #150). -
Added a CSS theme
tamu
(Texas A&M) (thanks, @nanhung, #115). -
Added a CSS theme
rutgers
(Rutgers University) (#121). -
Added a CSS theme
uo
(University of Oregon) (#125). -
Added a CSS theme
robot
(inspired by the Roboto Google font) (#126). -
Added a CSS theme
duke-blue
and correspondinghygge-duke
(Duke University) (thanks, @libjohn, #133). -
In the
metropolis
theme, updated weights and margins of all headers, and added a new CSS classclear
that disables the colored box at the top of each slide (#107). -
It is possible to customize the CSS classes of the title slide using the option
titleSlideClass
under thenature
option ofxaringan::moon_reader()
now (thanks, @gadenbuie, #139, #136).
-
An informative error message is now returned when trying to use an invalid or misspelled CSS theme name (thanks, @gadenbuie, #129).
-
LaTeX math expressions will no longer be rendered inside the
<code></code>
tags (thanks, @garthtarr, #137). -
The default CSS style for tables should not be applied to the help page of the slides (thanks, @KevCaz, #138).
- Added CSS
hygge
- some template-independent CSS code for general formatting. Add as argument toxaringan::moon_reader
(thanks, @ekstroem, #113).
-
The default CSS file was split into two files default.css and default-fonts.css to make it easier to define custom font styles without copying all base CSS definitions. For example, the
css
argument ofxaringan::moon_reader
can take a vector ofdefault
andextra.css
, and you define your custom font styles inextra.css
. -
For the
css
argument, if a value does not end with.css
, it is assumed to be a built-in CSS file in this package. Currently all available CSS files can be found at https://github.com/yihui/xaringan/tree/master/inst/rmarkdown/templates/xaringan/resources. See?xaringan::moon_reader
for more details. This change was to make it easier for users to contribute custom themes (https://yihui.name/en/2017/10/xaringan-themes/). -
Added a new sub-option
beforeInit
under thenature
option, which can be used to specify JavaScript files to be executed before the instantiation of slides (i.e., beforeremark.create()
). One application of this new feature is to define custom remark.js macros; see the slide "Macros" at https://slides.yihui.name/xaringan/ for more info (thanks, @gavinsimpson, #80). -
Line highlighting can also be turned on using a special comment
#<<
at the end of a line of code now (thanks, @gadenbuie, #103).
- The PDF printed from the slides in browser looks much nicer now (no extra margins) (thanks, @cboettig and @ekstroem, #65).
-
Line highlighting using
{{}}
does not work with multiple lines (thanks, @HeidiSeibold #53 and @aj2duncan #54). -
The option
mathjax: null
does not work formoon_reader()
, i.e., it was not possible to exclude MathJax.
- A new option
countdown
in thenature
option ofmoon_reader()
can be set so that a countdown timer is added to each page of slides. See?xaringan::moon_reader
and https://slides.yihui.name/xaringan/ for more information (thanks, @slopp, #43).
-
A class
title-slide
was added to the automatically generated title slide (moon_reader(seal = TRUE)
) so that you can customize the this slide using CSS (thanks, @ekstroem, #7). -
Added an argument
cast_from
toinfinite_moon_reader()
to specify the root directory of the server. Previously the root directory is the directory of the Rmd input file, which makes it impossible for the Rmd document to use resources in upper-level directories (e.g.![](../gif/cute-kittens.gif)
). Now you can set the working directory to the upper-level directory and callinf_mr('relative/path/to/input.Rmd')
, so thatinput.Rmd
can use any files under the current working directory./
(thanks, @pat-s, #29). -
Added a Wiki on Github thanks to @pat-s for those who are new to CSS: https://github.com/yihui/xaringan/wiki
-
A local copy of MathJax should work with
moon_reader()
(thanks, @bnicenboim, #13). -
Skip fenced code blocks when detecting LaTeX math expressions, e.g.
$api$
in R codesession$api$plot <- ...
should not be treated as a math expression (thanks, @jcheng5). -
Unicode characters can be rendered correctly on Windows now (thanks, @Lchiffon, #20).
- Initial CRAN release. See the documentation at https://slides.yihui.name/xaringan/