Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
diatypst
diatypst

diatypst

  • Quickstart
  • Reference
  • Styling
  • Quarto

FAQ

  • How to use a black background?
  • How to add a logo the first slide?
  • How to link to specific slides?
Back to top
View this page
Edit this page

How to link to specific slides?ΒΆ

In diatypst, you can link to specific slides using the ref function. This is particularly useful for creating references to appendices or other sections of your presentation.

To create a hyperlink to a specific slide, you first need to assign an identifier to the target heading using the <label> syntax. Then, you can use the #ref() function to create a link to that label.

For example, to create these hyperlinks:

Link Styling

use this code:

You can go to the  #ref(<label1>, supplement: "first slide") or  maybe to @label2 if that suits you better.

Then just adorn your headings with typst labels:

== Heading <label1>

#lorem(100)

== Another Heading <label2>

#lorem(100)

Note that you can either use the #ref function with a supplement of the text or the @label syntax

Previous
How to add a logo the first slide?
Copyright © mdwm
Made with Sphinx and @pradyunsg's Furo