ader-section-number">Chapter 32</span> Macros (continued)</h1>
<ul>
<li><p>To insert macros in <strong>xaringan</strong> slides, you can use the option <code>beforeInit</code> under the option <code>nature</code>, e.g.,</p>
<div class="sourceCode"><pre class="sourceCode yaml"><code class="sourceCode yaml"><span class="fu">output:</span>
  <span class="fu">xaringan:</span>:moon_reader:
    <span class="fu">nature:</span>
      <span class="fu">beforeInit:</span> <span class="st">&quot;macros.js&quot;</span><