Skip to content

Commit

Permalink
typst logo defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonwoodhull committed Jan 6, 2025
1 parent 1f34e20 commit 478b555
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/advanced/typst/brand-yaml.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ In all formats, `logo` can be the path to a logo or the name of a `brand.logo` r
The Typst implementation also supports

`width`
: Width in CSS units
: Width in CSS units. Default `2in`.

`location`
: Location on the page in X and Y using CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align) and [`text-vertical-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align) keyword values, specifically
`left`, `center`, `right` and `top`, `middle`, and `bottom`.
The X and Y components are combined with a dash, e.g. `left-top`, `center-middle`
The X and Y components are combined with a dash, e.g. `left-top` (the default), `center-middle`, etc.
Applied as Typst [`align`](https://typst.app/docs/reference/layout/align/).

`padding`, `padding-top`, `padding-right`, `padding-bottom`, `padding-left`
: Amount of padding to add to each side of the logo, using CSS [`padding`](https://developer.mozilla.org/en-US/docs/Web/CSS/padding) conventions. Due to a limitation in the Lua implementation of YAML, multiple padding options are applied in alphabetical order instead of the order of the YAML object.
: Amount of padding to add to each side of the logo, using CSS [`padding`](https://developer.mozilla.org/en-US/docs/Web/CSS/padding) conventions. Due to a limitation in the Lua implementation of YAML, multiple padding options are applied in alphabetical order instead of the order of the YAML object. Applied as Typst [`block.inset`](https://typst.app/docs/reference/layout/block/#parameters-inset). Default `padding: 0.5in`.

## Typography

Expand Down

0 comments on commit 478b555

Please sign in to comment.