{"route":"/en-US-v0.14.1/reference/math/styles/","title":"Styles","description":"Documentation for the styles functions.","part":null,"outline":[{"id":"summary","name":"Summary","children":[]},{"id":"functions","name":"Functions","children":[{"id":"functions-upright","name":"Upright","children":[{"id":"functions-upright-body","name":"body","children":[]}]},{"id":"functions-italic","name":"Italic","children":[{"id":"functions-italic-body","name":"body","children":[]}]},{"id":"functions-bold","name":"Bold","children":[{"id":"functions-bold-body","name":"body","children":[]}]}]}],"body":{"kind":"group","content":{"name":"styles","title":"Styles","details":"<p>Alternate letterforms within formulas.</p>\n<p>These functions are distinct from the <a href=\"/en-US-v0.14.1/reference/text/text/\" title=\"`text`\"><code>text</code></a> function because math fonts\ncontain multiple variants of each letter.</p>","functions":[{"path":["math"],"name":"upright","title":"Upright","keywords":["mathup"],"oneliner":"Upright (non-italic) font style in math.","element":false,"contextual":false,"deprecationMessage":null,"deprecationUntil":null,"details":[{"kind":"html","content":"<p>Upright (non-italic) font style in math.</p>"},{"kind":"example","content":{"body":"<div class=\"previewed-code\"><pre><code><span class=\"typ-math-delim\">$</span> <span class=\"typ-func\">upright</span><span class=\"typ-punct\">(</span>A<span class=\"typ-punct\">)</span> <span class=\"typ-escape\">!=</span> A <span class=\"typ-math-delim\">$</span>\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.14.1/assets/2375f3944b651050f90b0f7ab2b4b59e.png\" alt=\"Preview\"></div></div>","title":null}}],"self":false,"params":[{"name":"body","details":[{"kind":"html","content":"<p>The content to style.</p>"}],"types":["content"],"strings":[],"default":null,"positional":true,"named":false,"required":true,"variadic":false,"settable":false}],"returns":["content"],"scope":[]},{"path":["math"],"name":"italic","title":"Italic","keywords":["mathit"],"oneliner":"Italic font style in math.","element":false,"contextual":false,"deprecationMessage":null,"deprecationUntil":null,"details":[{"kind":"html","content":"<p>Italic font style in math.</p>\n<p>For roman letters and greek lowercase letters, this is already the default.</p>"}],"self":false,"params":[{"name":"body","details":[{"kind":"html","content":"<p>The content to style.</p>"}],"types":["content"],"strings":[],"default":null,"positional":true,"named":false,"required":true,"variadic":false,"settable":false}],"returns":["content"],"scope":[]},{"path":["math"],"name":"bold","title":"Bold","keywords":["mathbf"],"oneliner":"Bold font style in math.","element":false,"contextual":false,"deprecationMessage":null,"deprecationUntil":null,"details":[{"kind":"html","content":"<p>Bold font style in math.</p>"},{"kind":"example","content":{"body":"<div class=\"previewed-code\"><pre><code><span class=\"typ-math-delim\">$</span> <span class=\"typ-func\">bold</span><span class=\"typ-punct\">(</span>A<span class=\"typ-punct\">)</span> <span class=\"typ-escape\">:=</span> B<span class=\"typ-math-op\">^</span>+ <span class=\"typ-math-delim\">$</span>\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.14.1/assets/f3ef64e42845d8f3b5dffc758a93e400.png\" alt=\"Preview\"></div></div>","title":null}}],"self":false,"params":[{"name":"body","details":[{"kind":"html","content":"<p>The content to style.</p>"}],"types":["content"],"strings":[],"default":null,"positional":true,"named":false,"required":true,"variadic":false,"settable":false}],"returns":["content"],"scope":[]}],"global_attributes":[]}}}