Skip to content

Commit a250072

Browse files
committed
Bump to 1.0.5
1 parent 232eac0 commit a250072

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

README.md

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

1919
Example:
2020

2121
```typst
22-
#import "@preview/algorithmic:1.0.4"
22+
#import "@preview/algorithmic:1.0.5"
2323
#import algorithmic: style-algorithm, algorithm-figure
2424
#show: style-algorithm
2525
#algorithm-figure(
@@ -94,7 +94,7 @@ between lines with the `inset` parameter.
9494
}
9595
)
9696
```
97-
![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.4/tests/algorithm/ref/1.png)
97+
![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.5/tests/algorithm/ref/1.png)
9898

9999
#### `algorithm-figure(title, supplement: "Algorithm", inset: 0.2em, indent: 0.5em, vstroke: 0pt + luma(200), line-numbers: true, ..bits)`
100100

@@ -156,7 +156,7 @@ An example of how to style the algorithm figure:
156156
)
157157
```
158158
which will result in something like
159-
![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.4/tests/style-2/ref/1.png).
159+
![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.5/tests/style-2/ref/1.png).
160160

161161
#### Control flow
162162

@@ -186,7 +186,7 @@ If($x < y$, {
186186
```
187187

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

202202
</td>
203-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/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>
203+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.5/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>
204204
</tr>
205205
<tr>
206206
<td><code>Else</code></td>
@@ -214,7 +214,7 @@ Else({
214214
```
215215

216216
</td>
217-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/tests/else/ref/1.png" alt="image of an else statement with conditional statement return y" width="500"></td>
217+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.5/tests/else/ref/1.png" alt="image of an else statement with conditional statement return y" width="500"></td>
218218
</tr>
219219
<tr>
220220
<td><code>While</code></td>
@@ -228,7 +228,7 @@ While($i < 10$, {
228228
```
229229

230230
</td>
231-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/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>
231+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.5/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>
232232
</tr>
233233
<tr>
234234
<td><code>For</code></td>
@@ -242,7 +242,7 @@ For($i <= 10$, {
242242
```
243243

244244
</td>
245-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/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>
245+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.5/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>
246246
</tr>
247247
<tr>
248248
<td><code>IfElseChain</code></td>
@@ -264,7 +264,7 @@ IfElseChain( // Alternating content and bits
264264
```
265265

266266
</td>
267-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/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>
267+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.5/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>
268268
</tr>
269269
</tbody>
270270
</table>
@@ -296,7 +296,7 @@ Assign[$a$][$b$]
296296
```
297297

298298
</td>
299-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/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>
299+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.5/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>
300300
</tr>
301301
<tr>
302302
<td><code>Procedure</code></td>
@@ -310,7 +310,7 @@ Assign[$a$][$a+b$]
310310
```
311311

312312
</td>
313-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/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>
313+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.5/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>
314314
</tr>
315315
<tr>
316316
<td><code>Assign</code></td>
@@ -322,7 +322,7 @@ Assign[$x$][$y$]
322322
```
323323

324324
</td>
325-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/tests/assign/ref/1.png" alt="image of an assignment statement assigning y to x" width="500"></td>
325+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.5/tests/assign/ref/1.png" alt="image of an assignment statement assigning y to x" width="500"></td>
326326
</tr>
327327
<tr>
328328
<td><code>Return</code></td>
@@ -334,7 +334,7 @@ Return[$x$]
334334
```
335335

336336
</td>
337-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/tests/return/ref/1.png" alt="image of a return statement returning x" width="500"></td>
337+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.5/tests/return/ref/1.png" alt="image of a return statement returning x" width="500"></td>
338338
</tr>
339339
<tr>
340340
<td><code>Terminate</code></td>
@@ -346,7 +346,7 @@ Terminate[$x$]
346346
```
347347

348348
</td>
349-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/tests/terminate/ref/1.png" alt="image of a terminate statement terminating x" width="500"></td>
349+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.5/tests/terminate/ref/1.png" alt="image of a terminate statement terminating x" width="500"></td>
350350
</tr>
351351
<tr>
352352
<td><code>Break</code></td>
@@ -358,7 +358,7 @@ Break()
358358
```
359359

360360
</td>
361-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/tests/break/ref/1.png" alt="image of a break statement" width="500"></td>
361+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.5/tests/break/ref/1.png" alt="image of a break statement" width="500"></td>
362362
</tr>
363363
</tbody>
364364
</table>
@@ -378,7 +378,7 @@ Users can also define their own commands using both `Call(..args)` and
378378
Assign($y$, mean[$x$])
379379
})
380380
```
381-
![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.4/docs/assets/custom-call-function.png)
381+
![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.5/docs/assets/custom-call-function.png)
382382

383383
#### Standalone lines and line breaks
384384

@@ -391,7 +391,7 @@ You can use `Line` to create a standalone line and `LineBreak` to insert a line
391391
LineBreak
392392
})
393393
```
394-
![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.4/tests/line/ref/1.png)
394+
![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.5/tests/line/ref/1.png)
395395

396396

397397
#### Comments
@@ -422,7 +422,7 @@ Comment[This is a comment]
422422
```
423423

424424
</td>
425-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/tests/comment/ref/1.png" alt="image of a block comment with text 'This is a comment'" width="500"></td>
425+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.5/tests/comment/ref/1.png" alt="image of a block comment with text 'This is a comment'" width="500"></td>
426426
</tr>
427427
<tr>
428428
<td><code>CommentInline</code></td>
@@ -434,7 +434,7 @@ CommentInline[This is a comment]
434434
```
435435

436436
</td>
437-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/tests/commentinline/ref/1.png" alt="image of an inline comment with text 'This is a comment'" width="500"></td>
437+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.5/tests/commentinline/ref/1.png" alt="image of an inline comment with text 'This is a comment'" width="500"></td>
438438
</tr>
439439
<tr>
440440
<td><code>LineComment</code></td>
@@ -446,7 +446,7 @@ LineComment(Assign[a][1], [Initialize $a$ to 1])
446446
```
447447

448448
</td>
449-
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.4/tests/linecomment/ref/1.png" alt="image of a line comment with text 'Initialize a to 1'" width="500"></td>
449+
<td><img src="https://raw.githubusercontent.com/typst-community/typst-algorithmic/refs/tags/v1.0.5/tests/linecomment/ref/1.png" alt="image of a line comment with text 'Initialize a to 1'" width="500"></td>
450450
</tr>
451451
</tbody>
452452
</table>

justfile

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

0 commit comments

Comments
 (0)