Problem

I want to style the heading with bold numbers and unbolded content.

![[bcc1040d05ba76428e482cc8780fce03_MD5.png]]

Solution

Code

Please add the given code above the target heading.

1
2
3
4
#show heading.where(level: 2): it => [
#counter(heading).display()
#text(weight: "regular")[#it.body] // The font size is not fixed.
]

Full example code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#set heading(numbering: "1.1")

#show heading.where(level: 2): it => [
#counter(heading).display()
#text(28pt, weight: "regular")[#it.body]
]

#counter(heading).update(4)

#heading(level:1)[Shape and dimensions]

#heading(level: 2, outlined: false)[The shapes and dimensions of plunger stoppers as shown in Figure 1 are as given in Table tab:1.] <sec:5.1>

The dimension d#sub[1] shall be specified by using the selected cartridges according to ISO 13926-1 and the selected seal as per ISO 13926-3. The system can then be validated as described in ISO 11608-3.

The dimensions that refer to the plunger stopper diameters (d#sub[1], d#sub[2]. d#sub[3]) are informative.

Output

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#set heading(numbering: "1.1")

#show heading.where(level: 2): it => [
#counter(heading).display()
#text(28pt, weight: "regular")[#it.body]
]

#counter(heading).update(4)

#heading(level:1)[Shape and dimensions]

#heading(level: 2, outlined: false)[The shapes and dimensions of plunger stoppers as shown in Figure 1 are as given in Table tab:1.] <sec:5.1>

The dimension d#sub[1] shall be specified by using the selected cartridges according to ISO 13926-1 and the selected seal as per ISO 13926-3. The system can then be validated as described in ISO 11608-3.

The dimensions that refer to the plunger stopper diameters (d#sub[1], d#sub[2]. d#sub[3]) are informative.