Skip to content

Commit a8b79d6

Browse files
committed
Bump to 1.0.2
1 parent bbeec62 commit a8b79d6

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

README.md

Lines changed: 20 additions & 20 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.1/docs/assets/algorithmic-demo.png)
17+
indentation, bolded keywords, and such](https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/docs/assets/algorithmic-demo.png)
1818

1919
Example:
2020

2121
```typst
22-
#import "@preview/algorithmic:1.0.1"
22+
#import "@preview/algorithmic:1.0.2"
2323
#import algorithmic: style-algorithm, algorithm-figure
2424
#show: style-algorithm
2525
#algorithm-figure(
@@ -92,7 +92,7 @@ between lines with the `inset` parameter.
9292
}
9393
)
9494
```
95-
![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.1/tests/algorithm/ref/1.png)
95+
![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.2/tests/algorithm/ref/1.png)
9696

9797
#### `algorithm-figure(title, supplement: "Algorithm", inset: 0.2em, indent: 0.5em, vstroke: 0pt + luma(200), ..bits)`
9898

@@ -142,7 +142,7 @@ An example of how to style the algorithm figure:
142142
)
143143
```
144144
which will result in something like
145-
![image of the binary search algorithm with a right-aligned and italics figure caption enclosed within a red and blue 2pt table 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.1/tests/style-2/ref/1.png).
145+
![image of the binary search algorithm with a right-aligned and italics figure caption enclosed within a red and blue 2pt table 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.2/tests/style-2/ref/1.png).
146146

147147
#### Control flow
148148

@@ -172,7 +172,7 @@ If($x < y$, {
172172
```
173173

174174
</td>
175-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.1/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>
175+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/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>
176176
</tr>
177177
<tr>
178178
<td><code>ElseIf</code></td>
@@ -186,7 +186,7 @@ ElseIf($x > y$, {
186186
```
187187

188188
</td>
189-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.1/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>
189+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/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>
190190
</tr>
191191
<tr>
192192
<td><code>Else</code></td>
@@ -200,7 +200,7 @@ Else({
200200
```
201201

202202
</td>
203-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.1/tests/else/ref/1.png" alt="image of an else statement with conditional statement return y" width="500"></td>
203+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/tests/else/ref/1.png" alt="image of an else statement with conditional statement return y" width="500"></td>
204204
</tr>
205205
<tr>
206206
<td><code>While</code></td>
@@ -214,7 +214,7 @@ While($i < 10$, {
214214
```
215215

216216
</td>
217-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.1/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>
217+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/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>
218218
</tr>
219219
<tr>
220220
<td><code>For</code></td>
@@ -228,7 +228,7 @@ For($i <= 10$, {
228228
```
229229

230230
</td>
231-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.1/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>
231+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/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>
232232
</tr>
233233
<tr>
234234
<td><code>IfElseChain</code></td>
@@ -250,7 +250,7 @@ IfElseChain( // Alternating content and bits
250250
```
251251

252252
</td>
253-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.1/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>
253+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/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>
254254
</tr>
255255
</tbody>
256256
</table>
@@ -282,7 +282,7 @@ Assign[$a$][$b$]
282282
```
283283

284284
</td>
285-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.1/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>
285+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/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>
286286
</tr>
287287
<tr>
288288
<td><code>Procedure</code></td>
@@ -296,7 +296,7 @@ Assign[$a$][$a+b$]
296296
```
297297

298298
</td>
299-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.1/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>
299+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/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>
300300
</tr>
301301
<tr>
302302
<td><code>Assign</code></td>
@@ -308,7 +308,7 @@ Assign[$x$][$y$]
308308
```
309309

310310
</td>
311-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.1/tests/assign/ref/1.png" alt="image of an assignment statement assigning y to x" width="500"></td>
311+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/tests/assign/ref/1.png" alt="image of an assignment statement assigning y to x" width="500"></td>
312312
</tr>
313313
<tr>
314314
<td><code>Return</code></td>
@@ -320,7 +320,7 @@ Return[$x$]
320320
```
321321

322322
</td>
323-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.1/tests/return/ref/1.png" alt="image of a return statement returning x" width="500"></td>
323+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/tests/return/ref/1.png" alt="image of a return statement returning x" width="500"></td>
324324
</tr>
325325
<tr>
326326
<td><code>Terminate</code></td>
@@ -332,7 +332,7 @@ Terminate[$x$]
332332
```
333333

334334
</td>
335-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.1/tests/terminate/ref/1.png" alt="image of a terminate statement terminating x" width="500"></td>
335+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/tests/terminate/ref/1.png" alt="image of a terminate statement terminating x" width="500"></td>
336336
</tr>
337337
<tr>
338338
<td><code>Break</code></td>
@@ -344,7 +344,7 @@ Break()
344344
```
345345

346346
</td>
347-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.1/tests/break/ref/1.png" alt="image of a break statement" width="500"></td>
347+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/tests/break/ref/1.png" alt="image of a break statement" width="500"></td>
348348
</tr>
349349
</tbody>
350350
</table>
@@ -364,7 +364,7 @@ Users can also define their own commands using both `Call(..args)` and
364364
Assign($y$, mean[$x$])
365365
})
366366
```
367-
![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.1/docs/assets/custom-call-function.png)
367+
![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.2/docs/assets/custom-call-function.png)
368368

369369
#### Comments
370370

@@ -394,7 +394,7 @@ Comment[This is a comment]
394394
```
395395

396396
</td>
397-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.1/tests/comment/ref/1.png" alt="image of a block comment with text 'This is a comment'" width="500"></td>
397+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/tests/comment/ref/1.png" alt="image of a block comment with text 'This is a comment'" width="500"></td>
398398
</tr>
399399
<tr>
400400
<td><code>CommentInline</code></td>
@@ -406,7 +406,7 @@ CommentInline[This is a comment]
406406
```
407407

408408
</td>
409-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.1/tests/commentinline/ref/1.png" alt="image of an inline comment with text 'This is a comment'" width="500"></td>
409+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/tests/commentinline/ref/1.png" alt="image of an inline comment with text 'This is a comment'" width="500"></td>
410410
</tr>
411411
<tr>
412412
<td><code>LineComment</code></td>
@@ -418,7 +418,7 @@ LineComment(Assign[a][1], [Initialize $a$ to 1])
418418
```
419419

420420
</td>
421-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.1/tests/linecomment/ref/1.png" alt="image of a line comment with text 'Initialize a to 1'" width="500"></td>
421+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.2/tests/linecomment/ref/1.png" alt="image of a line comment with text 'Initialize a to 1'" width="500"></td>
422422
</tr>
423423
</tbody>
424424
</table>

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version := "1.0.1"
1+
version := "1.0.2"
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.1"
5+
current = "1.0.2"
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.1"
3+
version = "1.0.2"
44
entrypoint = "algorithmic.typ"
55
authors = ["Jade Lovelace <https://github.com/lf->", "Pascal Quach <@quachpas>"]
66
license = "MIT"

0 commit comments

Comments
 (0)