How to override the behavior of '=' (heading)?

#set text(
  font: "New Computer Modern",
  size: 12pt
)

How can I override the font size of =, ==, ===, … so that they all obey the size set in #set text? Also, is the line spacing between a = and a non-= same as the global setting? Are there any other special treatments that = gets?

What a = or == in the source file does is create a heading.

The styling of a heading can be controlled with show rules:

= Normal Level 1
== Normal Level 2

#show heading: set text(1.5em)

= Larger Level 1
== Larger Level 2

#show heading: set block(above: 0mm)
#show heading: set text(spacing: 0mm)

= Larger and Spacing Changed Level 1
== Larger and Spacing Changed Level 2

image

There are a lot of spacing options available in text and block.

2 Likes