Subscript and superscript?

PeterBJ

Printer VIP
Platinum Printer Member
Joined
Nov 27, 2010
Messages
5,055
Reaction score
4,896
Points
373
Location
Copenhagen Denmark
Printer Model
Canon MP990
When I was typing an answer I probably hit control instead of shift and saw that my typed text changed to superscript. I intended to write: "United Office is a Lidl brand", but this is what my typo produced, click to enlarge:

Superscript.jpg

Using subscript and superscript would be very handy when writing chemical formulas and equations, so you could write H2O or P=I^2xR properly.

I have tried to reproduce the toggling to superscript, but without luck. What are the commands to toggle subscript and superscript, please?
 
Last edited:

Support

Print Addict
Staff member
Joined
Sep 24, 2011
Messages
103
Reaction score
140
Points
183
@Nifty Is there a command that members can use for subscript and superscript?
 

CakeHole

Print Addict
Joined
Jun 25, 2014
Messages
615
Reaction score
455
Points
163
Location
United Kingdom
Printer Model
Canon MP610
Hmm if it is like other forums this should work...
[sub]subscript[/sub]
[sup]superscript[/sup]

But it does not :(

The command you used though of Ctrl L (thats how you did it ;) ) results in superscript in the editor but once you post the forum does not display it. I suspect a plugin to the xenforo software the forum uses is either not installed or something wrong with the install, or features like subscript and superscrip have not been set up.
Subscript is basically tiny text aligned to the bottom of regular text rather than to the top if that makes sense and Superscript aligns to the top (what the Ctrl L command kinda does but does not fully work).

For maths equations you ideally want the what is called LATEX bbcode installed, with that typing something such as....
[LATEX] c=\sqrt{a^2+b^2} [/latex]
would be displayed in the forum as...
mimetex.cgi

(^^^ thats a copy and pasted image before you get excited, the LATEX bbcode does not work either)
 
Last edited:

PeterBJ

Printer VIP
Platinum Printer Member
Joined
Nov 27, 2010
Messages
5,055
Reaction score
4,896
Points
373
Location
Copenhagen Denmark
Printer Model
Canon MP990
Thanks for the info. Nice trick with the inserted image. I might also use that trick :)
 
Last edited:

stratman

Printer VIP
Platinum Printer Member
Joined
Apr 19, 2007
Messages
8,712
Reaction score
7,163
Points
393
Location
USA
Printer Model
Canon MB5120, Pencil
I thought that forum member Support (above post) was Nifty with two different names. Learning something new all the time.
 

CakeHole

Print Addict
Joined
Jun 25, 2014
Messages
615
Reaction score
455
Points
163
Location
United Kingdom
Printer Model
Canon MP610
Thanks for the info. Nice trick with the inserted image. I might also use that trick :)

The latex command would be very useful for maths like equations... The example i used of...
[LATEX] c=\sqrt{a^2+b^2} [/latex]
without the latex command and only subscript and superscript implemented would mean you have to enter all this (MINUS THE SPACES ive inserted between the bbcodes to show whats typed obviously ;) ) with conventional bbcodes to get the same result as the copy and pasted image....
[ i ]c[ /i ] = \ sqrt[ i ]a[ /i ][ sup ]2[ /sup ]+[ i ]b[ /i ][ sup ]2[ /sup ]

PS: Yes before you ask im one of those people that with a quick bit of thought can work out what bbcodes i need but i am often far to lazy to use them anyway lol
 
Last edited:

The Hat

Printer VIP
Platinum Printer Member
Joined
Jan 18, 2010
Messages
15,617
Reaction score
8,691
Points
453
Location
Residing in Wicklow Ireland
Printer Model
Canon/3D, CR-10, CR-10S, KP-3
I am left in the halfpenny place when it comes to all of this coding thing… :barnie Just dumb I guess.... :idunno
 

CakeHole

Print Addict
Joined
Jun 25, 2014
Messages
615
Reaction score
455
Points
163
Location
United Kingdom
Printer Model
Canon MP610
Not sure if it will help Nifty, Support and any other staff members and they may already be aware of it but...
http://xenforo.com/help/add-ons/
may be a way to add more formatting, bbcodes and options in general to the forum, assuming the version of xenforo the forum uses is compatible with the plugins.
 

Nifty

Printer VIP
Administrator
Joined
Nov 3, 2004
Messages
3,046
Reaction score
1,405
Points
337
Location
Bay Area CA
Printer Model
CR-10, i560 ,MFC-7440N
I looked for addons that might add this functionality to the editor, but I couldn't find anything. :(

There may be a way to add it to the bbcode editor, but that's also been elusive and may take quite a bit of programming.

In the interim, any other workarounds would probably be the best bet.
 

CakeHole

Print Addict
Joined
Jun 25, 2014
Messages
615
Reaction score
455
Points
163
Location
United Kingdom
Printer Model
Canon MP610
Yeah i had a look in more detail after i posted the only thing i could find was...
http://xenforo.com/community/resources/bbcodes-buttons-manager-advanced-bb-codes-pack.1428/

Looks as though it may not be in English so could be a pain to use and is a few years old. Does seem in some regard to have latex and other bbcode functions (See about half way down the page). Other down side is some features only seem to be demo in nature :(

A shame... I wonder if from reading that vbulletin plugins in general would be compatible with xenforo software or if they require modification???
 
Top