未翻訳
このページはまだ翻訳されていません。原文の内容が表示されています。
Version 0.3.0 (April 26, 2023)
Breaking changes
- Renamed a few symbols: What was previous
dot.opis now justdotand the basic dot isdot.basic. The same applies toastandtilde. - Renamed
modtoremto more accurately reflect the behavior. It will remain available asmoduntil the next update as a grace period. - A lone underscore is not a valid identifier anymore, it can now only be used in patterns
- Removed
beforeandafterarguments fromquery. This is now handled through flexible selectors combinator methods - Added support for attachments (sub-, superscripts) that
precede the base symbol. The
topandbottomarguments have been renamed totandb.
New features
- Added support for more complex strokes (configurable caps, joins, and dash patterns)
- Added
cancelfunction for equations - Added support for destructuring in argument lists and assignments
- Added
alttext argument to image function - Added
tomlfunction for loading data from a TOML file - Added
zip,sum, andproductmethods for arrays - Added
fact,perm,binom,gcd,lcm,atan2,quo,trunc, andfractcalculation functions
Improvements
- Text in SVGs now displays properly
- Typst now generates a PDF heading outline
- References now provides the referenced element as a field in show rules
- Refined linebreak algorithm for better Chinese justification
- Locations are now a valid kind of selector
- Added a few symbols for algebra
- Added Spanish smart quote support
- Added
selectorfunction to turn a selector-like value into a selector on which combinator methods can be called - Improved some error messages
- The outline and bibliography headings can now be styled with show-set rules
- Operations on numbers now produce an error instead of overflowing
Bug fixes
- Fixed wrong linebreak before punctuation that follows inline equations, citations, and other elements
- Fixed a bug with argument sinks
- Fixed strokes with thickness zero
- Fixed hiding and show rules in math
- Fixed alignment in matrices
- Fixed some alignment bugs in equations
- Fixed grid cell alignment
- Fixed alignment of list marker and enum markers in presence of global alignment settings
- Fixed path closing
- Fixed compiler crash with figure references
- A single trailing line breaks is now ignored in math, just like in text
Command line interface
- Font path and compilation root can now be set with the environment variables
TYPST_FONT_PATHSandTYPST_ROOT - The output of
typst fontsnow includes the embedded fonts
Development
- Added instrumentation for debugging and optimization
- Added
--updateflag andUPDATE_EXPECTenvironment variable to update reference images for tests - You can now run a specific subtest with
--subtest - Tests now run on multiple threads