# Subscripting and superscripting in Xeno

#### Wendy

Joined Mar 24, 2008
22,474
@jrap
I would like to show fractions like 1/3. That was done with superscripting and subscripting in a word processor.

Last edited:

#### dl324

Joined Mar 30, 2015
12,929
How about this? $$\frac{1}{3}$$

#### Wendy

Joined Mar 24, 2008
22,474
$$\frac{V}{T}$$ = $$\frac{I}{C}$$
Better.

#### jpanhalt

Joined Jan 18, 2008
11,088
$$\frac{1}{3}$$

$$\frac{1}{3}$$

#### Wendy

Joined Mar 24, 2008
22,474
$$\frac{V}{T}=\frac{I}{C}$$

Another test. I like this more I think.

#### Wendy

Joined Mar 24, 2008
22,474
[$$\frac{1}{3}Vcc$$

Last edited:

#### WBahn

Joined Mar 31, 2012
26,398
$$\frac{V}{T}$$ = $$\frac{I}{C}$$
Better.

View attachment 223710
The \ followed by and open or close paren/bracket no longer works reliably in many browsers. In the version of Chrome I'm using your code didn't render the parens at all (and note that you are missing the open paren on the right side in your image capture). I think this is more related to the \ escape sequences being interpreted directly as a higher precedence. I don't know if this is a browser-thing or a Xenforo-thing.

It's best to use \left( and \right)

So:

\left( \frac{V}{T} \right) = \left( \frac{I}{C} \right)

yields

$$\left( \frac{V}{T} \right) = \left( \frac{I}{C} \right)$$

#### WBahn

Joined Mar 31, 2012
26,398
$$Iin= \frac{Vin}{R1}$$
I would think you would want to subscript the "in" and the "1":

$$I_{in}= \frac{V_{in}}{R_{1}}$$

If you only have a single character that is being sub- or super-scripted, you don't need the curly braces. Omitting them can make it a bit cleaner to read, but a common mistake is then later adding an additional character without adding the curly braces that are now needed.

#### Wendy

Joined Mar 24, 2008
22,474
I'm in the process of figuring things out,

#### Wendy

Joined Mar 24, 2008
22,474
What do the left/right commands do?

#### WBahn

Joined Mar 31, 2012
26,398
What do the left/right commands do?
The basically create matching delimiters. In many situations they could be omitted. But now that has become unreliable. It may have to do with input validation being used to prevent cross-site scripting, but I don't know that for sure.