<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"/><title>Text.Pandoc.Util.Filter.Cols</title><linkhref="ocean.css"rel="stylesheet"type="text/css"title="Ocean"/><scriptsrc="haddock-util.js"type="text/javascript"></script><scriptsrc="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"type="text/javascript"></script><scripttype="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Text-Pandoc-Util-Filter-Cols.html");};
//]]>
</script></head><body><divid="package-header"><ulclass="links"id="page-menu"><li><ahref="src/Text.Pandoc.Util.Filter.Cols.html">Source</a></li><li><ahref="index.html">Contents</a></li><li><ahref="doc-index.html">Index</a></li></ul><pclass="caption">pandoc-slide-filter-0.1.0.0</p></div><divid="content"><divid="module-header"><tableclass="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><pclass="caption">Text.Pandoc.Util.Filter.Cols</p></div><divid="description"><pclass="caption">Description</p><divclass="doc"><p>Conversion of lvl-x-headings to x-column-layouts in HTML
especially for use in revealjs-slides</p></div></div><divid="synopsis"><pid="control.syn"class="caption expander"onclick="toggleSection('syn')">Synopsis</p><ulid="section.syn"class="hide"onclick="toggleSection('syn')"><liclass="src short"><ahref="#v:cols">cols</a> :: [Block] -> [Block]</li></ul></div><divid="interface"><h1>Documentation</h1><divclass="top"><pclass="src"><aid="v:cols"class="def">cols</a> :: [Block] -> [Block] <ahref="src/Text.Pandoc.Util.Filter.Cols.html#cols"class="link">Source</a><ahref="#v:cols"class="selflink">#</a></p><divclass="doc"><p>This filter makes multi-column-layouts out of lvl-x-headings</p><p>Syntax is</p><pre> ## a b
</pre><p>yielding a 2-column-layout with aspects a:b i.e. 1:1 for 50/50-layout
or 8:2 for 80/20 layout</p><p>currently works for 2 and 3-columns, but extension is straight-forward.</p><p>If you need multiple Block-Elements inside one column, just wrap them
with a <code><div></code>:</p><pre> ## 2 5
<div>
multiple things
```
foo
```
<imgsrc="..."title="image"/>
</div>
second column here with only 1 element.
</pre></div></div></div></div><divid="footer"><p>Produced by <ahref="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>