{"route":"/en-US-v0.13.1/changelog/0.3.0/","title":"0.3.0","description":"Changes in Typst 0.3.0","part":null,"outline":[{"id":"breaking-changes","name":"Breaking changes","children":[]},{"id":"new-features","name":"New features","children":[]},{"id":"improvements","name":"Improvements","children":[]},{"id":"bug-fixes","name":"Bug fixes","children":[]},{"id":"command-line-interface","name":"Command line interface","children":[]},{"id":"development","name":"Development","children":[]},{"id":"contributors","name":"Contributors","children":[]}],"body":{"kind":"html","content":"<h1>Version 0.3.0 (April 26, 2023)</h1>\n<h2 id=\"breaking-changes\">Breaking changes</h2>\n<ul>\n<li>Renamed a few symbols: What was previous <code>dot.op</code> is now just <code>dot</code> and the\nbasic dot is <code>dot.basic</code>. The same applies to <code>ast</code> and <code>tilde</code>.</li>\n<li>Renamed <code>mod</code> to <a href=\"/en-US-v0.13.1/reference/foundations/calc/#functions-rem\"><code>rem</code></a> to more accurately reflect the behavior.\nIt will remain available as <code>mod</code> until the next update as a grace period.</li>\n<li>A lone underscore is not a valid identifier anymore, it can now only be used\nin patterns</li>\n<li>Removed <code>before</code> and <code>after</code> arguments from <a href=\"/en-US-v0.13.1/reference/introspection/query/\" title=\"`query`\"><code>query</code></a>. This is now handled\nthrough flexible <a href=\"/en-US-v0.13.1/reference/foundations/selector/\">selectors</a> combinator methods</li>\n<li>Added support for <a href=\"/en-US-v0.13.1/reference/math/attach/#functions-attach\">attachments</a> (sub-, superscripts) that\nprecede the base symbol. The <code>top</code> and <code>bottom</code> arguments have been renamed to\n<code>t</code> and <code>b</code>.</li>\n</ul>\n<h2 id=\"new-features\">New features</h2>\n<ul>\n<li>Added support for more complex <a href=\"/en-US-v0.13.1/reference/visualize/stroke/\">strokes</a> (configurable caps, joins,\nand dash patterns)</li>\n<li>Added <a href=\"/en-US-v0.13.1/reference/math/cancel/\"><code>cancel</code></a> function for equations</li>\n<li>Added support for <a href=\"/en-US-v0.13.1/reference/scripting/#bindings\">destructuring</a> in argument lists and\nassignments</li>\n<li>Added <a href=\"/en-US-v0.13.1/reference/visualize/image/#parameters-alt\"><code>alt</code></a> text argument to image function</li>\n<li>Added <a href=\"/en-US-v0.13.1/reference/data-loading/toml/\" title=\"`toml`\"><code>toml</code></a> function for loading data from a TOML file</li>\n<li>Added <a href=\"/en-US-v0.13.1/reference/foundations/array/#definitions-zip\"><code>zip</code></a>, <a href=\"/en-US-v0.13.1/reference/foundations/array/#definitions-sum\"><code>sum</code></a>, and\n<a href=\"/en-US-v0.13.1/reference/foundations/array/#definitions-product\"><code>product</code></a> methods for arrays</li>\n<li>Added <code>fact</code>, <code>perm</code>, <code>binom</code>, <code>gcd</code>, <code>lcm</code>, <code>atan2</code>, <code>quo</code>, <code>trunc</code>, and\n<code>fract</code> <a href=\"/en-US-v0.13.1/reference/foundations/calc/\">calculation</a> functions</li>\n</ul>\n<h2 id=\"improvements\">Improvements</h2>\n<ul>\n<li>Text in SVGs now displays properly</li>\n<li>Typst now generates a PDF heading outline</li>\n<li><a href=\"/en-US-v0.13.1/reference/model/ref/\">References</a> now provides the referenced element as a field in show\nrules</li>\n<li>Refined linebreak algorithm for better Chinese justification</li>\n<li>Locations are now a valid kind of selector</li>\n<li>Added a few symbols for algebra</li>\n<li>Added Spanish smart quote support</li>\n<li>Added <a href=\"/en-US-v0.13.1/reference/foundations/selector/\" title=\"`selector`\"><code>selector</code></a> function to turn a selector-like value into a selector on\nwhich combinator methods can be called</li>\n<li>Improved some error messages</li>\n<li>The outline and bibliography headings can now be styled with show-set rules</li>\n<li>Operations on numbers now produce an error instead of overflowing</li>\n</ul>\n<h2 id=\"bug-fixes\">Bug fixes</h2>\n<ul>\n<li>Fixed wrong linebreak before punctuation that follows inline equations,\ncitations, and other elements</li>\n<li>Fixed a bug with <a href=\"/en-US-v0.13.1/reference/foundations/arguments/\">argument sinks</a></li>\n<li>Fixed strokes with thickness zero</li>\n<li>Fixed hiding and show rules in math</li>\n<li>Fixed alignment in matrices</li>\n<li>Fixed some alignment bugs in equations</li>\n<li>Fixed grid cell alignment</li>\n<li>Fixed alignment of list marker and enum markers in presence of global\nalignment settings</li>\n<li>Fixed <a href=\"/en-US-v0.13.1/reference/visualize/path/\">path</a> closing</li>\n<li>Fixed compiler crash with figure references</li>\n<li>A single trailing line breaks is now ignored in math, just like in text</li>\n</ul>\n<h2 id=\"command-line-interface\">Command line interface</h2>\n<ul>\n<li>Font path and compilation root can now be set with the environment variables\n<code>TYPST_FONT_PATHS</code> and <code>TYPST_ROOT</code></li>\n<li>The output of <code>typst fonts</code> now includes the embedded fonts</li>\n</ul>\n<h2 id=\"development\">Development</h2>\n<ul>\n<li>Added instrumentation for debugging and optimization</li>\n<li>Added <code>--update</code> flag and <code>UPDATE_EXPECT</code> environment variable to update\nreference images for tests</li>\n<li>You can now run a specific subtest with <code>--subtest</code></li>\n<li>Tests now run on multiple threads</li>\n</ul>\n<h2 id=\"contributors\">Contributors</h2>"}}