{"route":"/en-US-v0.13.1/changelog/0.5.0/","title":"0.5.0","description":"Changes in Typst 0.5.0","part":null,"outline":[{"id":"text-and-layout","name":"Text and Layout","children":[]},{"id":"math","name":"Math","children":[]},{"id":"scripting","name":"Scripting","children":[]},{"id":"command-line-interface","name":"Command line interface","children":[]},{"id":"miscellaneous-improvements","name":"Miscellaneous Improvements","children":[]},{"id":"contributors","name":"Contributors","children":[]}],"body":{"kind":"html","content":"<h1>Version 0.5.0 (June 9, 2023)</h1>\n<h2 id=\"text-and-layout\">Text and Layout</h2>\n<ul>\n<li>Added <a href=\"/en-US-v0.13.1/reference/text/raw/\" title=\"`raw`\"><code>raw</code></a> syntax highlighting for many more languages</li>\n<li>Added support for Korean <a href=\"/en-US-v0.13.1/reference/model/numbering/\" title=\"numbering\">numbering</a></li>\n<li>Added basic i18n for a few more languages (NL, SV, DA)</li>\n<li>Improved line breaking for East Asian languages</li>\n<li>Expanded functionality of outline <a href=\"/en-US-v0.13.1/reference/model/outline/#parameters-indent\"><code>indent</code></a> property</li>\n<li>Fixed footnotes in columns</li>\n<li>Fixed page breaking bugs with <a href=\"/en-US-v0.13.1/reference/model/footnote/\">footnotes</a></li>\n<li>Fixed bug with handling of footnotes in lists, tables, and figures</li>\n<li>Fixed a bug with CJK punctuation adjustment</li>\n<li>Fixed a crash with rounded rectangles</li>\n<li>Fixed alignment of <a href=\"/en-US-v0.13.1/reference/visualize/line/\" title=\"`line`\"><code>line</code></a> elements</li>\n</ul>\n<h2 id=\"math\">Math</h2>\n<ul>\n<li><strong>Breaking change:</strong> The syntax rules for mathematical\n<a href=\"/en-US-v0.13.1/reference/math/attach/#functions-attach\">attachments</a> were improved: <code><span class=\"typ-math-delim\">$</span>f<span class=\"typ-math-op\">^</span><span class=\"typ-func\">abs</span><span class=\"typ-punct\">(</span>3<span class=\"typ-punct\">)</span><span class=\"typ-math-delim\">$</span></code> now parses as\n<code><span class=\"typ-math-delim\">$</span>f<span class=\"typ-math-op\">^</span><span class=\"typ-punct\">(</span><span class=\"typ-func\">abs</span><span class=\"typ-punct\">(</span>3<span class=\"typ-punct\">)</span><span class=\"typ-punct\">)</span><span class=\"typ-math-delim\">$</span></code> instead of <code><span class=\"typ-math-delim\">$</span>(f<span class=\"typ-math-op\">^</span><span class=\"typ-pol\">abs</span>)(3)<span class=\"typ-math-delim\">$</span></code>. To disambiguate, add a space:\n<code><span class=\"typ-math-delim\">$</span>f<span class=\"typ-math-op\">^</span><span class=\"typ-pol\">zeta</span> (3)<span class=\"typ-math-delim\">$</span></code>.</li>\n<li>Added <a href=\"/en-US-v0.13.1/reference/math/sizes/\">forced size</a> commands for math (e.g.,\n<a href=\"/en-US-v0.13.1/reference/math/sizes/#functions-display\"><code>display</code></a>)</li>\n<li>Added <a href=\"/en-US-v0.13.1/reference/math/equation/#parameters-supplement\"><code>supplement</code></a> parameter to\n<a href=\"/en-US-v0.13.1/reference/math/equation/\"><code>equation</code></a>, used by <a href=\"/en-US-v0.13.1/reference/model/ref/\">references</a></li>\n<li>New <a href=\"/en-US-v0.13.1/reference/symbols/sym/\">symbols</a>: <code>bullet</code>, <code>xor</code>, <code>slash.big</code>,\n<code>sigma.alt</code>, <code>tack.r.not</code>, <code>tack.r.short</code>, <code>tack.r.double.not</code></li>\n<li>Fixed a bug with symbols in matrices</li>\n<li>Fixed a crash in the <a href=\"/en-US-v0.13.1/reference/math/attach/#functions-attach\"><code>attach</code></a> function</li>\n</ul>\n<h2 id=\"scripting\">Scripting</h2>\n<ul>\n<li>Added new <a href=\"/en-US-v0.13.1/reference/foundations/datetime/\" title=\"`datetime`\"><code>datetime</code></a> type and <a href=\"/en-US-v0.13.1/reference/foundations/datetime/#definitions-today\"><code>datetime.today</code></a> to\nretrieve the current date</li>\n<li>Added <a href=\"/en-US-v0.13.1/reference/foundations/str/#definitions-from-unicode\"><code>str.from-unicode</code></a> and\n<a href=\"/en-US-v0.13.1/reference/foundations/str/#definitions-to-unicode\"><code>str.to-unicode</code></a> functions</li>\n<li>Added <a href=\"/en-US-v0.13.1/reference/foundations/content/#definitions-fields\"><code>fields</code></a> method on content</li>\n<li>Added <code>base</code> parameter to <a href=\"/en-US-v0.13.1/reference/foundations/str/\" title=\"`str`\"><code>str</code></a> function</li>\n<li>Added <a href=\"/en-US-v0.13.1/reference/foundations/calc/#functions-exp\"><code>calc.exp</code></a> and <a href=\"/en-US-v0.13.1/reference/foundations/calc/#functions-ln\"><code>calc.ln</code></a></li>\n<li>Improved accuracy of <a href=\"/en-US-v0.13.1/reference/foundations/calc/#functions-pow\"><code>calc.pow</code></a> and <a href=\"/en-US-v0.13.1/reference/foundations/calc/#functions-log\"><code>calc.log</code></a> for\nspecific bases</li>\n<li>Fixed <a href=\"/en-US-v0.13.1/reference/foundations/dictionary/#definitions-remove\">removal</a> order for dictionary</li>\n<li>Fixed <code>.at(default: ..)</code> for <a href=\"/en-US-v0.13.1/reference/foundations/str/#definitions-at\">strings</a> and <a href=\"/en-US-v0.13.1/reference/foundations/content/#definitions-at\">content</a></li>\n<li>Fixed field access on styled elements</li>\n<li>Removed deprecated <code>calc.mod</code> function</li>\n</ul>\n<h2 id=\"command-line-interface\">Command line interface</h2>\n<ul>\n<li>Added PNG export via <code>typst compile source.typ output-{n}.png</code>. The output\npath must contain <code>{n}</code> if the document has multiple pages.</li>\n<li>Added <code>--diagnostic-format=short</code> for Unix-style short diagnostics</li>\n<li>Doesn't emit color codes anymore if stderr isn't a TTY</li>\n<li>Now sets the correct exit when invoked with a nonexistent file</li>\n<li>Now ignores UTF-8 BOM in Typst files</li>\n</ul>\n<h2 id=\"miscellaneous-improvements\">Miscellaneous Improvements</h2>\n<ul>\n<li>Improved errors for mismatched delimiters</li>\n<li>Improved error message for failed length comparisons</li>\n<li>Fixed a bug with images not showing up in Apple Preview</li>\n<li>Fixed multiple bugs with the PDF outline</li>\n<li>Fixed citations and other searchable elements in <a href=\"/en-US-v0.13.1/reference/layout/hide/\" title=\"`hide`\"><code>hide</code></a></li>\n<li>Fixed bugs with <a href=\"/en-US-v0.13.1/reference/model/ref/#parameters-supplement\">reference supplements</a></li>\n<li>Fixed Nix flake</li>\n</ul>\n<h2 id=\"contributors\">Contributors</h2>"}}