How to write content at the bottom of a page?

I am using Touying to create a presentation.

I want to create a custom command that puts its arguments to the bottom of the current slide[1] for directly showing the source of images, etc. (Like a footnote, but without the footnote^^)

How can I achieve this?

My current suboptimal solution is something like:

#let source(content) = {
  align(bottom+right, content)
}

This works as long as the source command is the last command of the page, but not anymore if I write something after the source command, because then the content after the source command comes after the source-content. Therefore I am wondering if there is a better solution.

[1]: And applies some styling to it, but that is irrelevant for the question

This sound like a use case for Place Function – Typst Documentation with float: true :)

1 Like

I just noticed that I forgot to thank you. I implemented your hint (the same day you gave it) and it worked. Thank you! :)

1 Like