I want to writing code listings with asterisk in-line not above line.

That is something like this:

enter image description here

But when I tried this:


I ended up getting this:

enter image description here

How do I fix this?


Try to make it in math mode ${}^{*}$ i. If you also need the asterisk to be tight to the letter i consider negative spaces.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.