Compare commits

...

6 Commits

Author SHA1 Message Date
Laurenz
db9a83d9fc Bump version on main
The tagged commit itself is on the 0.13 branch.
2025-03-07 11:19:12 +01:00
Laurenz
8d3488a07d
0.13.1 changelog (#6025) 2025-03-07 10:03:52 +00:00
Laurenz
476c2df312
Mark breaking symbol changes as breaking in 0.13.0 changelog (#6024) 2025-03-07 09:17:11 +00:00
Malo
e0b2c32a8e
Mention that sym.ohm was removed in the 0.13.0 changelog (#6017)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-03-07 09:05:16 +00:00
Laurenz
99b7d2898e
Replace par function call in tutorial (#6023) 2025-03-07 08:47:56 +00:00
Laurenz
e1a9166e1d
Hotfix for labels on symbols (#6015) 2025-03-07 08:22:42 +00:00
10 changed files with 94 additions and 54 deletions

48
Cargo.lock generated
View File

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

View File

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

View File

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

View File

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

29
docs/changelog/0.13.1.md Normal file
View File

@ -0,0 +1,29 @@
---
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,6 +10,7 @@ forward. This section documents all changes to Typst since its initial public
release.
## Versions
- [Typst 0.13.1]($changelog/0.13.1)
- [Typst 0.13.0]($changelog/0.13.0)
- [Typst 0.12.0]($changelog/0.12.0)
- [Typst 0.11.1]($changelog/0.11.1)

View File

@ -188,6 +188,7 @@ fn changelog_pages(resolver: &dyn Resolver) -> PageModel {
let mut page = md_page(resolver, resolver.base(), load!("changelog/welcome.md"));
let base = format!("{}changelog/", resolver.base());
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.12.0.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_
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
might have when you want, for example, to justify the report, could be to look
might have when you want, for example, to change the font, could be to look
for a function that does that and wrap the complete document in it.
```example
#par(justify: true)[
#text(font: "New Computer Modern")[
= Background
In the case of glaciers, fluid
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
the normal arguments, saving on punctuation.
As seen above, that works. The [`par`] function justifies all paragraphs within
it. However, wrapping the document in countless functions and applying styles
selectively and in-situ can quickly become cumbersome.
As seen above, that works. With the [`text`] function, we can adjust the font
for all text within it. However, wrapping the document in countless functions
and applying styles selectively and in-situ can quickly become cumbersome.
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
@ -47,7 +47,9 @@ 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.
```example
#set par(justify: true)
#set text(
font: "New Computer Modern"
)
= Background
In the case of glaciers, fluid

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

View File

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