8

In the non-printing characters documentation, I see two named characters that are largely undocumented: \[InvisiblePrefixScriptBase] and \[InvisiblePostfixScriptBase].

Interestingly, they have input aliases defined: [Esc]i-[Esc] and [Esc]-i[Esc].

What are they used for?

Mechanical snail
  • 2,422
  • 1
  • 16
  • 35
  • 2
    Related (possible dupe): http://mathematica.stackexchange.com/q/1/5 I'd say that they're mostly for typesetting purposes and for finer control of the placements and positioning of subscripts/superscripts. You might probably use one of these when you need a subscript/superscript that's not attached to any symbol. – rm -rf Dec 06 '12 at 07:20
  • 4
    Two examples of the first one are (1) TraditionalForm[Hypergeometric2F1[a, b, c, d]], and (2) this Q/A where it is used to typset ${n}C{r}$ – kglr Dec 06 '12 at 07:26
  • 2
    @kguler: So it seems like the Prefix one is meant as an invisible base character for sub-/superscripts that are typeset before the conceptual base character. But the Postfix one is still a mystery. – Mechanical snail Dec 06 '12 at 09:53
  • I have not come across any usage examples of \[InvisiblePostfixScriptBase] -- who knows? Maybe for right-to-left scripts it works similar to the Prefix one? – kglr Dec 06 '12 at 11:32
  • 3
    I use \[InvisiblePostfixScriptBase] to emulate the spaces and alignments in some tensor notions. In LaTeX it's usually done by \phantom command. Compare RowBox[{SubscriptBox["F","a"],SubsuperscriptBox["\[InvisiblePostfixScriptBase]","b","c"]}]//DisplayForm to LaTeX code F_{ab}^{\phantom{a}c}. – Silvia Dec 06 '12 at 12:07
  • @Silvia I feel like this comment is quite accurate answer, please consider posting it :) – Kuba May 02 '14 at 10:20
  • @Kuba Thanks :) Will do it when I am on a computer. – Silvia May 03 '14 at 09:12
  • @Silvia ok :- ) – Kuba May 12 '14 at 22:30

1 Answers1

2

As the comments to OP described, those invisible marks are usually used as placeholders / anchors for typesetting.

For example, we can use \[InvisiblePostfixScriptBase] to emulate the spaces and alignments in some tensor notations. In LaTeX it's usually done by the \phantom command: Compare RowBox[{SubscriptBox["F", "a"],SubsuperscriptBox["\[InvisiblePostfixScriptBase]"‌, "b", "c"]}] // DisplayForm to LaTeX code F_{ab}^{ \phantom{a} c }.

Vladimir Reshetnikov
  • 7,213
  • 27
  • 75
Silvia
  • 27,556
  • 3
  • 84
  • 164