😎 Give your xaringan slides some style
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

119 lines
18KB

  1. <!DOCTYPE html>
  2. <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Changelog • xaringanthemer</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/IBM_Plex_Mono-0.4.9/font.css" rel="stylesheet"><link href="../deps/Outfit-0.4.9/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.4.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.4.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><meta property="og:title" content="Changelog"><meta property="og:image" content="https://pkg.garrickadenbuie.com/xaringanthemer/logo.png"><meta name="twitter:card" content="summary"><meta name="twitter:creator" content="@grrrck"><meta name="twitter:site" content="@grrrck"><meta name="robots" content="noindex"></head><body>
  3. <a href="#main" class="visually-hidden-focusable">Skip to contents</a>
  4. <nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
  5. <a class="navbar-brand me-2" href="../index.html">xaringanthemer</a>
  6. <small class="nav-text text-danger me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="In-development version">0.4.2.9000</small>
  7. <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
  8. <span class="navbar-toggler-icon"></span>
  9. </button>
  10. <div id="navbar" class="collapse navbar-collapse ms-3">
  11. <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/xaringanthemer.html">Features</a></li>
  12. <li class="nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
  13. <li class="nav-item dropdown">
  14. <button class="nav-link dropdown-toggle" type="button" id="dropdown-themes" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Themes</button>
  15. <ul class="dropdown-menu" aria-labelledby="dropdown-themes"><li><h6 class="dropdown-header" data-toc-skip>Themes</h6></li>
  16. <li><a class="dropdown-item" href="../articles/themes.html">Slide Themes</a></li>
  17. <li><a class="dropdown-item" href="../articles/ggplot2-themes.html">ggplot2 Themes</a></li>
  18. <li><hr class="dropdown-divider"></li>
  19. <li><h6 class="dropdown-header" data-toc-skip>More Customization</h6></li>
  20. <li><a class="dropdown-item" href="../articles/fonts.html">Fonts</a></li>
  21. <li><a class="dropdown-item" href="../articles/template-variables.html">Template Variables</a></li>
  22. </ul></li>
  23. </ul><ul class="navbar-nav"><li class="active nav-item dropdown">
  24. <button class="nav-link dropdown-toggle" type="button" id="dropdown-" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true"><span class="fa far fa-newspaper fa-lg"></span> </button>
  25. <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="dropdown-"><li><a class="external-link dropdown-item" href="https://garrickadenbuie.com/blog/xaringanthemer-v0-3-0/">xaringanthemer 0.3.0</a></li>
  26. <li><hr class="dropdown-divider"></li>
  27. <li><a class="dropdown-item" href="../news/index.html">Changelog</a></li>
  28. </ul></li>
  29. <li class="nav-item"><a class="external-link nav-link" href="https://github.com/gadenbuie/xaringanthemer"><span class="fa fab fa-github fa-lg"></span></a></li>
  30. <li class="nav-item"><a class="external-link nav-link" href="https://twitter.com/grrrck"><span class="fa fab fa-twitter fa-lg"></span></a></li>
  31. <li class="nav-item"><a class="external-link nav-link" href="https://www.garrickadenbuie.com"><span class="fa fas fa-home fa-lg"></span></a></li>
  32. </ul></div>
  33. </div>
  34. </nav><div class="container template-news">
  35. <div class="row">
  36. <main id="main" class="col-md-9"><div class="page-header">
  37. <img src="../logo.png" class="logo" alt=""><h1>Changelog</h1>
  38. <small>Source: <a href="https://github.com/gadenbuie/xaringanthemer/blob/main/NEWS.md" class="external-link"><code>NEWS.md</code></a></small>
  39. </div>
  40. <div class="section level2">
  41. <h2 class="pkg-version" data-toc-text="development version" id="xaringanthemer-development-version">xaringanthemer (development version)<a class="anchor" aria-label="anchor" href="#xaringanthemer-development-version"></a></h2>
  42. <ul><li>Update the spelling of <code>colour</code> for compatibility with ggplot2 &gt;= 3.5.1 (<a href="https://github.com/teunbrand" class="external-link">@teunbrand</a> <a href="https://github.com/gadenbuie/xaringanthemer/issues/79" class="external-link">#79</a>).</li>
  43. </ul></div>
  44. <div class="section level2">
  45. <h2 class="pkg-version" data-toc-text="0.4.2" id="xaringanthemer-042">xaringanthemer 0.4.2<a class="anchor" aria-label="anchor" href="#xaringanthemer-042"></a></h2><p class="text-muted">CRAN release: 2022-08-20</p>
  46. <ul><li><p>Use <code>.table-unshaded</code> class on a tables to prevent xaringanthemer’s table heading and row shading (thanks <a href="https://github.com/dragonattheend" class="external-link">@dragonattheend</a>, <a href="https://github.com/gadenbuie/xaringanthemer/issues/74" class="external-link">#74</a>)</p></li>
  47. <li><p>Use <code>inverse_text_color</code> as the default for <code>inverse_header_color</code> in most places (<a href="https://github.com/gadenbuie/xaringanthemer/issues/60" class="external-link">#60</a>)</p></li>
  48. <li><p>Fixed a bug that happened when providing named values for key theme colors (<a href="https://github.com/gadenbuie/xaringanthemer/issues/62" class="external-link">#62</a>)</p></li>
  49. <li><p>Re-document for CRAN</p></li>
  50. </ul></div>
  51. <div class="section level2">
  52. <h2 class="pkg-version" data-toc-text="0.4.1" id="xaringanthemer-041">xaringanthemer 0.4.1<a class="anchor" aria-label="anchor" href="#xaringanthemer-041"></a></h2><p class="text-muted">CRAN release: 2021-11-21</p>
  53. <ul><li><p>Text alignment in code blocks in <code>left</code>, <code>center</code>, or <code>right</code> aligned slides no longer matches the slide text. Instead, the code block width is reduced, if possible, and the block is pushed to the left, center, or right using margins (<a href="https://github.com/gadenbuie/xaringanthemer/issues/68" class="external-link">#68</a>).</p></li>
  54. <li><p>The style functions are now more permissive about color names in the <code>color</code> argument. Color names should be valid CSS classes that can also be used as CSS variable names, but the <code>style_</code> function only stops with an error if the color name contains spaces. (<a href="https://github.com/jdlom" class="external-link">@jdlom</a> <a href="https://github.com/gadenbuie/xaringanthemer/issues/69" class="external-link">#69</a>)</p></li>
  55. <li><p>Fixed an issue that caused problems rendering the xaringanthemer R Markdown template if the showtext package isn’t installed (thanks <a href="https://github.com/beatrizmilz" class="external-link">@beatrizmilz</a>, <a href="https://github.com/gadenbuie/xaringanthemer/issues/65" class="external-link">#65</a>).</p></li>
  56. </ul></div>
  57. <div class="section level2">
  58. <h2 class="pkg-version" data-toc-text="0.4.0" id="xaringanthemer-040">xaringanthemer 0.4.0<a class="anchor" aria-label="anchor" href="#xaringanthemer-040"></a></h2><p class="text-muted">CRAN release: 2021-06-24</p>
  59. <ul><li><p>Added <code>text_bold_font_weight</code> argument to xaringanthemer style functions with a corresponding CSS rule setting the <code>font-weight</code> property of <code>&lt;strong&gt;</code> elements (thanks <a href="https://github.com/matiasandina" class="external-link">@matiasandina</a>, <a href="https://github.com/gadenbuie/xaringanthemer/issues/50" class="external-link">#50</a>).</p></li>
  60. <li><p>The style functions gain a <code>link_decoration</code> argument to set the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration" class="external-link"><code>text-decoration</code></a> property for links (<a href="https://github.com/gadenbuie/xaringanthemer/issues/57" class="external-link">#57</a>).</p></li>
  61. <li><p>Set slide number font size in <code>rem</code> so that increasing the font size at the slide level doesn’t result in giant slide numbers (<a href="https://github.com/gadenbuie/xaringanthemer/issues/53" class="external-link">#53</a>).</p></li>
  62. <li><p>The xaringanthemer slide skeleton (R Markdown template) will now render when packages that are used in the template but not in xaringanthemer’s Imports are not installed (<a href="https://github.com/gadenbuie/xaringanthemer/issues/52" class="external-link">#52</a>).</p></li>
  63. <li><p>xaringanthemer no longer sets the <code>fig.showtext</code> chunk option when the showtext package isn’t installed and also when <code>fig.showtext = FALSE</code> (thanks <a href="https://github.com/mikedecr" class="external-link">@mikedecr</a> <a href="https://github.com/gadenbuie/xaringanthemer/issues/36" class="external-link">#36</a>, <a href="https://github.com/gadenbuie/xaringanthemer/issues/56" class="external-link">#56</a>).</p></li>
  64. </ul></div>
  65. <div class="section level2">
  66. <h2 class="pkg-version" data-toc-text="0.3.3" id="xaringanthemer-033">xaringanthemer 0.3.3<a class="anchor" aria-label="anchor" href="#xaringanthemer-033"></a></h2><p class="text-muted">CRAN release: 2021-03-04</p>
  67. <ul><li><p>Add <code>inverse_link_color</code> to control color of links on inverse slides (thanks <a href="https://github.com/dmi3kno" class="external-link">@dmi3kno</a>, <a href="https://github.com/gadenbuie/xaringanthemer/issues/44" class="external-link">#44</a>)</p></li>
  68. <li><p>.pull-right[] now clears floats just for its immediate sibling</p></li>
  69. <li><p>Add <code>header_font_family_fallback</code> to control fallback fonts for headings (thanks <a href="https://github.com/mattwarkentin" class="external-link">@mattwarkentin</a>, <a href="https://github.com/gadenbuie/xaringanthemer/issues/41" class="external-link">#41</a>)</p></li>
  70. <li><p>New xaringanthemer presentation skeleton with a kitchen sink of typical slide elements with the goal of making it easier to preview new themes during development.</p></li>
  71. </ul></div>
  72. <div class="section level2">
  73. <h2 class="pkg-version" data-toc-text="0.3.0" id="xaringanthemer-030">xaringanthemer 0.3.0<a class="anchor" aria-label="anchor" href="#xaringanthemer-030"></a></h2><p class="text-muted">CRAN release: 2020-05-04</p>
  74. <ul><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>
  75. <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>
  76. <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" class="external-link">@Btibert3</a>, <a href="https://github.com/gadenbuie/xaringanthemer/issues/10" class="external-link">#10</a>)</p></li>
  77. <li><p>The underlying template now uses the <code>whisker</code> package.</p></li>
  78. <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>var(--background-color)</code>.</p></li>
  79. <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" class="external-link">Cabin</a> for headings and <a href="https://fonts.google.com/specimen/Noto+Sans" class="external-link">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>
  80. <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>var(--red)</code> in any <code>_color</code> argument of your style function.</p></li>
  81. </ul><div class="section level3">
  82. <h3 id="bugfixes-and-improvements-0-3-0">Bugfixes and Improvements<a class="anchor" aria-label="anchor" href="#bugfixes-and-improvements-0-3-0"></a></h3>
  83. <ul><li><p>Better handling of multiple <code>extra_fonts</code>, including improved error messages. (Thanks <a href="https://github.com/pat-s" class="external-link">@pat-s</a>, <a href="https://github.com/gadenbuie/xaringanthemer/issues/19" class="external-link">#19</a>).</p></li>
  84. <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" class="external-link">@pat-s</a>, <a href="https://github.com/gadenbuie/xaringanthemer/issues/17" class="external-link">#17</a>).</p></li>
  85. <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" class="external-link">@techisdead</a>, <a href="https://github.com/SymbolixAU" class="external-link">@SymbolixAU</a>, <a href="https://github.com/gadenbuie/xaringanthemer/issues/32" class="external-link">#32</a>).</p></li>
  86. <li><p>The <code>css-help</code> vignette was removed and may be re-written in the future.</p></li>
  87. <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" class="external-link">#33</a>, thanks <a href="https://github.com/TrashBirdEcology" class="external-link">@TrashBirdEcology</a> <a href="https://github.com/gadenbuie/xaringanthemer/issues/18" class="external-link">#18</a>).</p></li>
  88. <li><p>Style functions return the CSS text directly when <code>outfile = NULL</code>.</p></li>
  89. </ul></div>
  90. </div>
  91. </main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
  92. </nav></aside></div>
  93. <footer><div class="pkgdown-footer-left">
  94. <p>Developed by <a href="https://www.garrickadenbuie.com" class="external-link">Garrick Aden-Buie</a>.</p>
  95. </div>
  96. <div class="pkgdown-footer-right">
  97. <p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.0.</p>
  98. </div>
  99. </footer></div>
  100. <script src="../doc-versions.js"></script></body></html>