如何在标签上标(^)和下标(_)中创建文本 [英] How to make text in label superscript (^) and subscript (_)

查看:126
本文介绍了如何在标签上标(^)和下标(_)中创建文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要标签有cm ^ 2和M_1这样的文字。我怎么做?现在我使用了两个标签cm和一个2,第一个是10号,第二个是7,我移动标签看看我想要的。然后将第二个放在前面并将背面颜色设置为透明。



有些程序允许使用字符串:M_ {\rm 1},你得到的1下标为M。

解决方案

我已经通过将其分为两部分来解决这个问题,下标部分的部分较小,并且它位于第一个标签的正确位置旁边。


< blockquote>标签控件使用单一字体,但您可以包含该字体中可用的上标字符。检查Windows字符映射应用程序以查看您需要的字符是否可用。例如,我能够使用以下文本创建标签:Label²


I need the lable to have text like "cm^2" and "M_1". How do i do that? For now i used two labels "cm" an "2", first was size 10, second was 7 and i move the labels to look how i wanted. And put the second one to front and set the back color under web to transparent.

Some of the programs allow to use string like: M_{\rm 1} and you get the "1" subscripted to "M".

解决方案

I have fixed this by diving this into 2 parts and subscripted part has smaller part and it's put next to first label in the right position.


The label control uses a single font, but you can include superscript characters that are available in that font. Check the Windows Character Map application to see whether the characters you require are available. For example, I was able to create a label with the text: Label².


这篇关于如何在标签上标(^)和下标(_)中创建文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