Display full version of the post: Creating Math Expression/Equation in ACAD 2014

dery
11.09.2024, 18:31
Can anyone help me please how do I create a math expression/equation such as attached image in AutoCAD 2014? Thank you
dery2024-09-11 18:32:32

Vladimir Michl
11.09.2024, 21:56
Do you mean the stacked text? Or the graph of it?The stacked text can be entered as:x1/y1in MText and confirming the stack prompt. Or selecting the text and picking Stack/Fraction in the context menu. If the "1" should be displayed as lower index, it may become more complicated and you will need to use formatting codes manually (or an OLE object).

Kent Cooper
11.09.2024, 22:36
Subscript inside a stacked fraction doesn't seem to be a possibility.  You can do this:but only because the superscript 2 is available as an ALT+ code [253 or 0178], and ALT+ characters can be included in what fraction-stacking will work with.  It's not really a superscript 2, but just an "image" of one.  There are a few other characters available as superscript-look like that, but not just anything.  I don't see any subscript types in the list of ALT+ codes.  The Symbol pull-down in the Mtext editor ribbon can get you to "Other" symbols in a character map, which seems to have a few subscript characters (varies with the font), but I didn't find numbers.

Kent Cooper2024-09-11 22:41:56

dery
12.09.2024, 05:59
So, what should I do? I can do the fraction by using stack, but I can't do the subscript. Or, I can do the subscrípt by using stack, but I can't do the fraction. You need to choose one of them.

Vladimir Michl
12.09.2024, 08:41
The subscript/superscript method is viable in most cases - just make sure you are using a font with the full Unicode character set (e.g. Arial Unicode or Times New Roman). Then e.g. the "subscript 1" is the Unicode character \U+2081.
Vladimir Michl2024-09-12 08:42:25

dery
12.09.2024, 11:29
What should I do with the Unicode character \U+2081? Can you tell me please how to do it?

Vladimir Michl
12.09.2024, 12:41
Just type it in the text - it will autoconvert to the subscript 1 (if you have the right font).

Kent Cooper
12.09.2024, 14:33
[QUOTE=Vladimir Michl].... the "subscript 1" is the Unicode character \U+2081. ....
[/QUOTE]
I hadn't thought of Unicode characters.  They work for this, with two drawbacks that I see, though they may well be worth the trouble:Not all fonts can deal with them;It's more complicated to edit them, such as to change from a subscript 1 to a subscript 2.

dery
12.09.2024, 15:01
What about the other numbers beside one?What its unicode codes are?What about tens, hundreds, thousands, and so on?

dery
13.09.2024, 09:23
I would like to create the subscript of 4 using Unicode code. I browse on Google of what is the Unicode code of subscript of 4 and the answer is "U+2084". The font I'm using is Times New Roman. You said, I need to just type the Unicode code of subscript of 4 which is "U+2084" in the text of AutoCAD. Why nothing is happened? Help me please.

Vladimir Michl
13.09.2024, 09:29
It is not "U+2084" but "\U+2084". See also:https://www.cadforum.cz/en/how-to-combine-fractions-and-subscripts-superscripts-in-mtext-tip14238

dery
13.09.2024, 15:00
When I add \ and finish editing the text, it disappears. What should I do?

Vladimir Michl
13.09.2024, 17:48
Yes, it should disappear and the subscript "1" should appear. If it doesn't (and you see just an empty rectangle or nothing), you probably don't have the right font. Choose Times New Roman for your current font style (in the STYLE command or font in the MText editor).

dery
14.09.2024, 08:26
The subscript I'm doing is 4. When I enter the Unicode of subscript of 4 after the "x" letter, it disappears. It doesn't display the subscript of number 4. And the font I use is Times New Roman. What should I do to make it appears?

Vladimir Michl
14.09.2024, 23:12
Probably a font issue (try a different one) - this is what you see with a full Unicode font (white) and with an incomplete one (blue):

dery
15.09.2024, 15:40
Yes, the blue one is same of what I'm experiencing. Is there any solutions for this problem? I don't want to use another font than Times New Roman.

Vladimir Michl
15.09.2024, 18:16
My Times New Roman (times.ttf) is 1.2MB long, version 7.0, installed probably as a part of MS Office 365, under Win10. But it should be included in Win10:https://learn.microsoft.com/en-us/typography/fonts/windows_10_font_list

dery
16.09.2024, 18:17
Why the subscript of 4 of mine get italic too? What I want is the x and y is the one that italic, the subscript of 4 is not italic.

dery
19.09.2024, 14:57
Hello?

Vladimir Michl
19.09.2024, 23:52
The italic style cannot be set/reset just for the index. Resp. it can but not through the standard MText UI.

dery
20.09.2024, 05:28
Can you tell me please step-by-step of how to do it?

Kent Cooper
20.09.2024, 19:54
[QUOTE=dery]... what is the Unicode code of subscript of 4 and the answer is "U+2084". .... Why nothing is happened? ....[/QUOTE]
You are missing the backslash before the U.

dery
21.09.2024, 05:06
How to make the subscript of 4 not italic?