Compare commits

..

No commits in common. "db9a83d9fc2c9928bcfbc78ccafc2a799ccca2f0" and "6271cdceae146efe75942ebde7712a942627c42f" have entirely different histories.

10 changed files with 54 additions and 94 deletions

48
Cargo.lock generated
View File

@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo. # This file is automatically @generated by Cargo.
# It is not intended for manual editing. # It is not intended for manual editing.
version = 4 version = 3
[[package]] [[package]]
name = "adler2" name = "adler2"
@ -2735,7 +2735,7 @@ checksum = "6af6ae20167a9ece4bcb41af5b80f8a1f1df981f6391189ce00fd257af04126a"
[[package]] [[package]]
name = "typst" name = "typst"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"comemo", "comemo",
"ecow", "ecow",
@ -2752,12 +2752,12 @@ dependencies = [
[[package]] [[package]]
name = "typst-assets" name = "typst-assets"
version = "0.13.1" version = "0.13.0"
source = "git+https://github.com/typst/typst-assets?rev=ab1295f#ab1295ff896444e51902e03c2669955e1d73604a" source = "git+https://github.com/typst/typst-assets?rev=fa0f8a4#fa0f8a438cc4bc2113cc0aa3304cd68cdc2bc020"
[[package]] [[package]]
name = "typst-cli" name = "typst-cli"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"chrono", "chrono",
"clap", "clap",
@ -2802,12 +2802,12 @@ dependencies = [
[[package]] [[package]]
name = "typst-dev-assets" name = "typst-dev-assets"
version = "0.13.1" version = "0.13.0"
source = "git+https://github.com/typst/typst-dev-assets?rev=9879589#9879589f4b3247b12c5e694d0d7fa86d4d8a198e" source = "git+https://github.com/typst/typst-dev-assets?rev=61aebe9#61aebe9575a5abff889f76d73c7b01dc8e17e340"
[[package]] [[package]]
name = "typst-docs" name = "typst-docs"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"clap", "clap",
"ecow", "ecow",
@ -2830,7 +2830,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-eval" name = "typst-eval"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"comemo", "comemo",
"ecow", "ecow",
@ -2848,7 +2848,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-fuzz" name = "typst-fuzz"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"comemo", "comemo",
"libfuzzer-sys", "libfuzzer-sys",
@ -2860,7 +2860,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-html" name = "typst-html"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"comemo", "comemo",
"ecow", "ecow",
@ -2874,7 +2874,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-ide" name = "typst-ide"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"comemo", "comemo",
"ecow", "ecow",
@ -2891,7 +2891,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-kit" name = "typst-kit"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"dirs", "dirs",
"ecow", "ecow",
@ -2914,7 +2914,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-layout" name = "typst-layout"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"az", "az",
"bumpalo", "bumpalo",
@ -2944,7 +2944,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-library" name = "typst-library"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"az", "az",
"bitflags 2.8.0", "bitflags 2.8.0",
@ -3005,7 +3005,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-macros" name = "typst-macros"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"heck", "heck",
"proc-macro2", "proc-macro2",
@ -3015,7 +3015,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-pdf" name = "typst-pdf"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"arrayvec", "arrayvec",
"base64", "base64",
@ -3041,7 +3041,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-realize" name = "typst-realize"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"arrayvec", "arrayvec",
"bumpalo", "bumpalo",
@ -3057,7 +3057,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-render" name = "typst-render"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"bytemuck", "bytemuck",
"comemo", "comemo",
@ -3073,7 +3073,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-svg" name = "typst-svg"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"base64", "base64",
"comemo", "comemo",
@ -3091,7 +3091,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-syntax" name = "typst-syntax"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"ecow", "ecow",
"serde", "serde",
@ -3107,7 +3107,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-tests" name = "typst-tests"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"clap", "clap",
"comemo", "comemo",
@ -3132,7 +3132,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-timing" name = "typst-timing"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"parking_lot", "parking_lot",
"serde", "serde",
@ -3142,7 +3142,7 @@ dependencies = [
[[package]] [[package]]
name = "typst-utils" name = "typst-utils"
version = "0.13.1" version = "0.13.0"
dependencies = [ dependencies = [
"once_cell", "once_cell",
"portable-atomic", "portable-atomic",

View File

@ -4,7 +4,7 @@ default-members = ["crates/typst-cli"]
resolver = "2" resolver = "2"
[workspace.package] [workspace.package]
version = "0.13.1" version = "0.13.0"
rust-version = "1.83" # also change in ci.yml rust-version = "1.83" # also change in ci.yml
authors = ["The Typst Project Developers"] authors = ["The Typst Project Developers"]
edition = "2021" edition = "2021"
@ -16,24 +16,24 @@ keywords = ["typst"]
readme = "README.md" readme = "README.md"
[workspace.dependencies] [workspace.dependencies]
typst = { path = "crates/typst", version = "0.13.1" } typst = { path = "crates/typst", version = "0.13.0" }
typst-cli = { path = "crates/typst-cli", version = "0.13.1" } typst-cli = { path = "crates/typst-cli", version = "0.13.0" }
typst-eval = { path = "crates/typst-eval", version = "0.13.1" } typst-eval = { path = "crates/typst-eval", version = "0.13.0" }
typst-html = { path = "crates/typst-html", version = "0.13.1" } typst-html = { path = "crates/typst-html", version = "0.13.0" }
typst-ide = { path = "crates/typst-ide", version = "0.13.1" } typst-ide = { path = "crates/typst-ide", version = "0.13.0" }
typst-kit = { path = "crates/typst-kit", version = "0.13.1" } typst-kit = { path = "crates/typst-kit", version = "0.13.0" }
typst-layout = { path = "crates/typst-layout", version = "0.13.1" } typst-layout = { path = "crates/typst-layout", version = "0.13.0" }
typst-library = { path = "crates/typst-library", version = "0.13.1" } typst-library = { path = "crates/typst-library", version = "0.13.0" }
typst-macros = { path = "crates/typst-macros", version = "0.13.1" } typst-macros = { path = "crates/typst-macros", version = "0.13.0" }
typst-pdf = { path = "crates/typst-pdf", version = "0.13.1" } typst-pdf = { path = "crates/typst-pdf", version = "0.13.0" }
typst-realize = { path = "crates/typst-realize", version = "0.13.1" } typst-realize = { path = "crates/typst-realize", version = "0.13.0" }
typst-render = { path = "crates/typst-render", version = "0.13.1" } typst-render = { path = "crates/typst-render", version = "0.13.0" }
typst-svg = { path = "crates/typst-svg", version = "0.13.1" } typst-svg = { path = "crates/typst-svg", version = "0.13.0" }
typst-syntax = { path = "crates/typst-syntax", version = "0.13.1" } typst-syntax = { path = "crates/typst-syntax", version = "0.13.0" }
typst-timing = { path = "crates/typst-timing", version = "0.13.1" } typst-timing = { path = "crates/typst-timing", version = "0.13.0" }
typst-utils = { path = "crates/typst-utils", version = "0.13.1" } typst-utils = { path = "crates/typst-utils", version = "0.13.0" }
typst-assets = { git = "https://github.com/typst/typst-assets", rev = "ab1295f" } typst-assets = { git = "https://github.com/typst/typst-assets", rev = "fa0f8a4" }
typst-dev-assets = { git = "https://github.com/typst/typst-dev-assets", rev = "9879589" } typst-dev-assets = { git = "https://github.com/typst/typst-dev-assets", rev = "61aebe9" }
arrayvec = "0.7.4" arrayvec = "0.7.4"
az = "1.2" az = "1.2"
base64 = "0.22" base64 = "0.22"

View File

@ -326,10 +326,7 @@ fn visit_math_rules<'a>(
// Symbols in non-math content transparently convert to `TextElem` so we // Symbols in non-math content transparently convert to `TextElem` so we
// don't have to handle them in non-math layout. // don't have to handle them in non-math layout.
if let Some(elem) = content.to_packed::<SymbolElem>() { if let Some(elem) = content.to_packed::<SymbolElem>() {
let mut text = TextElem::packed(elem.text).spanned(elem.span()); let text = TextElem::packed(elem.text).spanned(elem.span());
if let Some(label) = elem.label() {
text.set_label(label);
}
visit(s, s.store(text), styles)?; visit(s, s.store(text), styles)?;
return Ok(true); return Ok(true);
} }

View File

@ -294,20 +294,20 @@ feature flag.
`errorbar.diamond.stroked`, `errorbar.diamond.filled`, `errorbar.diamond.stroked`, `errorbar.diamond.filled`,
`errorbar.circle.stroked`, `errorbar.circle.filled` `errorbar.circle.stroked`, `errorbar.circle.filled`
- `numero` - `numero`
- Renamed **(Breaking change)** - `Omega.inv`
- Renamed
- `ohm.inv` to `Omega.inv` - `ohm.inv` to `Omega.inv`
- Changed codepoint **(Breaking change)** - Changed codepoint
- `angle.l.double` from `《` to `⟪` - `angle.l.double` from `《` to `⟪`
- `angle.r.double` from `》` to `⟫` - `angle.r.double` from `》` to `⟫`
- `angstrom` from U+212B (`Å`) to U+00C5 (`Å`) - `angstrom` from U+212B (`Å`) to U+00C5 (`Å`)
- Deprecated - Deprecated
- `sect` and all its variants in favor of `inter` - `sect` and all its variants in favor of `inter`
- `integral.sect` in favor of `integral.inter` - `integral.sect` in favor of `integral.inter`
- Removed **(Breaking change)** - Removed
- `degree.c` in favor of `°C` (`[$upright(°C)$]` or `[$upright(degree C)$]` in math) - `degree.c` in favor of `°C` (`[$upright(°C)$]` or `[$upright(degree C)$]` in math)
- `degree.f` in favor of `°F` (`[$upright(°F)$]` or `[$upright(degree F)$]` in math) - `degree.f` in favor of `°F` (`[$upright(°F)$]` or `[$upright(degree F)$]` in math)
- `kelvin` in favor of just K (`[$upright(K)$]` in math) - `kelvin` in favor of just K (`[$upright(K)$]` in math)
- `ohm` in favor of `Omega`
## Deprecations ## Deprecations
- The [`path`] function in favor of the [`curve`] function - The [`path`] function in favor of the [`curve`] function

View File

@ -1,29 +0,0 @@
---
title: 0.13.1
description: Changes in Typst 0.13.1
---
# Version 0.13.1 (March 7, 2025)
## Command Line Interface
- Fixed high CPU usage for `typst watch` on Linux. Depending on the project
size, CPU usage would spike for varying amounts of time. This bug appeared
with 0.13.0 due to a behavioral change in the inotify file watching backend.
## HTML export
- Fixed export of tables with [gutters]($table.gutter)
- Fixed usage of `<html>` and `<body>` element within [context]
- Fixed querying of [metadata] next to `<html>` and `<body>` element
## Visualization
- Fixed [curves]($curve) with multiple non-closed components
## Introspection
- Fixed a regression where labelled [symbols]($symbol) could not be
[queried]($query) by label
## Deprecations
- Fixed false positives in deprecation warnings for type/str comparisons
## Contributors
<contributors from="v0.13.0" to="v0.13.1" />

View File

@ -10,7 +10,6 @@ forward. This section documents all changes to Typst since its initial public
release. release.
## Versions ## Versions
- [Typst 0.13.1]($changelog/0.13.1)
- [Typst 0.13.0]($changelog/0.13.0) - [Typst 0.13.0]($changelog/0.13.0)
- [Typst 0.12.0]($changelog/0.12.0) - [Typst 0.12.0]($changelog/0.12.0)
- [Typst 0.11.1]($changelog/0.11.1) - [Typst 0.11.1]($changelog/0.11.1)

View File

@ -188,7 +188,6 @@ fn changelog_pages(resolver: &dyn Resolver) -> PageModel {
let mut page = md_page(resolver, resolver.base(), load!("changelog/welcome.md")); let mut page = md_page(resolver, resolver.base(), load!("changelog/welcome.md"));
let base = format!("{}changelog/", resolver.base()); let base = format!("{}changelog/", resolver.base());
page.children = vec![ page.children = vec![
md_page(resolver, &base, load!("changelog/0.13.1.md")),
md_page(resolver, &base, load!("changelog/0.13.0.md")), md_page(resolver, &base, load!("changelog/0.13.0.md")),
md_page(resolver, &base, load!("changelog/0.12.0.md")), md_page(resolver, &base, load!("changelog/0.12.0.md")),
md_page(resolver, &base, load!("changelog/0.11.1.md")), md_page(resolver, &base, load!("changelog/0.11.1.md")),

View File

@ -13,11 +13,11 @@ your report using Typst's styling system.
As we have seen in the previous chapter, Typst has functions that _insert_ As we have seen in the previous chapter, Typst has functions that _insert_
content (e.g. the [`image`] function) and others that _manipulate_ content that content (e.g. the [`image`] function) and others that _manipulate_ content that
they received as arguments (e.g. the [`align`] function). The first impulse you they received as arguments (e.g. the [`align`] function). The first impulse you
might have when you want, for example, to change the font, could be to look might have when you want, for example, to justify the report, could be to look
for a function that does that and wrap the complete document in it. for a function that does that and wrap the complete document in it.
```example ```example
#text(font: "New Computer Modern")[ #par(justify: true)[
= Background = Background
In the case of glaciers, fluid In the case of glaciers, fluid
dynamics principles can be used dynamics principles can be used
@ -37,9 +37,9 @@ do in Typst, there is special syntax for it: Instead of putting the content
inside of the argument list, you can write it in square brackets directly after inside of the argument list, you can write it in square brackets directly after
the normal arguments, saving on punctuation. the normal arguments, saving on punctuation.
As seen above, that works. With the [`text`] function, we can adjust the font As seen above, that works. The [`par`] function justifies all paragraphs within
for all text within it. However, wrapping the document in countless functions it. However, wrapping the document in countless functions and applying styles
and applying styles selectively and in-situ can quickly become cumbersome. selectively and in-situ can quickly become cumbersome.
Fortunately, Typst has a more elegant solution. With _set rules,_ you can apply Fortunately, Typst has a more elegant solution. With _set rules,_ you can apply
style properties to all occurrences of some kind of content. You write a set style properties to all occurrences of some kind of content. You write a set
@ -47,9 +47,7 @@ rule by entering the `{set}` keyword, followed by the name of the function whose
properties you want to set, and a list of arguments in parentheses. properties you want to set, and a list of arguments in parentheses.
```example ```example
#set text( #set par(justify: true)
font: "New Computer Modern"
)
= Background = Background
In the case of glaciers, fluid In the case of glaciers, fluid

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 B

View File

@ -151,7 +151,3 @@
--- symbol-sect-deprecated --- --- symbol-sect-deprecated ---
// Warning: 5-9 `sect` is deprecated, use `inter` instead // Warning: 5-9 `sect` is deprecated, use `inter` instead
$ A sect B = A inter B $ $ A sect B = A inter B $
--- issue-5930-symbol-label ---
#emoji.face<lab>
#context test(query(<lab>).first().text, "😀")