<htmllang="en"><head><metacharset="UTF-8"/><metaname="viewport"content="width=device-width, initial-scale=1.0"/><title>Chunk options · Weave.jl</title><linkrel="canonical"href="http://weavejl.mpastell.com/stable/chunk_options/"/><linkhref="https://fonts.googleapis.com/css?family=Lato|Roboto+Mono"rel="stylesheet"type="text/css"/><linkhref="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/fontawesome.min.css"rel="stylesheet"type="text/css"/><linkhref="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/solid.min.css"rel="stylesheet"type="text/css"/><linkhref="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/brands.min.css"rel="stylesheet"type="text/css"/><linkhref="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.11.1/katex.min.css"rel="stylesheet"type="text/css"/><script>documenterBaseURL=".."</script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"data-main="../assets/documenter.js"></script><scriptsrc="../siteinfo.js"></script><scriptsrc="../../versions.js"></script><linkclass="docs-theme-link"rel="stylesheet"type="text/css"href="../assets/themes/documenter-dark.css"data-theme-name="documenter-dark"/><linkclass="docs-theme-link"rel="stylesheet"type="text/css"href="../assets/themes/documenter-light.css"data-theme-name="documenter-light"data-theme-primary/><scriptsrc="../assets/themeswap.js"></script></head><body><divid="documenter"><navclass="docs-sidebar"><divclass="docs-package-name"><spanclass="docs-autofit">Weave.jl</span></div><formclass="docs-search"action="../search/"><inputclass="docs-search-query"id="documenter-search-query"name="q"type="text"placeholder="Search docs"/></form><ulclass="docs-menu"><li><aclass="tocitem"href="../">Weave.jl - Scientific Reports Using Julia</a></li><li><aclass="tocitem"href="../getting_started/">Getting started</a></li><li><aclass="tocitem"href="../usage/">Using Weave</a></li><li><aclass="tocitem"href="../publish/">Publishing to HTML and PDF</a></li><li><aclass="tocitem"href="../header/">Header Configuration</a></li><liclass="is-active"><aclass="tocitem"href>Chunk options</a><ulclass="internal"><li><aclass="tocitem"href="#Options-for-code-1"><span>Options for code</span></a></li><li><aclass="tocitem"href="#Options-for-figures-1"><span>Options for figures</span></a></li><li><aclass="tocitem"href="#Set-default-chunk-options-1"><span>Set default chunk options</span></a></li></ul></li><li><aclass="tocitem"href="../notebooks/">Working with Jupyter notebooks</a></li><li><aclass="tocitem"href="../function_index/">Function index</a></li></ul><divclass="docs-version-selector field has-addons"><divclass="control"><spanclass="docs-label button is-static is-size-7">Version</span></div><divclass="docs-selector control is-expanded"><divclass="select is-fullwidth is-size-7"><selectid="documenter-version-selector"></select></div></div></div></nav><divclass="docs-main"><headerclass="docs-navbar"><navclass="breadcrumb"><ulclass="is-hidden-mobile"><liclass="is-active"><ahref>Chunk options</a></li></ul><ulclass="is-hidden-tablet"><liclass="is-active"><ahref>Chunk options</a></li></ul></nav><divclass="docs-right"><aclass="docs-edit-link"href="https://github.com/JunoLab/Weave.jl/blob/master/doc/src/chunk_options.md"title="Edit on GitHub"><spanclass="docs-icon fab"></span><spanclass="docs-label is-hidden-touch">Edit on GitHub</span></a><aclass="docs-settings-button fas fa-cog"id="documenter-settings-button"href="#"title="Settings"></a><aclass="docs-sidebar-button fa fa-bars is-hidden-desktop"id="documenter-sidebar-button"href="#"></a></div></header><articleclass="content"id="documenter-page"><h1id="Chunk-options-1"><aclass="docs-heading-anchor"href="#Chunk-options-1">Chunk options</a><aclass="docs-heading-anchor-permalink"href="#Chunk-options-1"title="Permalink"></a></h1><p>I've mostly followed <ahref="http://yihui.name/knitr/options">Knitr</a>'s naming for chunk options, but not all options are implemented.</p><p>
---</code></pre><p>You can also set or change the default chunk options for a document either before weave using the <code>set_chunk_defaults</code> function.</p><divclass="admonition is-warning"><headerclass="admonition-header">Missing docstring.</header><divclass="admonition-body"><p>Missing docstring for <code>set_chunk_defaults</code>. Check Documenter's build log for details.</p></div></div><articleclass="docstring"><header><aclass="docstring-binding"id="Weave.get_chunk_defaults"href="#Weave.get_chunk_defaults"><code>Weave.get_chunk_defaults</code></a> — <spanclass="docstring-category">Function</span></header><section><div><pre><codeclass="language-julia">get_chunk_defaults()</code></pre><p>Get default options used for code chunks.</p></div><aclass="docs-sourcelink"target="_blank"href="https://github.com/JunoLab/Weave.jl/blob/b55131ce02d077af33315af793645e1dda768ac4/src/config.jl#L52-L56">source</a></section></article><divclass="admonition is-warning"><headerclass="admonition-header">Missing docstring.</header><divclass="admonition-body"><p>Missing docstring for <code>restore_chunk_defaults</code>. Check Documenter's build log for details.</p></div></div></article><navclass="docs-footer"><aclass="docs-footer-prevpage"href="../header/">« Header Configuration</a><aclass="docs-footer-nextpage"href="../notebooks/">Working with Jupyter notebooks »</a></nav></div><divclass="modal"id="documenter-settings"><divclass="modal-background"></div><divclass="modal-card"><headerclass="modal-card-head"><pclass="modal-card-title">Settings</p><buttonclass="delete"></button></header><sectionclass="modal-card-body"><p><labelclass="label">Theme</label><divclass="select"><selectid="documenter-themepicker"><optionvalue="documenter-light">documenter-light</option><optionvalue="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <ahref="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> on <spanclass="colophon-date"title="Saturday 16 May 2020 13:08">Saturday 16 May 2020</span>. Using Julia version 1.4.1.</p></section><footerclass="modal-card-foot"></footer></div></div></div></body></html>