Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.9K Views
|
4 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How to place a subscript in the bottom left instead of in the bottom right?

I would like to make a subscript with MaTeX that is in the bottom left hand corner instead of in the bottom right hand corner. Is there a way to do this. I looked in the documentation for Subscript but couldn't find a function to write a subscript in the left-hand corner. I want to write something like xP with the x as a subscript as a symbol for the number of n-permutations from an x-set. I know I can use Ctrl+& for over bar and Ctrl+Shift+& for underbar and Ctrl+_ for subscript and Ctrl +^ for Superscript and Ctrl+^ then % to shift to the subscript box or vice versa but I'm not sure how to add a left subscript. I'm also curious how to add an upper left subscript. These positions are often used for writing isotopes like 12C with the 12 as an upper left superscript. I found a way to add for example 12 6 C as:

\!\(
TagBox[
StyleBox[
RowBox[{"Grid", "[", 
RowBox[{
RowBox[{"List", "[", 
RowBox[{
RowBox[{"List", "[", 
RowBox[{
RowBox[{"Style", "[", 
RowBox[{"\"\<12\>\"", ",", "Smaller"}], "]"}], ",", "\"\<C\>\""}], 
         "]"}], ",", 
RowBox[{"List", "[", 
RowBox[{
RowBox[{"Style", "[", 
RowBox[{"\"\<6\>\"", ",", "Smaller"}], "]"}], ",", "SpanFromAbove"}], 
         "]"}]}], "]"}], ",", 
RowBox[{"Rule", "[", 
RowBox[{"Alignment", ",", 
RowBox[{"List", "[", 
RowBox[{
RowBox[{"List", "[", 
RowBox[{"Right", ",", "Center"}], "]"}], ",", 
RowBox[{"List", "[", "Center", "]"}]}], "]"}]}], "]"}], ",", 
RowBox[{"Rule", "[", 
RowBox[{"Spacings", ",", 
RowBox[{"List", "[", 
RowBox[{"0", ",", "0"}], "]"}]}], "]"}]}], "]"}],
ShowSpecialCharacters->False,
ShowStringCharacters->True,
NumberMarks->True],
FullForm]\)

Is there a less verbose way to do this? I figured it out with

Grid[{{Null, P}, {Style[x, Smaller], 
      SpanFromAbove}}, Alignment -> {{Right, Center}, {Center}}, 
  Spacings -> {0, 0}]

I just figured out a simple way to do it! The Classroom Assistant Palette has the left subscript and superscript! This is much more helpful instead of using complex combinations of Grid and Spacing. The entry is under Typesetting.

POSTED BY: Peter Burbery
4 Replies

Is there a way to use keyboard shortcuts to enter it?

not that I am aware of

How would I add a superscript on the left?

You could replace Subscript in that snippet with Superscript or Subsuperscript. Beyond that you do have to use Grid or some variant

POSTED BY: Jason Biggs

How would I add a superscript on the left?

POSTED BY: Peter Burbery

Is there a way to use keyboard shortcuts to enter it?

POSTED BY: Peter Burbery
Row[{Subscript["\[InvisiblePrefixScriptBase]", "x"], "P"}]

is how I've always done it

POSTED BY: Jason Biggs
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard