How can I change the subscript to go right of <= instead of under it?

I would like to write something like this:
grafik
So first I tried $L <=_p A$, which results in the p going below the less or equal to. So the best solution I could come up with is <=#sub[p], which works, although I don’t really like the distance to the less or equal to and the missing distance to the next letter:
grafik

So in short, I would like to have a show rule, which replaces the <=_p in math mode with L <=#sub[p]. If there is a better solution to display the desired symbol that would of course be great!
I tried

#show "<=_p": it => [
  '<=#sub[p]'
]

which does not work. I think, it would have to be something like

#show sym.lt.eq: it => [
  #it#sub[p]
]

but because the “_p” of “<=_p” is not included in the it, it results in this:
grafik

Any help is appreciated.
Thank you in advance :slight_smile:

You can change that :slight_smile:

#show sym.lt.eq: math.scripts

$L <=_p A$

The scripts and limits functions change how sub- and superscripts attach to match content. Operators have a default for it, and with these functions you can change it.

1 Like

Thank you very much! This approach even fixes the spacing :+1:
grafik