From 7ec4dbbac3713c8121efb4aad757703acbc41ce8 Mon Sep 17 00:00:00 2001 From: Antonio Date: Mon, 28 Oct 2024 17:08:35 +0100 Subject: [PATCH] Minor fixes --- README.md | 2 +- typslides.typ | 7 +++---- typst.toml | 2 +- utils.typ | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ddbf846..2a084a4 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ _Minimalistic [typst](https://typst.app/) slides!_ This is a simple usage example: ```typst -#import "@preview/typslides:1.1.0": * +#import "@preview/typslides:1.1.1": * // Project configuration #show: typslides.with( diff --git a/typslides.typ b/typslides.typ index 24d5826..fbf7e84 100644 --- a/typslides.typ +++ b/typslides.typ @@ -38,9 +38,7 @@ #let stress(body) = ( context { - text(fill: theme-color.get(), weight: "semibold")[ - #body - ] + text(fill: theme-color.get(), weight: "semibold")[#body] } ) @@ -49,7 +47,7 @@ set block( width: 100%, - inset: (x: .55cm, top: .5cm, bottom: .5cm), + inset: (x: .4cm, top: .5cm, bottom: .5cm), breakable: false, above: .1cm, below: .1cm, @@ -242,6 +240,7 @@ set text(size: 20pt) set par(justify: true) + set align(horizon) body } diff --git a/typst.toml b/typst.toml index c00f1d1..9224bb9 100644 --- a/typst.toml +++ b/typst.toml @@ -1,6 +1,6 @@ [package] name = "typslides" -version = "1.1.0" +version = "1.1.1" entrypoint = "lib.typ" compiler = "0.12.0" authors = ["Antonio Manjavacas "] diff --git a/utils.typ b/utils.typ index 6bb473a..5e5245d 100644 --- a/utils.typ +++ b/utils.typ @@ -54,7 +54,7 @@ 5% }, inset: .55cm, - text(white, weight: "semibold", size: 24pt)[#h(1cm) #title], + text(white, weight: "semibold", size: 24pt)[#h(.2cm) #title], ) }