Skip to main content

I like using subscripts a lota lot. However, it is regrettably not possible to do, for example:

myfunction[Supscript[xmyfunction[Subscript[x,1]_] := Supscript[xSubscript[x,1] +1 

where instead of the subscript, I would use Ctrl+_ to make the subscript. See below

enter image description here

Is there a way around this?

I like using subscripts a lot. However, it is regrettably not possible to do for example:

myfunction[Supscript[x,1]_] := Supscript[x,1] +1 

where instead of the subscript, I would use Ctrl+_ to make the subscript. See below

enter image description here

Is there a way around this?

I like using subscripts a lot. However, it is regrettably not possible to do, for example:

myfunction[Subscript[x,1]_] := Subscript[x,1] +1 

where instead of the subscript, I would use Ctrl+_ to make the subscript. See below

enter image description here

Is there a way around this?

Source Link
Patrick.B
  • 1.6k
  • 7
  • 13

Function definition with sub (super) cripted variables

I like using subscripts a lot. However, it is regrettably not possible to do for example:

myfunction[Supscript[x,1]_] := Supscript[x,1] +1 

where instead of the subscript, I would use Ctrl+_ to make the subscript. See below

enter image description here

Is there a way around this?