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:
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:
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
You create a superscript by typing the double 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:
Updated:
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)^2Result:
The exponent remains attached to the grouped expression:
Imported indices behave exactly like native ones.
Previous: Greek Letters | Next: Fractions |