Print Page | Close Window

Creating Math Expression/Equation in ACAD 2014

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=14576
Printed Date: 12.Dec.2024 at 12:11


Topic: Creating Math Expression/Equation in ACAD 2014
Posted By: dery
Subject: Creating Math Expression/Equation in ACAD 2014
Date Posted: 11.Sep.2024 at 18:31
Can anyone help me please how do I create a math expression/equation such as attached image in AutoCAD 2014? Thank you





Replies:
Posted By: Vladimir Michl
Date Posted: 11.Sep.2024 at 21:56
Do you mean the stacked text? Or the graph of it?
The stacked text can be entered as:
x1/y1
in 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).



-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: Kent Cooper
Date Posted: 11.Sep.2024 at 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.


Posted By: dery
Date Posted: 12.Sep.2024 at 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.


Posted By: Vladimir Michl
Date Posted: 12.Sep.2024 at 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 Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: dery
Date Posted: 12.Sep.2024 at 11:29
What should I do with the Unicode character \U+2081? Can you tell me please how to do it?


Posted By: Vladimir Michl
Date Posted: 12.Sep.2024 at 12:41
Just type it in the text - it will autoconvert to the subscript 1 (if you have the right font).

-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: Kent Cooper
Date Posted: 12.Sep.2024 at 14:33
Originally posted by Vladimir Michl Vladimir Michl wrote:

.... the "subscript 1" is the Unicode character \U+2081. ....

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.


Posted By: dery
Date Posted: 12.Sep.2024 at 15:01
What about the other numbers beside one?
What its unicode codes are?
What about tens, hundreds, thousands, and so on?


Posted By: dery
Date Posted: 13.Sep.2024 at 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.




Posted By: Vladimir Michl
Date Posted: 13.Sep.2024 at 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


-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: dery
Date Posted: 13.Sep.2024 at 15:00
When I add \ and finish editing the text, it disappears. What should I do?


Posted By: Vladimir Michl
Date Posted: 13.Sep.2024 at 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).

-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: dery
Date Posted: 14.Sep.2024 at 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?


Posted By: Vladimir Michl
Date Posted: 14.Sep.2024 at 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):




-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: dery
Date Posted: 15.Sep.2024 at 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.


Posted By: Vladimir Michl
Date Posted: 15.Sep.2024 at 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



-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: dery
Date Posted: 16.Sep.2024 at 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.



Posted By: dery
Date Posted: 19.Sep.2024 at 14:57
Hello?


Posted By: Vladimir Michl
Date Posted: 19.Sep.2024 at 23:52
The italic style cannot be set/reset just for the index. Resp. it can but not through the standard MText UI.

-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: dery
Date Posted: 20.Sep.2024 at 05:28
Can you tell me please step-by-step of how to do it?


Posted By: Kent Cooper
Date Posted: 20.Sep.2024 at 19:54
Originally posted by dery dery wrote:

... what is the Unicode code of subscript of 4 and the answer is "U+2084". .... Why nothing is happened? ....
You are missing the backslash before the U.


Posted By: dery
Date Posted: 21.Sep.2024 at 05:06
How to make the subscript of 4 not italic?



Print Page | Close Window