{"route":"/en-US-v0.13.1/reference/text/super/","title":"Superscript","description":"Documentation for the `super` function.","part":null,"outline":[{"id":"summary","name":"Summary","children":[]},{"id":"example","name":"Example","children":[]},{"id":"parameters","name":"Parameters","children":[{"id":"parameters-typographic","name":"typographic","children":[]},{"id":"parameters-baseline","name":"baseline","children":[]},{"id":"parameters-size","name":"size","children":[]},{"id":"parameters-body","name":"body","children":[]}]}],"body":{"kind":"func","content":{"path":[],"name":"super","title":"Superscript","keywords":[],"oneliner":"Renders text in superscript.","element":true,"contextual":false,"deprecation":null,"details":"<p>Renders text in superscript.</p>\n<p>The text is rendered smaller and its baseline is raised.</p>\n<h2 id=\"example\">Example</h2>\n<div class=\"previewed-code\"><pre><code>1<span class=\"typ-func\">#</span><span class=\"typ-func\">super</span><span class=\"typ-punct\">[</span>st<span class=\"typ-punct\">]</span> try!\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/d39db3c0aae4bd51ed655cd6eb958575.png\" alt=\"Preview\"></div></div>","example":null,"self":false,"params":[{"name":"typographic","details":"<p>Whether to prefer the dedicated superscript characters of the font.</p>\n<p>If this is enabled, Typst first tries to transform the text to\nsuperscript codepoints. If that fails, it falls back to rendering\nraised and shrunk normal letters.</p>","example":"<div class=\"previewed-code\"><pre><code>N<span class=\"typ-func\">#</span><span class=\"typ-func\">super</span><span class=\"typ-punct\">(</span>typographic<span class=\"typ-punct\">:</span> <span class=\"typ-key\">true</span><span class=\"typ-punct\">)</span><span class=\"typ-punct\">[</span>1<span class=\"typ-punct\">]</span>\nN<span class=\"typ-func\">#</span><span class=\"typ-func\">super</span><span class=\"typ-punct\">(</span>typographic<span class=\"typ-punct\">:</span> <span class=\"typ-key\">false</span><span class=\"typ-punct\">)</span><span class=\"typ-punct\">[</span>1<span class=\"typ-punct\">]</span>\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/d7fcca4246d939b0d654b4f893ed8b29.png\" alt=\"Preview\"></div></div>","types":["bool"],"strings":[],"default":"<code><span class=\"typ-key\">true</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"baseline","details":"<p>The baseline shift for synthetic superscripts. Does not apply if\n<code>typographic</code> is true and the font has superscript codepoints for the\ngiven <code>body</code>.</p>","example":null,"types":["length"],"strings":[],"default":"<code><span class=\"typ-op\">-</span><span class=\"typ-num\">0.5em</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"size","details":"<p>The font size for synthetic superscripts. Does not apply if\n<code>typographic</code> is true and the font has superscript codepoints for the\ngiven <code>body</code>.</p>","example":null,"types":["length"],"strings":[],"default":"<code><span class=\"typ-num\">0.6em</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"body","details":"<p>The text to display in superscript.</p>","example":null,"types":["content"],"strings":[],"default":null,"positional":true,"named":false,"required":true,"variadic":false,"settable":false}],"returns":["content"],"scope":[]}}}