### Basic Custom First Slide Setup in diatypst Source: https://mdwm.org/diatypst/guides/first-slide.html Use this setup to disable the default title slide and prepare for custom content. Ensure page dimensions match your chosen ratio and layout. ```typst #import "@preview/diatypst:0.9.2": * #set page( footer: none, header: none, margin: 0cm, height: 10.5cm, // height is either 9cm, 10.5cm or 12cm width: 4/3*10.5cm, // width is your height * your ratio ) // Custom Title Slide Content goes here #show: slides.with( ..., first-slide: false, ... ) ``` -------------------------------- ### Typst Code Block Styling Source: https://mdwm.org/diatypst/styling.html This demonstrates how to include a styled code block in typst. The example uses python syntax highlighting. ```typst ```python // Example Code print("Hello World") ``` ``` -------------------------------- ### Typst Table Styling Source: https://mdwm.org/diatypst/styling.html This is an example of creating a styled table in typst using the `#table` function. It includes a header row and data cells. ```typst #table( columns: 3, [*Header*],[*Header*],[*Header*], [Cell],[Cell],[Cell], [Cell],[Cell],[Cell], ) ``` -------------------------------- ### Change First Slide Layout with Grid in diatypst Source: https://mdwm.org/diatypst/guides/first-slide.html Customize the first slide's layout using a grid to arrange content, such as text and an image, side-by-side. This example uses a two-column grid with different background colors. ```typst #import "@preview/diatypst:0.9.2": * #set page( footer: none, header: none, margin: 0cm, height: 10.5cm, // height is either 9cm, 10.5cm or 12cm width: 4/3*10.5cm, // width is your height * your ratio ) // Custom Slide #grid( columns: 2, fill: (blue.darken(50%), white), { block( width: 100%, height: 100%, inset: 1cm, text(2.0em, weight: "bold", fill: white)[diatypst] + linebreak() + align(bottom, text(1.4em, fill: white, weight: "bold", "easy slides in typst")) ) }, { block( width: 100%, height: 100%, inset: 1cm, align(horizon+right, image("icon.png", width: 100%)) ) } ) // Now call the diatypst funcion #show: slides.with( ..., first-slide: false, ... ) ``` -------------------------------- ### Add Logo to Default Slide Styling in diatypst Source: https://mdwm.org/diatypst/guides/first-slide.html Integrate a custom first slide with a logo at the bottom while retaining default styling elements. This example demonstrates adding text and an image to the first slide. ```typst #import "@preview/diatypst:0.9.2": * #set page( footer: none, header: none, margin: 0cm, height: 10.5cm, // height is either 9cm, 10.5cm or 12cm width: 4/3*10.5cm, // width is your height * your ratio ) // Custom First Slide: #block( inset: 0.8cm, fill: blue.darken(50%), width: 100%, height: 60%, align(bottom)[ #text(2.0em, weight: "bold", fill: white)[Your Title] ] ) #block( height: 30%, width: 100%, inset: (top:0cm, bottom:0.8cm, x:0.8cm), text(1.4em, fill: blue.darken(50%), weight: "bold", "Your subtitle") + linebreak() + text(1.1em, "a date maybe?") + align(right, image("icon.png", height: 100%)) ) // Now call the diatypst funcion #show: slides.with( ..., first-slide: false, ... ) ``` -------------------------------- ### Initialize Diatypst Presentation Source: https://mdwm.org/diatypst/quickstart.html Import the diatypst package and configure the slides settings. This is required for all presentations. ```typst #import "@preview/diatypst:0.9.2": * #show: slides.with( title: "Diatypst", // Required subtitle: "easy slides in typst", date: "01.07.2024", authors: ("John Doe") ) ... ``` -------------------------------- ### Create Presentation Content with Sections and Slides Source: https://mdwm.org/diatypst/quickstart.html Structure your presentation content using Typst headings. Level-one headings create new sections, and level-two headings create new slides. Alternatively, use `#pagebreak()` for manual slide creation. ```typst ... = First Section == First Slide #lorem(20) ``` -------------------------------- ### Quarto YAML Frontmatter for Typst Output Source: https://mdwm.org/diatypst/quarto.html Configure your qmd file's YAML frontmatter to use the diaquarto-typst format. Options like layout, ratio, and title-color can be specified. ```yaml title: "Untitled" ... format: diaquarto-typst: layout: medium # small, medium, large ratio: 16/9 # any ratio possible title-color: "013220" # Any Hex code for the title color (without #) ``` -------------------------------- ### Add diaquarto Quarto Extension Source: https://mdwm.org/diatypst/quarto.html Use this command to add the diaquarto extension to your Quarto project. This enables the creation of Typst documents via Quarto. ```bash quarto add skriptum/diatypst/diaquarto ``` -------------------------------- ### Typst List Styling Source: https://mdwm.org/diatypst/styling.html Demonstrates creating both unnumbered and numbered lists in typst. Nested lists are also supported. ```typst // unnumbered - A - AAA - B // or numbered 1. AAA 2. BBB 3. CCC ``` -------------------------------- ### Assign Labels to Headings Source: https://mdwm.org/diatypst/guides/link-slide.html Adorn your headings with Typst labels using the `