How to insert "X to the power of 2" in my graph?

Post questions on how to use or achieve an effect in Inkscape.
EigenGoofy
Posts: 2
Joined: Fri Jun 18, 2010 10:38 am

How to insert "X to the power of 2" in my graph?

Postby EigenGoofy » Fri Jun 18, 2010 10:49 am

For example, draw a box in which I insert "X^2".

Or draw a box and put "R_1" on it to represent electrical resistence. How do I do these please? Thank you.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to insert "X to the power of 2" in my graph?

Postby brynn » Mon Jun 21, 2010 6:07 am

Welcome to InkscapeForum!

I guess it sounds like you are looking for the Text tool, although that seems too simple, and maybe you are asking something else? But if it's the Text tool that you indeed are looking for, be sure and use the Text and Font dialog rather than the Text tool control bar. The text control bar is a bit buggy.

If you're asking about finding the proper characters, that may in part depend on the font that you use. In all fonts (except for the wingding, dingbat kind of font) you can use the x, ^, and 2 characters. Some fonts may offer X or other characters with some superscripted numbers (as you would write by hand). I thought the Text and Font dialog might offer super- or subscript options, but I just looked and don't see any such. (OT: I think I might submit a wish list "bug" report for that.)

Anyway, if that doesn't answer you question, or you have more, please don't hesitate to reply :D

User avatar
tomh
Posts: 218
Joined: Sat Feb 14, 2009 10:14 pm

Re: How to insert "X to the power of 2" in my graph?

Postby tomh » Mon Jun 21, 2010 11:28 pm

If you meen is it possible to use subscrips and supperscripts while using the text tool ( :tool_text: ), there is a method although it isn't that easy:

1) Ensure the text is regular text not the non-standerd flowed text: seetavs gudefor diffrence
2) you have to manually select the text to become superscript and change its size using the font size dropdown menu
3)Use the kerning tools (Alt + arrow keys) to move the smaller text up or down appropiatly.

hope that helps anyway.

EigenGoofy
Posts: 2
Joined: Fri Jun 18, 2010 10:38 am

Re: How to insert "X to the power of 2" in my graph?

Postby EigenGoofy » Tue Jun 22, 2010 1:55 pm

brynn wrote: (OT: I think I might submit a wish list "bug" report for that.)


Yes, the submission is very necessary. Thank you!

If you meen is it possible to use subscrips and supperscripts while using the text tool ( ), there is a method although it isn't that easy:

1) Ensure the text is regular text not the non-standerd flowed text: seetavs gudefor diffrence
2) you have to manually select the text to become superscript and change its size using the font size dropdown menu
3)Use the kerning tools (Alt + arrow keys) to move the smaller text up or down appropiatly.


Yes, the method works! Thank you!

As far as I know, the inkscape only supports the input from Latex system, however, such system is notoriously difficult to learn and setup. An easy way I found to input mathematical notations is to use Mathtype to input the notations to Powerpoint, from which can generate picture in various formats, then use inkscape to open the picture and modify if necessary.

I wish the inkscape would directly support Mathtype :!:

dvlierop
Posts: 139
Joined: Sat Sep 08, 2007 4:25 am

Re: How to insert "X to the power of 2" in my graph?

Postby dvlierop » Wed Jun 23, 2010 7:00 am

If this is about the sub- and superscripts, then have a look at the upcoming v0.48 (prereleases are already available). If has a greatly improved text tool!

see http://wiki.inkscape.org/wiki/index.php ... #Text_Tool

"The text toolbar has been overhauled with many bug fixes and improvements. One can now directly access a number of text layout parameters:

* "Line Spacing:" Distance between baselines of adjacent lines.
* "Letter Spacing:" Spacing between letters.
* "Word Spacing:" Spacing between words.
* "Horizontal kerning"
* "Vertical shift"
* "Character rotation"

In addition, support has been added for superscripts and subscripts.


This work was sponsored in part by Inkscape users through LinuxFund.org. "

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to insert "X to the power of 2" in my graph?

Postby brynn » Fri Jun 25, 2010 9:53 am

Oh that is awesome news, dvlierop!
Thanks for sharing.

badinsults

Re: How to insert "X to the power of 2" in my graph?

Postby badinsults » Thu Sep 02, 2010 11:49 am

dvlierop wrote:If this is about the sub- and superscripts, then have a look at the upcoming v0.48 (prereleases are already available). If has a greatly improved text tool!

see http://wiki.inkscape.org/wiki/index.php ... #Text_Tool

"The text toolbar has been overhauled with many bug fixes and improvements. One can now directly access a number of text layout parameters:

* "Line Spacing:" Distance between baselines of adjacent lines.
* "Letter Spacing:" Spacing between letters.
* "Word Spacing:" Spacing between words.
* "Horizontal kerning"
* "Vertical shift"
* "Character rotation"

In addition, support has been added for superscripts and subscripts.


This work was sponsored in part by Inkscape users through LinuxFund.org. "


Although it is great that they added superscript and subscript support, I just installed version 0.48 and did not find any indication in either the wiki or the manual pages on how to actually implement superscripts and subscripts in text. Any help?

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: How to insert "X to the power of 2" in my graph?

Postby ~suv » Fri Sep 03, 2010 11:43 am

badinsults wrote:I just installed version 0.48 and did not find any indication in either the wiki or the manual pages on how to actually implement superscripts and subscripts in text. Any help?
Just highlight the character(s) you want to format as super- or subscript and press the button on the text tool controls bar (it acts as toggle: press again and the sub/superscripted characters are formatted as normal text).
Attachments
text-formatting-048.png
text-formatting-048.png (22.32 KiB) Viewed 6538 times


Return to “Help with using Inkscape”