The code
(X_j^i)
places i and j after X, but I'm unable to find any help on placing them before.(X_j^i)
places i and j after X, but I'm unable to find any help on placing them before.NEW: TikZ book now 40% off at Amazon.com for a short time.
^
and _
as modifiers of the previous argument, but functions on the character that succeeds it. The code $_jX$
will produce a subscripted j before an X, and $^jX$
will do the same with a superscript.$^i_jX$
.$^AP = ^BP^A_BT$
(a common linear algebra problem in^A
with the P
just before it and not the T
following it as it should. the ^B
will be disassociated from anything and a space will be inserted after it and before the following P
.\usepackage{amsmath}
which will provide you with \sideset{}{}
that modifies the item FOLLOWING it.$\sideset{^i_j}{}X
. My desired solution is $\sideset{^A}{}P = \sideset{^B}{}P\sideset{^B_A}{}T$
.\sideset
is ONLY designed to be used with large operators such as \sum
and not on normal symbols.\usepackage{tensor}
and then $\tensor*[^A]{P}{} = \tensor*[^B]{P}{}\tensor*[^A_B]{T}{}$
will do the job.A lot of fuss about nothing. Do me a favour and don't bluster here.jwiegley wrote:[…] Basically... LaTeX has a HUGE glaring absence of a commonly needed math typesetting operation. Nice job. All you Chemistry ppl can go take a leap too; why would you ever need this functionality in describing your field? […]
Code: Select all
\,_2F_1
\mathstrut
to write the hypergeometrical function:
Code: Select all
$\mathstrut_1 F_1$
{^{pre-superscript}_{pre-subscript}}
is the "correct" way to apply a pre-super or sub script to a non-operator symbol. (\sideset
is only for operators.)${_2}F_1$
or ${^i_j}X$
or ${^A}P = {^B}P{^B_A}T$
, or alternatively ${}^i_jX$
.$\,^i_jX$
creates an unwanted space and $\mathstrut^i_j$
creates an unwanted empty box which sets the height to that of a parentheses.{}
(or applying after) disassociates them from the previous symbol so they float. They are not technically associated to the symbol that comes after either though, so the formatting will often still look non-preferable.fourIdx{pre-up}{pre-down}{post-up}{post-down}
and this allows for several preferable options for pre & post super/sub scripts. So you'd use $\fourIdx{i}{j}{}{}X$
.tensor does exactly the same.Bbl wrote:[…] Fortunately there is a package which has been written specifically to solve to the problem which jwiegley identified. This the fourIdx package: […]
tensor works extremely well for a wide variety of subscript/superscript applications. For this one in particular, you would just uselocalghost wrote:tensor does exactly the same.
Code: Select all
\tensor[^{pre-superscript}_{pre-subscript}]{object after scripts}{}
NEW: TikZ book now 40% off at Amazon.com for a short time.