#import "common.typ": *

#show: slides.with(
  authors:        [<NAME> -- 2089120],
  short-authors:  "<NAME>",
  title:          "The Typst language",
  subtitle:       "Advanced Topics in Programming languages presentation",
  short-title:    [#v(.5em) The Typst language],
  date:           "September 14, 2023",
  theme: bristol-theme(
    color:      unipd-red,
    logo:       "/images/unipd-logo.png",
    // Don't use watermarks, by using a blank image (`none` can't be used)
    watermark:  "/images/blank.png",
    secondlogo: "/images/blank.png",
  )
)

#set text(font: "Arial")

#show raw: itself => {
  set text(font: "Menlo")
  itself
}
// Add background to monospace text
#show raw.where(block: false): box.with(
  fill: luma(220),
  inset: (x: 3pt, y: 0pt),
  outset: (y: 8pt),
  radius: 4pt,
)
#show raw.where(block: true): block.with(
  fill: luma(220),
  inset: 10pt,
  radius: 10pt,
)

#show figure: itself => {
  set text(size: 16pt)
  itself
}

// Properly display case-insensitive matches
#show regex("(?i)\btex\b"): tex
#show regex("(?i)\blatex\b"): latex

#slide(theme-variant: "title slide")

#include("sections/markup-languages.typ")
#include("sections/typst.typ")
#include("sections/markup-mode.typ")
#include("sections/code-mode.typ")
#include("sections/compiler.typ")
#include("sections/improvements.typ")

#slide(title: "GitHub support")[
  #set text(size: .8em)
  #grid(columns: (2fr, 3fr), gutter: 1em,
    [
      - Pull request to add Typst support in GitHub repos
      - Needs more popularity
    ],
    figure(image("/images/popularity/comment.png"))
  )
]

#slide(title: "Popularity")[
  #figure(image(width: 60%, "/images/popularity/merged.png"))
  #uncover(2, figure(image(width: 60%, "/images/popularity/search.png")))
]

#slide(title: "Latest news")[
  #grid(columns: (auto, auto), gutter: 2em,
    figure(image("/images/popularity/syntax-highlighting.png")),
    align(center + horizon, figure(image(width: 70%, "/images/popularity/languages.png"))),
  )
]

#slide(title: "Sources")[
  - *<NAME> (typst co-creator) Master's thesis*: \
    #underline("https://www.user.tu-berlin.de/laurmaedje/programmable-markup-language-for-typesetting.pdf")
  - *Typst official documentation*: #underline("https://typst.app/docs/")
]

#wake-up[
  Thanks for the attention
]
