Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
A sample of a variable name containing a superscript and subscript in the math formatted region is provided in the attached Mathcad Prime 10 file. I would like to edit the superscript to make a new variable name. I can edit everything except the superscript. Please advise on how this can be done? Please see attached file for more information.
Solved! Go to Solution.
Mathcad dos not support variable names with superscripts.
What looks like superscript "a" is a "normal" sized character from the font used.
You can create that character either by inserting it from the Windows App "charmap"
or, as its the character with ASCII code 170 (unicode U+00AA) you can use the keyboard shortcut "ALT 0170" with numbers from the numeric keypad.
The fonts usually do only contain superscript number and a couple of letters (not all!) and some other symbols like an superscript underline, degree symbol, apostrophe, etc.
A superscript "a" can also be found as Unicode letter U+0363 but the letters there look more like coming from a sansserif font.
So the fazit is that you can use some superscript letters but its a bit cumbersome and you can't edit such a variable name the 'usual' way by simply typing from the keyboard.
Hi,
Superscripts do not form part of the definition of variable names in Prime
From the help:
Thank you. I appreciate your response.
Mathcad dos not support variable names with superscripts.
What looks like superscript "a" is a "normal" sized character from the font used.
You can create that character either by inserting it from the Windows App "charmap"
or, as its the character with ASCII code 170 (unicode U+00AA) you can use the keyboard shortcut "ALT 0170" with numbers from the numeric keypad.
The fonts usually do only contain superscript number and a couple of letters (not all!) and some other symbols like an superscript underline, degree symbol, apostrophe, etc.
A superscript "a" can also be found as Unicode letter U+0363 but the letters there look more like coming from a sansserif font.
So the fazit is that you can use some superscript letters but its a bit cumbersome and you can't edit such a variable name the 'usual' way by simply typing from the keyboard.
Thank you. I appreciate the explanation of how the "a" superscript was created in the sample in the Mathcad file. Very helpful.
Use Exponentiation Operator ^ 1. So any variable name with superscipt can use.
@ttokoro wrote:
Use Exponentiation Operator ^ 1. So any variable name with superscipt can use.
...but only when you evaluate it or use it in a calculation, not when you want to assign a value to it!!
IMHO this is a huge shortcoming and restriction.
Furthermore you have to create variables and assign them the value 1 if you intend to use them as a superscript and hide that assignment either in a collapsed region or to the right of the right margin. This can be a hindrance and a nasty source of errors, especially if the superscript is only to be one letter and a variable with the same name is already in use for other, real calculation purposes.
So using this method would be too much of a hassle for me ...
Thank you.
Thank you.
Hopefully a future release of Mathcad Prime will provide a means to use superscript text in variable names. However, until then, it is good to know of potential work-arounds.