I’m having an issue where I would like to use math formatting in a header, but have it show up as bold. When I try $ bold(n) $, it causes the math to be assigned a new equation number. When I try $bold(n)$, it doesn’t make it bold. When I use math.bold(“n”), it works, but I can’t seem to get it to work with subscripts. For example math.bold(“n_(“old”)”) causes a compilation error due to an unexpected comma.
Does Typst have a fundamental issue with inserting bold math objects into a table header, or am I just not getting the syntax correct?
Please take a look at the “how to” for some tips to improving your question:
This is easily found no matter where you are on the forum - there’s a FAQ link on the left of every page - even this one!
A few things that stand out to me are:
The title of this post should be a question
Properly formatting code. You are providing specific code examples and that is great. But if you look at your post the formatting has gotten screwed up. This is because the # character is used by the forum to indicate a tag, like Questions . To avoid that use the back tick character (`). More details about this are given in the link above
As for the question itself. The following code produces the screenshot below.
Is this enough information to apply to your specific use case? If not please post a complete minimal working example of your code that isn’t working. See here for why this is so helpful when seeking answers online. It really helps us to help you.