How to add subscript in labels in App Designer Matlab

70 次查看(过去 30 天)
Hey, I want to add subscript/superscript in label text. Being new in the community, kindly help as I don't know much.
  1 个评论
Allen
Allen 2021-12-13
Shankar,
I would not consider may recommendation as an answer. However, until MathWorks adds all text elements to 'tex' and 'latex' interpreters for App Designer labels, I have been stacking labels to create the appearance of subscript and/or superscript text in my labels.
My primary label with spacing included:
My stacked labels. I reduced the font size for the labels displaying "min" and "max", then placed them over my primarly labels.
Hopefully this techinique or something similar will suffice until the interpreters can handle sub- and superscripts.

请先登录,再进行评论。

回答(2 个)

Cris LaPierre
Cris LaPierre 2018-12-26
App designer does not yet support an interpreter in all text elements. This post contains details on which elements supported the 'tex' and 'latex' interpreters as of 18a.
  8 个评论
Xingwang Yong
Xingwang Yong 2024-1-12
编辑:Xingwang Yong 2024-1-12
@Cris LaPierre Using label to fake a sucscripted text is an awkward solution. For checkbox, you can click the text to make the checkbox checked, in addition to click the box itself. However, if you use label to fake the text, the only option is to click the box itself. This inconsistent user experience between different checkboxes would apparently make the user confused. Not to mention how difficult it might be to locate a small box in a large UI.

请先登录,再进行评论。


Allen
Allen 2024-1-11
I am not sure what version it was introduced, but R2023b now includes an interpreter property for labels in App Designer.
Use the link below for information on how to use interpreters.

类别

Help CenterFile Exchange 中查找有关 Develop uifigure-Based Apps 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by