Skip to content

Commit 4c5640f

Browse files
committed
Bump to 1.0.7
1 parent 676ff0d commit 4c5640f

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ for Typst. It's useful for writing pseudocode and typesetting it all nicely.
1414
[algorithmicx]: https://ctan.org/pkg/algorithmicx
1515

1616
![screenshot of the typst-algorithmic output, showing line numbers, automatic
17-
indentation, bolded keywords, and such](https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/docs/assets/algorithmic-demo.png)
17+
indentation, bolded keywords, and such](https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/docs/assets/algorithmic-demo.png)
1818

1919
Example:
2020

2121
```typst
22-
#import "@preview/algorithmic:1.0.6"
22+
#import "@preview/algorithmic:1.0.7"
2323
#import algorithmic: style-algorithm, algorithm-figure
2424
#show: style-algorithm
2525
#algorithm-figure(
@@ -96,7 +96,7 @@ If you want to customize line numbers, you can pass a function, that takes a num
9696
}
9797
)
9898
```
99-
![image of the algorithm with three lines of code assigning x to y, y to x, and z to x + y. The inset is set to 1em, the indent to 0.5em](https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/algorithm/ref/1.png)
99+
![image of the algorithm with three lines of code assigning x to y, y to x, and z to x + y. The inset is set to 1em, the indent to 0.5em](https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/algorithm/ref/1.png)
100100

101101
#### `algorithm-figure(title, supplement: "Algorithm", inset: 0.2em, indent: 0.5em, vstroke: 0pt + luma(200), line-numbers: true, line-numbers-format: x => [#x:], ..bits)`
102102

@@ -158,7 +158,7 @@ An example of how to style the algorithm figure:
158158
)
159159
```
160160
which will result in something like
161-
![image of the binary search algorithm with a right-aligned and italics figure caption enclosed within a red and blue 2pt grid horizontal lines. The algorithm is finally ended with a green 2pt horizontal line](https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/style-2/ref/1.png).
161+
![image of the binary search algorithm with a right-aligned and italics figure caption enclosed within a red and blue 2pt grid horizontal lines. The algorithm is finally ended with a green 2pt horizontal line](https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/style-2/ref/1.png).
162162

163163
#### Control flow
164164

@@ -188,7 +188,7 @@ If($x < y$, {
188188
```
189189

