Verified Commit 272e9adc authored by Ivan Kushpel's avatar Ivan Kushpel 🔥
Browse files

add customizability to the title page

parent 8d3a2ef8
Loading
Loading
Loading
Loading
+35 −4
Original line number Diff line number Diff line
@@ -15,11 +15,26 @@
/// Inserts a title page.
/// -> content
#let title(
  /// Institution under which the thesis is published.
  ///
  /// If `auto`, then a default for FI MUNI is used.
  /// -> content | auto
  institution: auto,
  /// Logo of the institution under which the thesis is published.
  ///
  /// If `auto`, then a default for FI MUNI is used.
  /// -> content | auto
  logo: auto,
  /// Title of the thesis.
  ///
  /// If `auto`, then the provided template metadata is used.
  /// -> content | auto
  title: auto,
  /// Thesis type shown before the author.
  ///
  /// If `auto`, then the default of `[Bachelor's Thesis]` is used.
  /// -> content | auto
  thesis: auto,
  /// Author of the thesis.
  ///
  /// If `auto`, then the provided template metadata is used.
@@ -43,21 +58,37 @@
    date = context query(<fityper-metadata-date>).first().value
  }

  if institution == auto {
    institution = [
      #text(15pt, smallcaps[Masaryk University]) \
      #text(13pt, smallcaps[Faculty of Informatics])
    ]
  }

  if logo == auto {
    logo = [
      #image("../../assets/fi_znak-cb.svg", width: 50mm, height: 50mm)
    ]
  }

  if thesis == auto {
    thesis = [Bachelor's Thesis]
  }

  set text(hyphenate: false)
  binding-pagebreak(preamble: true)
  page[
    #align(center)[
      #v(10%)
      #text(15pt, smallcaps[Masaryk University]) \
      #text(13pt, smallcaps[Faculty of Informatics])
      #institution
      #v(5%)
      #image("../../assets/fi_znak-cb.svg", width: 50mm, height: 50mm)
      #logo

      #v(1fr)

      #text(24pt, smallcaps(title))
      #v(5%)
      #text(16pt, smallcaps[Bachelor's Thesis]) \
      #text(16pt, smallcaps(thesis)) \
      #text(16pt, emph(author))

      #v(1fr)
+1 −1
Original line number Diff line number Diff line
[package]
name = "fiquill"
version = "0.3.3"
version = "0.3.4"
entrypoint = "src/lib.typ"
authors = ["Ivan Kushpel"]
license = "BSD-3-Clause"