Skip to content

[ Help ] Styling a title #18

Description

@XanderLeaDaren

Explanation of what you would try to achieve
Style the Heading of a frame, to be either bold, italics, small-caps, of other size, &c, for every type of declared frame.

What have you tried so far?

  • change the frame-style, or the styles.boxy, but I couldn’t find where to look (relatively new to Typst, maybe that’s why!)
  • manually change the styling like in the following section:

Code sample

#import "@preview/frame-it:2.0.0": *
#let (example,) = frames(example: ("", rgb("eaeaea")))
#show: frame-style(styles.boxy)
#example(numbering:none)[#text(10pt)[*Heading*]][
  Content
]

How would you have expected it to work?
Add a line in the definitions, like the following
#show frame-style-boxy.title: smallcaps
or
#show frame-it.where(frame-style: boxy): title => {strong(title)}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions