Skip to content

Commit

Permalink
Fix a terrible mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
sitandr committed Nov 16, 2023
1 parent b793bad commit 6537c19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/typstonomicon/original_image.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This function renders image with the size it "naturally" has.
This works because measure conceptually places the image onto a page with infinite size and then the image defaults to 1pt per pixel instead of becoming infinitely larger itself.

```typ
// author: laurmaedge
// author: laurmaedje
#let natural-image(..args) = style(styles => {
let (width, height) = measure(image(..args), styles)
image(..args, width: width, height: height)
Expand Down
2 changes: 1 addition & 1 deletion src/typstonomicon/try_catch.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Try & Catch
```typ
// author: laurmaedge
// author: laurmaedje
// Renders an image or a placeholder if it doesn't exist.
// Don’t try this at home, kids!
#let maybe-image(path, ..args) = locate(loc => {
Expand Down

0 comments on commit 6537c19

Please sign in to comment.