How can I use skew function in math mode?

Something like this works - you can see a noticeable difference between the zeros:

$#[*0*]0$

I cannot get italic to work though for numbers, any ideas how?

For italic digits I think you need to switch to the text font (rather than the math font), for example:

#let italic = text.with(font: "Libertinus Serif", style: "italic")
$ 0 italic(0) $

image

1 Like

Nice one! I would have had no idea otherwise.

I wish it were possible to use the shorthand, which is more readable, would a modification to Typst itself be necessary for this?

#let italic = text.with(font: "Libertinus Serif", style:"italic")
$#[_0_]$
$italic(0)$

Hmm interesting, for me it works this way:

// even without this! #let italic = text.with(font: "Libertinus Serif", style:"italic")
$$
#[_0_]
$$

That’s because it’s not inside an equation: you have an empty equation $$ above and another below :slight_smile:

2 Likes

Oh dear, I am Markdown hard-coded!