190190
</td>
191-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/if/ref/1.png" alt="image of an if statement with condition x < y and conditional statement assign y to x" width="500"></td>
191+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/if/ref/1.png" alt="image of an if statement with condition x < y and conditional statement assign y to x" width="500"></td>
192192
</tr>
193193
<tr>
194194
<td><code>ElseIf</code></td>
@@ -202,7 +202,7 @@ ElseIf($x > y$, {
202202
```
203203

204204
</td>
205-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/elseif/ref/1.png" alt="image of an elseif statement with condition x > y and conditional statement assign x to y" width="500"></td>
205+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/elseif/ref/1.png" alt="image of an elseif statement with condition x > y and conditional statement assign x to y" width="500"></td>
206206
</tr>
207207
<tr>
208208
<td><code>Else</code></td>
@@ -216,7 +216,7 @@ Else({
216216
```
217217

218218
</td>
219-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/else/ref/1.png" alt="image of an else statement with conditional statement return y" width="500"></td>
219+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/else/ref/1.png" alt="image of an else statement with conditional statement return y" width="500"></td>
220220
</tr>
221221
<tr>
222222
<td><code>While</code></td>
@@ -230,7 +230,7 @@ While($i < 10$, {
230230
```
231231

232232
</td>
233-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/while/ref/1.png" alt="image of a while statement with condition i < 10 and conditional statement assign i + 1 to i" width="500"></td>
233+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/while/ref/1.png" alt="image of a while statement with condition i < 10 and conditional statement assign i + 1 to i" width="500"></td>
234234
</tr>
235235
<tr>
236236
<td><code>For</code></td>
@@ -244,7 +244,7 @@ For($i <= 10$, {
244244
```
245245

246246
</td>
247-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/for/ref/1.png" alt="image of a for loop with condition i <= 10 and conditional statement assign i to x_i" width="500"></td>
247+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/for/ref/1.png" alt="image of a for loop with condition i <= 10 and conditional statement assign i to x_i" width="500"></td>
248248
</tr>
249249
<tr>
250250
<td><code>IfElseChain</code></td>
@@ -266,7 +266,7 @@ IfElseChain( // Alternating content and bits
266266
```
267267

268268
</td>
269-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/ifelsechain/ref/1.png" alt="image of an ifelsechain statement with condition x < y and conditional statement assign y to x, then condition x" width="500"></td>
269+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/ifelsechain/ref/1.png" alt="image of an ifelsechain statement with condition x < y and conditional statement assign y to x, then condition x" width="500"></td>
270270
</tr>
271271
<tr>
272272
<td><code>IfElseInline</code></td>
@@ -278,7 +278,7 @@ Assign($m$, IfElseInline($x < y$, $x$, $y$))
278278
```
279279

280280
</td>
281-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/ifelseinline/ref/1.png" alt="image of an ifelseinline expression with condition x < y, true expression x, and false expression y being assigned to m" width="500"></td>
281+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/ifelseinline/ref/1.png" alt="image of an ifelseinline expression with condition x < y, true expression x, and false expression y being assigned to m" width="500"></td>
282282
</tr>
283283
</tbody>
284284
</table>
@@ -310,7 +310,7 @@ Assign[$a$][$b$]
310310
```
311311

312312
</td>
313-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/function/ref/1.png" alt="image of a function definition with name 'Add' and arguments 'a' and 'b' with body 'return a+b'" width="500"></td>
313+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/function/ref/1.png" alt="image of a function definition with name 'Add' and arguments 'a' and 'b' with body 'return a+b'" width="500"></td>
314314
</tr>
315315
<tr>
316316
<td><code>Procedure</code></td>
@@ -324,7 +324,7 @@ Assign[$a$][$a+b$]
324324
```
325325

326326
</td>
327-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/procedure/ref/1.png" alt="image of a procedure definition with name 'Add' and arguments 'a' and 'b' with body 'assign a+b to a'" width="500"></td>
327+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/procedure/ref/1.png" alt="image of a procedure definition with name 'Add' and arguments 'a' and 'b' with body 'assign a+b to a'" width="500"></td>
328328
</tr>
329329
<tr>
330330
<td><code>Assign</code></td>
@@ -336,7 +336,7 @@ Assign[$x$][$y$]
336336
```
337337

338338
</td>
339-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/assign/ref/1.png" alt="image of an assignment statement assigning y to x" width="500"></td>
339+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/assign/ref/1.png" alt="image of an assignment statement assigning y to x" width="500"></td>
340340
</tr>
341341
<tr>
342342
<td><code>Return</code></td>
@@ -348,7 +348,7 @@ Return[$x$]
348348
```
349349

350350
</td>
351-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/return/ref/1.png" alt="image of a return statement returning x" width="500"></td>
351+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/return/ref/1.png" alt="image of a return statement returning x" width="500"></td>
352352
</tr>
353353
<tr>
354354
<td><code>Terminate</code></td>
@@ -360,7 +360,7 @@ Terminate[$x$]
360360
```
361361

362362
</td>
363-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/terminate/ref/1.png" alt="image of a terminate statement terminating x" width="500"></td>
363+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/terminate/ref/1.png" alt="image of a terminate statement terminating x" width="500"></td>
364364
</tr>
365365
<tr>
366366
<td><code>Break</code></td>
@@ -372,7 +372,7 @@ Break()
372372
```
373373

374374
</td>
375-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/break/ref/1.png" alt="image of a break statement" width="500"></td>
375+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/break/ref/1.png" alt="image of a break statement" width="500"></td>
376376
</tr>
377377
</tbody>
378378
</table>
@@ -392,7 +392,7 @@ Users can also define their own commands using both `Call(..args)` and
392392
Assign($y$, mean[$x$])
393393
})
394394
```
395-
![image of a custom call "Solve" given parameters "A" and "b" and a custom function "mean" given parameter "x" in the algorithmic environment. The call "Solve" is rendered in smallcaps and the function "mean" is rendered in a strong emphasis.](https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/docs/assets/custom-call-function.png)
395+
![image of a custom call "Solve" given parameters "A" and "b" and a custom function "mean" given parameter "x" in the algorithmic environment. The call "Solve" is rendered in smallcaps and the function "mean" is rendered in a strong emphasis.](https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/docs/assets/custom-call-function.png)
396396

397397
#### Standalone lines and line breaks
398398

@@ -405,7 +405,7 @@ You can use `Line` to create a standalone line and `LineBreak` to insert a line
405405
LineBreak
406406
})
407407
```
408-
![image of a standalone line with content "1+1" and a line break in the algorithmic environment](https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/line/ref/1.png)
408+
![image of a standalone line with content "1+1" and a line break in the algorithmic environment](https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/line/ref/1.png)
409409

410410

411411
#### Comments
@@ -436,7 +436,7 @@ Comment[This is a comment]
436436
```
437437

438438
</td>
439-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/comment/ref/1.png" alt="image of a block comment with text 'This is a comment'" width="500"></td>
439+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/comment/ref/1.png" alt="image of a block comment with text 'This is a comment'" width="500"></td>
440440
</tr>
441441
<tr>
442442
<td><code>CommentInline</code></td>
@@ -448,7 +448,7 @@ CommentInline[This is a comment]
448448
```
449449

450450
</td>
451-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/commentinline/ref/1.png" alt="image of an inline comment with text 'This is a comment'" width="500"></td>
451+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/commentinline/ref/1.png" alt="image of an inline comment with text 'This is a comment'" width="500"></td>
452452
</tr>
453453
<tr>
454454
<td><code>LineComment</code></td>
@@ -460,7 +460,7 @@ LineComment(Assign[a][1], [Initialize $a$ to 1])
460460
```
461461

462462
</td>
463-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.6/tests/linecomment/ref/1.png" alt="image of a line comment with text 'Initialize a to 1'" width="500"></td>
463+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.7/tests/linecomment/ref/1.png" alt="image of a line comment with text 'Initialize a to 1'" width="500"></td>
464464
</tr>
465465
</tbody>
466466
</table>

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version := "1.0.6"
1+
version := "1.0.7"
22
typst := "typst"
33

44
docs:

tbump.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# github_url = "https://github.com/<user or organization>/<project>/"
33

44
[version]
5-
current = "1.0.6"
5+
current = "1.0.7"
66

77
# Example of a semver regexp.
88
# Make sure this matches current_version before

typst.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "algorithmic"
3-
version = "1.0.6"
3+
version = "1.0.7"
44
entrypoint = "algorithmic.typ"
55
authors = ["Jade Lovelace <https://github.com/lf->", "Pascal Quach <@quachpas>"]
66
license = "MIT"

0 commit comments

Comments
 (0)