v0.3.0
版本发布时间: 2023-04-26 22:20:47
typst/typst最新发布版本:v0.12.0(2024-10-19 05:41:48)
-
Breaking changes:
- Renamed a few symbols: What was previous
dot.op
is now justdot
and the basic dot isdot.basic
. The same applies toast
andtilde
. - Renamed
mod
torem
to more accurately reflect the behaviour. It will remain available asmod
until 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
before
andafter
arguments fromquery
. This is now handled through flexible selectors combinator methods - Added support for attachments (sub-, superscripts) that precede the base symbol. The
top
andbottom
arguments have been renamed tot
andb
.
- Renamed a few symbols: What was previous
-
New features
- Added support for more complex strokes (configurable caps, joins, and dash patterns)
- Added
cancel
function for equations - Added support for destructuring in argument lists and assignments
- Added
alt
text argument to image function - Added
toml
function for loading data from a TOML file - Added
zip
,sum
, andproduct
methods for arrays - Added
fact
,perm
,binom
,gcd
,lcm
,atan2
,quo
,trunc
, andfract
calculation
-
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
selector
function 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_PATHS
andTYPST_ROOT
- The output of
typst fonts
now includes the embedded fonts
- Font path and compilation root can now be set with the environment variables
-
Development
- Added instrumentation for debugging and optimization
- Added
--update
flag andUPDATE_EXPECT
environment variable to update reference images for tests - You can now run a specific subset with
--subtest
- Tests now run on multiple threads
Thanks to everyone who contributed to this release: @SUPERCILEX, @HarmoGlace, @Marmare314, @PgBiel, @barvirm, @Dherse, @Leedehai, @joeldierkes, @peng1999, @AlistairKeiller, @LaurenzV, @Luis-Licea, @SekoiaTree, @astrale-sharp, @birktj, @dccsillag, @goggle, @johannes-wolf, @mattfbacon, @michidk, @neunenak, @pan93412, @rpitasky, @thinety, @tranzystorek-io, @werifu
1、 typst-aarch64-apple-darwin.tar.xz 7MB
2、 typst-aarch64-pc-windows-msvc.zip 10.01MB
3、 typst-aarch64-unknown-linux-musl.tar.xz 6.97MB
4、 typst-armv7-unknown-linux-musleabi.tar.xz 7.1MB
5、 typst-riscv64gc-unknown-linux-gnu.tar.xz 7.25MB
6、 typst-x86_64-apple-darwin.tar.xz 7.2MB
7、 typst-x86_64-pc-windows-msvc.zip 10.27MB
8、 typst-x86_64-unknown-linux-musl.tar.xz 7.46MB