### Typst: Basic sidenote usage with custom numbering and padding Source: https://github.com/epicericee/typst-marge/blob/main/README.md An example showcasing the basic usage of the `sidenote` function from the Typst Marge package. It includes setting custom numbering and padding for sidenotes, along with configuring page margins and paragraph justification for a sample text with embedded sidenotes. ```typst #import "@preview/marge:0.1.0": sidenote #set page(margin: (right: 5cm)) #set par(justify: true) #let sidenote = sidenote.with(numbering: "1", padding: 1em) The Simpsons is an iconic animated series that began in 1989 #sidenote[The show holds the record for the most episodes of any American sitcom.]. The show features the Simpson family: Homer, Marge, Bart, Lisa, and Maggie. Bart is the rebellious son who often gets into trouble, and Lisa is the intelligent and talented daughter #sidenote[Lisa is known for her saxophone playing and academic achievements.]. Baby Maggie, though silent, has had moments of surprising brilliance #sidenote[Maggie once shot Mr. Burns in a dramatic plot twist.]. ``` -------------------------------- ### Typst: Configure sidenote with auto page width Source: https://github.com/epicericee/typst-marge/blob/main/README.md This snippet demonstrates how to configure the Typst Marge package to correctly place sidenotes on pages with automatically determined widths. It requires importing the `marge` package and setting the page's background to the `container` provided by the package. ```typst #import "@preview/marge:0.1.0": sidenote, container #set page(width: auto, background: container) ... ``` -------------------------------- ### Customize Typst Sidenote Appearance Source: https://github.com/epicericee/typst-marge/blob/main/README.md This snippet demonstrates how to customize the appearance of sidenotes in Typst by adjusting font size and paragraph leading. It overrides the default formatting to apply new sizes, ensuring that the base default styles are not reapplied by dividing the desired size by the default size. ```typ #let sidenote = sidenote.with( format: it => { set text(size: 0.7em / 0.85) set par(leading: 0.4em / 0.5) it.default } ) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.