[Chimera-users] Question regarding 2dlabels in Chimera

Greg Couch gregc at cgl.ucsf.edu
Fri Nov 4 18:06:59 PDT 2022


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

On 11/4/2022 3:22 PM, Elaine Meng via Chimera-users wrote:
> 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 at 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 at cgl.ucsf.edu
>> Manage subscription: 
>> https://www.rbvi.ucsf.edu/mailman/listinfo/chimera-users
>
>
> _______________________________________________
> Chimera-users mailing list:Chimera-users at cgl.ucsf.edu
> Manage subscription:https://www.rbvi.ucsf.edu/mailman/listinfo/chimera-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rbvi.ucsf.edu/pipermail/chimera-users/attachments/20221104/8d039529/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2022-11-04 at 3.21.47 PM.png
Type: image/png
Size: 142033 bytes
Desc: not available
URL: <http://www.rbvi.ucsf.edu/pipermail/chimera-users/attachments/20221104/8d039529/attachment-0001.png>


More information about the Chimera-users mailing list