|
3 | 3 | ## v1.0.7 |
4 | 4 |
|
5 | 5 | > ![INFO] |
| 6 | +> @avlouis added inline command `IfElseInline` for ternary if-then-else statements (#31). |
| 7 | +> ```typ |
| 8 | +> #{ |
| 9 | +> Assign($m$, IfElseInline($x < y$, $x$, $y$)) |
| 10 | +> } |
| 11 | +> ``` |
| 12 | +
|
| 13 | +> [!INFO] |
6 | 14 | > @wamserma fixed an issue with the width of the column offset not scaling with |
7 | 15 | > the font size (#26). |
8 | 16 | > Now, the column is specified relative to the font size in [`em`](https://typst.app/docs/reference/layout/length/). |
9 | 17 | > This is not a breaking change. |
10 | 18 |
|
11 | | -> ![INFO] |
| 19 | +> [!INFO] |
12 | 20 | > @nonl4331 fixed an issue with `LineComment` not working with certain input types (#27, #28). |
13 | 21 | > |
14 | 22 | > LineComment statements similar to the instances below will now render correctly. |
|
21 | 29 |
|
22 | 30 | ## v1.0.6 |
23 | 31 |
|
24 | | -> ![INFO] |
| 32 | +> [!INFO] |
25 | 33 | > @TimeTravelPenguin fixed an issue with `Assign` not working with nested blocks (#23, #24). |
26 | 34 | > |
27 | 35 | > Algorithms similar to the one below will now render correctly. |
|
34 | 42 |
|
35 | 43 | ## v1.0.5 |
36 | 44 |
|
37 | | -> ![INFO] |
| 45 | +> [!INFO] |
38 | 46 | > Added an option `line-numbers` to toggle line numbers on/off (#22). |
39 | 47 | > ```typ |
40 | 48 | > #algorithm(line-numbers: false, ...) |
|
46 | 54 | > #let algorithm-figure = algorithm-figure.with(line-numbers: false) |
47 | 55 | > ``` |
48 | 56 |
|
49 | | -> ![INFO] |
| 57 | +> [!INFO] |
50 | 58 | > Fix an issue with `algorithm-figure` float placement (#21). |
51 | 59 | > `style-algorithm` now has options `placement` and `scope` mimicking `figure`. |
52 | 60 | > By default, options set on `figure(kind: "algorithm")` supersede those of |
|
59 | 67 |
|
60 | 68 | ## v1.0.4 |
61 | 69 |
|
62 | | -> ![INFO] |
| 70 | +> [!INFO] |
63 | 71 | > @drecouse fixed an issue with `LineComment` preventing loops' body from displaying (#20). |
64 | 72 | > Now, you can use `LineComment` on loops without issues. |
65 | 73 | > ```typ |
|
70 | 78 | > "This is inside a nested block", |
71 | 79 | > ) |
72 | 80 | > ``` |
73 | | ->  |
| 81 | +> [!Screenshot of an algorithm showing a for-loop from i = 1 to 10, with each iteration containing a line calculation (1+1) and a nested while-loop from j = 1 to 10 assigning x = 1, with line comments describing "This is inside a nested block" and "This is a line comment after a block".](https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/tests/linecommentfor/ref/1.png) |
74 | 82 |
|
75 | | -> ![INFO] |
| 83 | +> [!INFO] |
76 | 84 | > `algorithm-figure` does not set `placement: none` anymore (#21). |
77 | 85 |
|
78 | 86 |
|
79 | 87 | ## v1.0.3 |
80 | 88 |
|
81 | | -> ![WARNING] |
| 89 | +> [!WARNING] |
82 | 90 | > algorithmic now use grids instead of tables for accessibility purposes, see [layout/grid](https://typst.app/docs/reference/layout/grid/#:~:text=Typst%20will%20annotate%20its%20output%20such%20that%20screenreaders%20will%20announce%20content%20in%20table%20as%20tabular). |
83 | 91 | > Any `table.hlines` in `style-algorithm` will error and `grid.hlines` must be used instead. |
84 | 92 |
|
85 | | -> ![INFO] |
| 93 | +> [!INFO] |
86 | 94 | > This version fixes an issue with the indentation offset where the last column corresponding to comments goes in the margin. |
87 | 95 |
|
88 | | -> ![INFO] |
| 96 | +> [!INFO] |
89 | 97 | > `State` is renamed to `Line` and will now work with other commands such as `LineComment`. Documentation is added in the [README](README.md). |
0 commit comments