😎 Give your xaringan slides some style
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

219 lines
12KB

  1. <!-- Generated by pkgdown: do not edit by hand -->
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <title>Changelog • xaringanthemer</title>
  9. <!-- favicons -->
  10. <link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
  11. <link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png">
  12. <link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png" />
  13. <link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png" />
  14. <link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png" />
  15. <link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png" />
  16. <!-- jquery -->
  17. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
  18. <!-- Bootstrap -->
  19. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous" />
  20. <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script>
  21. <!-- bootstrap-toc -->
  22. <link rel="stylesheet" href="../bootstrap-toc.css">
  23. <script src="../bootstrap-toc.js"></script>
  24. <!-- Font Awesome icons -->
  25. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous" />
  26. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous" />
  27. <!-- clipboard.js -->
  28. <script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script>
  29. <!-- headroom.js -->
  30. <script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script>
  31. <script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>
  32. <!-- pkgdown -->
  33. <link href="../pkgdown.css" rel="stylesheet">
  34. <script src="../pkgdown.js"></script>
  35. <link href="../extra.css" rel="stylesheet">
  36. <meta property="og:title" content="Changelog" />
  37. <meta property="og:image" content="https://pkg.garrickadenbuie.com/xaringanthemer/logo.png" />
  38. <meta name="twitter:card" content="summary" />
  39. <meta name="twitter:creator" content="@grrrck" />
  40. <meta name="twitter:site" content="@grrrck" />
  41. <!-- mathjax -->
  42. <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script>
  43. <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script>
  44. <!--[if lt IE 9]>
  45. <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  46. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  47. <![endif]-->
  48. </head>
  49. <body data-spy="scroll" data-target="#toc">
  50. <div class="container template-news">
  51. <header>
  52. <div class="navbar navbar-default navbar-fixed-top" role="navigation">
  53. <div class="container">
  54. <div class="navbar-header">
  55. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
  56. <span class="sr-only">Toggle navigation</span>
  57. <span class="icon-bar"></span>
  58. <span class="icon-bar"></span>
  59. <span class="icon-bar"></span>
  60. </button>
  61. <span class="navbar-brand">
  62. <a class="navbar-link" href="../index.html">xaringanthemer</a>
  63. <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.2.0.9100</span>
  64. </span>
  65. </div>
  66. <div id="navbar" class="navbar-collapse collapse">
  67. <ul class="nav navbar-nav">
  68. <li>
  69. <a href="../articles/xaringanthemer.html">Features</a>
  70. </li>
  71. <li>
  72. <a href="../reference/index.html">Reference</a>
  73. </li>
  74. <li>
  75. <a href="../articles/themes.html">Themes</a>
  76. </li>
  77. <li>
  78. <a href="../articles/ggplot2-themes.html">ggplot2 Themes</a>
  79. </li>
  80. <li class="dropdown">
  81. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
  82. More
  83. <span class="caret"></span>
  84. </a>
  85. <ul class="dropdown-menu" role="menu">
  86. <li>
  87. <a href="../articles/fonts.html">Fonts</a>
  88. </li>
  89. <li>
  90. <a href="../articles/template-variables.html">Template Variables</a>
  91. </li>
  92. </ul>
  93. </li>
  94. </ul>
  95. <ul class="nav navbar-nav navbar-right">
  96. <li>
  97. <a href="../news/index.html">
  98. <span class="fa fa fa fa-newspaper-o fa-lg"></span>
  99. </a>
  100. </li>
  101. <li>
  102. <a href="https://github.com/gadenbuie/xaringanthemer">
  103. <span class="fa fa-github fa-lg"></span>
  104. </a>
  105. </li>
  106. <li>
  107. <a href="https://twitter.com/grrrck">
  108. <span class="fa fa-twitter fa-lg"></span>
  109. </a>
  110. </li>
  111. <li>
  112. <a href="https://www.garrickadenbuie.com">
  113. <span class="fa fa-home fa-lg"></span>
  114. </a>
  115. </li>
  116. </ul>
  117. </div><!--/.nav-collapse -->
  118. </div><!--/.container -->
  119. </div><!--/.navbar -->
  120. </header>
  121. <div class="row">
  122. <div class="col-md-9 contents">
  123. <div class="page-header">
  124. <h1 data-toc-skip>Changelog <small></small></h1>
  125. <small>Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/NEWS.md'><code>NEWS.md</code></a></small>
  126. </div>
  127. <div id="xaringanthemer-030-dev" class="section level1">
  128. <h1 class="page-header" data-toc-text="0.3.0">
  129. <a href="#xaringanthemer-030-dev" class="anchor"></a>xaringanthemer 0.3.0 (dev)</h1>
  130. <ul>
  131. <li><p>Adds <code><a href="../reference/theme_xaringan.html">theme_xaringan()</a></code>, a ggplot2 theme that automatically uses the colors and font styles of your xaringanthemer style. Also adds <code><a href="../reference/scale_xaringan.html">scale_xaringan_discrete()</a></code> and <code><a href="../reference/scale_xaringan.html">scale_xaringan_continuous()</a></code> functions that use your slides’ primary colors for the color or fill aesthetics. These theme functions can recover the primary colors used in a xaringanthemer (&gt;= 0.3.0) CSS file even if you don’t call the style function directly in your slides.</p></li>
  132. <li><p>Renamed all xaringanthemer functions that create CSS styles to use the prefix “<code>style_</code>”. For example, <code><a href="../reference/xaringanthemer-deprecated.html">mono_light()</a></code> is now <code><a href="../reference/style_mono_light.html">style_mono_light()</a></code>. Additionally, <code><a href="../reference/xaringanthemer-deprecated.html">write_xaringan_theme()</a></code> is now <code><a href="../reference/style_xaringan.html">style_xaringan()</a></code> and <code><a href="../reference/xaringanthemer-deprecated.html">write_extra_css()</a></code> is <code><a href="../reference/style_extra_css.html">style_extra_css()</a></code>. Overall, this change makes the xarignanthemer API much cleaner and easier to navigate. Previous function names are deprecated but still work.</p></li>
  133. <li><p>Added <code>background_header_auto</code> parameter that adds a background under the first <code>h1</code> element (i.e. <code># Slide Title</code>) on a slide. When enabled, the background is added automatically to slides, as long as they aren’t <code>inverse</code>, <code>center</code>, <code>middle</code>, or <code>bottom</code>-styled slides. When disabled, you can still enable slide title headers by adding the <code>header_background</code> class to a slide. (thanks, <a href='https://github.com/Btibert3'>@Btibert3</a>, <a href='https://github.com/gadenbuie/xaringanthemer/issues/10'>#10</a>)</p></li>
  134. <li><p>The underlying template now uses the <code>whisker</code> package.</p></li>
  135. <li><p>xaringanthemer styles now use CSS variables throughout. Most of the settings used in defining a style are stored in CSS variables. The variable names are documented in their corresponding arguments. For example, the color selected for <code>background_color</code> is stored in the variable <code>--background-color</code>. These variables can be used in custom CSS rules or in other arguments in any style functions, for example as <code><a href="https://rdrr.io/r/stats/cor.html">var(--background-color)</a></code>.</p></li>
  136. <li><p>xaringanthemer now uses a different set of default fonts for heading and body fonts. The new defaults use <a href="https://fonts.google.com/specimen/Cabin">Cabin</a> for headings and <a href="https://fonts.google.com/specimen/Noto+Sans">Noto Sans</a> for body text. These fonts are easier to read on screens and at a distance during presentations, and they support a wide variety of languages and weights. Another reason for the change is that the xaringan (remarkjs) default body font, <em>Droid Serif</em>, is no longer officially included in Google Fonts.</p></li>
  137. <li><p>Additional colors can be provided in the <code>colors</code> argument, which takes a named vector of colors. The names become both CSS classes and CSS variables that can be used throughout your slide styles. For example, <code>colors = c(red = "#d34213")</code> creates a <code>.red</code> CSS class for red foreground text, a <code>.bg-red</code> CSS class for a red background, and a <code>--red</code> CSS variable that can be referenced as <code><a href="https://rdrr.io/r/stats/cor.html">var(--red)</a></code> in any <code>_color</code> argument of your style function.</p></li>
  138. </ul>
  139. <div id="bugfixes-and-improvements" class="section level2">
  140. <h2 class="hasAnchor">
  141. <a href="#bugfixes-and-improvements" class="anchor"></a>Bugfixes and Improvements</h2>
  142. <ul>
  143. <li><p>Better handling of multiple <code>extra_fonts</code>, including improved error messages. (Thanks <a href='https://github.com/pat-s'>@pat-s</a>, <a href='https://github.com/gadenbuie/xaringanthemer/issues/19'>#19</a>).</p></li>
  144. <li><p><code><a href="../reference/style_extra_css.html">style_extra_css()</a></code> (previously <code><a href="../reference/xaringanthemer-deprecated.html">write_extra_css()</a></code>) gained an <code>append</code> argument so that it can append to or overwrite an existing file (thanks <a href='https://github.com/pat-s'>@pat-s</a>, <a href='https://github.com/gadenbuie/xaringanthemer/issues/17'>#17</a>).</p></li>
  145. <li><p>The underlying tibble holding the theme template variables was updated to work with <code>tibble 3.0.0</code> (thanks <a href='https://github.com/techisdead'>@techisdead</a>, <a href='https://github.com/SymbolixAU'>@SymbolixAU</a>, <a href='https://github.com/gadenbuie/xaringanthemer/issues/32'>#32</a>).</p></li>
  146. <li><p>The <code>css-help</code> vignette was removed and may be re-written in the future.</p></li>
  147. <li><p>Style function arguments that accept CSS property values are now documented in the argument documentation, including a link to the MDN web docs page for the CSS property or value (<a href='https://github.com/gadenbuie/xaringanthemer/issues/33'>#33</a>, thanks <a href='https://github.com/TrashBirdEcology'>@TrashBirdEcology</a> <a href='https://github.com/gadenbuie/xaringanthemer/issues/18'>#18</a>).</p></li>
  148. <li><p>Style functions return the CSS text directly when <code>outfile = NULL</code>.</p></li>
  149. </ul>
  150. </div>
  151. </div>
  152. </div>
  153. <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
  154. <nav id="toc" data-toggle="toc" class="sticky-top">
  155. <h2 data-toc-skip>Contents</h2>
  156. </nav>
  157. </div>
  158. </div>
  159. <footer>
  160. <div class="copyright">
  161. <p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
  162. </div>
  163. <div class="pkgdown">
  164. <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p>
  165. </div>
  166. </footer>
  167. </div>
  168. </body>
  169. </html>