|
|
Rank: Member
Joined: 9/18/2009 Posts: 21 Location: Huntsville, AL -USA-
|
How would I format text to be superscript or subscript using StyleVision?
Thanks, Sacha
|
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
There are multiple ways to do so. If your only output is HTML, you can simply enclose your text with SUP or SUB elements correspondingly. Just select the text and use right-mouse menu "Enclose with User Defined Element" and then type SUP or SUB.
A more advanced and compatible with all outputs method is to use a combination of smaller font size, for example, "x-small" and vertical-align "bottom" or "top" correspondingly.
|
|
Rank: Member
Joined: 9/18/2009 Posts: 21 Location: Huntsville, AL -USA-
|
Thanks for your quick reply, Vlad.
I don't have that menu option (see attachment, I am using StyleVision 2009). I tried to simply enclose the "(content)" with HTML "<SUP>" tags, but that caused it to just render the output as "<SUP>content</SUP>" not as raised superscript.
Thanks, Sacha korell attached the following image(s):

|
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
Yes, the first solution uses a new feature in v2010. The second should be also possible with v2009.
|
|
Rank: Member
Joined: 9/18/2009 Posts: 21 Location: Huntsville, AL -USA-
|
I tried the second method, but it didn't quite work for PDF output. The font seemed smaller, but "vertical-alignment = top" was apparently ignored. I then tried "vertical-alignment = super" and it worked just fine for both HTML and PDF output.
Thanks, Sacha
|
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
Oh yes, vertical-aligment="super" and "sub" are the better values for this purpose!
|
|
|
guest |