I would like my script to print a character with a subscript "c" or "d" (as, in Latex, K_c or E_d). However, I cannot find a way to do so. I could not find the corresponding code in the Unicode database. I found unicode for specific letters, but not 'c'
I tried using str.translance, and copy/paste a list of all subscripted letters from word, to no avail (The python script editor receives them as standard letters).
Note that there are already answers in this question when it comes to unicode characters Printing subscript in python
However, the subscript I am looking for have no unicode equivalent. Thus I cannot print them by invoking a unicode code. For the same reason, I cannot use str.maketrans
How can I get my script to display these two letters as subscript ?
from IPython.display import display, Latexthen display:display(Latex(f'$K_c$'))ordisplay(Latex(f'$E_d$')).