Subscripts and Superscripts

In Corca, subscripts and superscripts are structured elements attached to a base object. They remain connected to the variable, number, or function they modify and can be edited without breaking the surrounding expression.

Subscripts and superscripts behave consistently across variables, numbers, and functions.

Subscripts

A subscript is typically used to identify versions, components, or positions of a variable. Common examples include indexed values, time steps, and labeled quantities: x1 x sub 1. This creates a variable with index 1.

You can enter a subscript by typing the underscore character _ after the base object. For example, by typingtemperature_ambient you get a variable labeled with the index ambient: temperatureambient temperature sub ambient.

Superscripts

A superscript is placed above a variable or expression. Superscripts are used for powers, labels, and notation. For example, x^2 results in the variable x x raised to the power of 2 2.

You create a superscript by typing the caret character ^ after the base object.

Editing subscripts and superscripts

Subscripts and superscripts can be edited directly. Select the index or exponent and type the new value.

Original: x1 x sub 1

Updated: x2 x sub 2

The variable updates immediately. You can also modify index and label settings using the right panel.

Subscripts and superscripts in imported content

Subscripts and superscripts imported from LaTeX or other formats are converted into structured elements.

Input:

(a+b)^2

Result:

The exponent remains attached to the grouped expression: (a+b)2 open paren a plus b close paren squared

Imported indices behave exactly like native ones.

Previous: Greek Letters

Next: Fractions