IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Superscript/Subscript? Options · View
korell
Posted: Monday, November 9, 2009 2:58:38 PM
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
vlad
Posted: Monday, November 9, 2009 3:09:48 PM
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.
korell
Posted: Monday, November 9, 2009 6:18:02 PM
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):
StyleVisionContextMenu.jpg

vlad
Posted: Monday, November 9, 2009 9:31:56 PM
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.
korell
Posted: Monday, November 9, 2009 10:52:59 PM
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
vlad
Posted: Tuesday, November 10, 2009 6:25:01 AM
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!
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.