How can I bolden 3 letters in a same line individually?

I am trying to make M, R and A bold in the following line

*M*ulti-*R*esolution *A*nalysis

that should reproduce something like Multi-Resolution Analysis, but instead it is giving me back in typst something undesired like this - Multi-Resolution Analysis. Although I made a work around using #strong() function.

#super(M)ulti-#super(R)esolution #super(A)nalysis

But is there any elegant way?

1 Like

The documentation says

To strongly emphasize content, simply enclose it in stars/asterisks (*). Note that this only works at word boundaries. To strongly emphasize part of a word, you have to use the function.

so your method is not a workaround, it’s the right way to do it :slight_smile:

(I assume you meant #strong[M]ulti-#strong[R]esolution #strong[A]nalysis)

1 Like

This doesn’t answer your exact question, but since it looks like this is in support of acronyms, it might make sense to use a package made for acronyms.

1 Like

You can shorten this a bit by using the syntax inside the separated content blocks:

#[*M*]ulti-#[*R*]esolution #[*A*]nalysis

Edit: a few more ways :)

2 Likes

Hi @rfarhaz, don’t forget to tick one of the responses if you got a satisfying answer. The answer you choose should usually be the response that you found most correct/helpful/comprehensive for the question you asked. Thanks!