An alternative is to use unicode subscript and superscript characters. See https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts. You should be able to copy & paste what you need from that web page. With the caveat that Chimera's label font doesn't support all of those characters.
For example:
2dlabels create l1 xpos .5 ypos .5 text hello¹
works.
-- Greg
Hi Leonard,We're glad you like Chimera!
I *think* you would just need to make another 2D label with smaller size and then manually try to position it as a super- or subscript on the other label. At least, that's how I would do it. See screenshot attached. I just eyeballed the size and position. Of course they don't have to be in a different color than the primary label, I just did it that way to make them stand out as separate labels.
I hope this helps,Elaine
-----
Elaine C. Meng, Ph.D.
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco
On Nov 4, 2022, at 8:19 AM, leonard.maurer--- via Chimera-users <chimera-users@cgl.ucsf.edu> wrote:
Hi,
I am using Chimera for several years now and I really enjoy it, but there is one issue I could not solve until now:
Is it possible to have subscript/superscript for the 2D labels? For example something like “subunit A\_{1}” and “subunit A\^{1}” that I can type either in the 2d labels GUI text part or with the 2dlabels command, which gives me the raised and lowered versions of the “1”?
I am confident that this feature might be already implemented given Chimera’s impressive amount of tools, but I was not able to find it in the documentation so far…
Thanks in advance!
Best regards,
Leonard
_______________________________________________
Chimera-users mailing list: Chimera-users@cgl.ucsf.edu
Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimera-users
_______________________________________________ Chimera-users mailing list: Chimera-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimera-users