Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to format Superscript and Subscript for a symbol to the same vertical level??

202 views
Skip to first unread message

Nasser M. Abbasi

unread,
Oct 24, 2009, 2:43:40 AM10/24/09
to
Version 7

I wanted to write something like Superscript[Subscript[x, 1], 2] but have
the "2" and the "1" appear on the symbol x without one being pushed forward
more than the other.

This is trivial to do in latex, but gave up trying to do it in Mathematica.

I am actually trying to use Mathematica more to type set some math inside a
Text cell, and the above is one problem I find. I actually use the keyboard
and type Ctrl9 to open a math cell inside the text cell and type

x Ctrl ^2 spacebar Ctrl _1

and I get

2
(x )
1

when I want


2
x
1

I looked the all the Palettes also that come with Mathematica 7, but do not
see such a pattern to use?

thanks,
--Nasser


Nasser M. Abbasi

unread,
Oct 24, 2009, 2:43:50 AM10/24/09
to

>
> I am actually trying to use Mathematica more to type set some math inside
> a Text cell, and the above is one problem I find. I actually use the
> keyboard and type Ctrl9 to open a math cell inside the text cell and type
>
> x Ctrl ^2 spacebar Ctrl _1
>
> and I get
>
> 2
> (x )
> 1
>
> when I want
>
>
> 2
> x
> 1
>

I found a way, but an awkward way to do the above. Here are the steps

Ctrl-9 to open math cell (I am inside a text cell) then typed

x Ctrl[6] 2 (this is the same as Ctrl^2 for superscript

now I selected x again (did this to prevent the parenthesis from being
created) and typed Ctrl[-] 1 for subscript

But now the "2" and "1" are not on the same level, so now I selected the "2"
and typed Alt[Left] few times until it is aligned over the "1". Alt[left]
is Nudge Left (use the arrow key)

Ok, the output is ok, but too many steps to do, and I think Latex looks
little better? Here is screen shot for Mathematica and for latex to compare

http://12000.org/tmp/formating_oct_22_2009/Mathematica.PNG
http://12000.org/tmp/formating_oct_22_2009/latex.PNG

I hope there still a way to do this easier in Mathematica.

--Nasser

Helen Read

unread,
Oct 25, 2009, 1:09:30 AM10/25/09
to
Nasser M. Abbasi wrote:
>
> I actually use the keyboard
> and type Ctrl9 to open a math cell inside the text cell and type
>
> x Ctrl ^2 spacebar Ctrl _1
>
> and I get
>
> 2
> (x )
> 1
>
> when I want
>
>
> 2
> x
> 1
>
> I looked the all the Palettes also that come with Mathematica 7, but do not
> see such a pattern to use?

What you want is under Typesetting on at least three palettes (Basic
Math Assistant, Writing Assistant, and Classroom Assistant). The
keyboard shortcut is Ctl - Ctl 5


--
Helen Read
University of Vermont

Hannes Kessler

unread,
Oct 25, 2009, 1:11:45 AM10/25/09
to
Hello Nasser,

type in the text cell

<ctrl>+<shift>+( x <ctrl>+<shift>+_ 1 <ctrl>+<shift>+% 2 <ctrl>+<tab>
<ctrl>+<tab>

Another question is if the typesetting quality is comparable with
latex.

Best regards,
Hannes

On 24 Okt., 08:43, "Nasser M. Abbasi" <n...@12000.org> wrote:
> > I am actually trying to use Mathematica more to type set some math insi=
de


> > a Text cell, and the above is one problem I find. I actually use the

> > keyboard and type Ctrl9 to open a math cell inside the text cell and ty=


pe
>
> > x Ctrl ^2 spacebar Ctrl _1
>
> > and I get
>
> > 2
> > (x )
> > 1
>
> > when I want
>
> > 2
> > x
> > 1
>
> I found a way, but an awkward way to do the above. Here are the steps
>
> Ctrl-9 to open math cell (I am inside a text cell) then typed
>
> x Ctrl[6] 2 (this is the same as Ctrl^2 for superscript
>
> now I selected x again (did this to prevent the parenthesis from being
> created) and typed Ctrl[-] 1 for subscript
>

> But now the "2" and "1" are not on the same level, so now I selected the =
"2"
> and typed Alt[Left] few times until it is aligned over the "1". Alt[l=
eft]


> is Nudge Left (use the arrow key)
>
> Ok, the output is ok, but too many steps to do, and I think Latex looks

> little better? Here is screen shot for Mathematica and for latex to co=
mpare
>
> http://12000.org/tmp/formating_oct_22_2009/Mathematica.PNGhttp://12000.or=

Norbert Marxer

unread,
Oct 25, 2009, 1:15:22 AM10/25/09
to
On Oct 24, 8:43 am, "Nasser M. Abbasi" <n...@12000.org> wrote:
> Version 7
>
> I wanted to write something like Superscript[Subscript[x, 1], 2] but h=
ave
> the "2" and the "1" appear on the symbol x without one being pushed forwa=
rd
> more than the other.
>
> This is trivial to do in latex, but gave up trying to do it in Mathematic=
a.
>
> I am actually trying to use Mathematica more to type set some math inside=
a
> Text cell, and the above is one problem I find. I actually use the key=
board

> and type Ctrl9 to open a math cell inside the text cell and type
>
> x Ctrl ^2 spacebar Ctrl _1
>
> and I get
>
> 2
> (x )
> 1
>
> when I want
>
> 2
> x
> 1
>
> I looked the all the Palettes also that come with Mathematica 7, but do n=
ot

> see such a pattern to use?
>
> thanks,
> --Nasser

Hello

You can use

Subsuperscript[x,2,3]
and then convert to StandardForm (using "Ctrl Shift N")

or type

x Ctrl - Ctrl 5
and then insert the super- and subscript values

or use the Classroom Assistant Palette (in Version 7)

first tab in "Typesetting"

I hope this helps.

Best Regards
Norbert Marxer


Philip Pirrip

unread,
Oct 25, 2009, 1:17:30 AM10/25/09
to

> I looked the all the Palettes also that come with Mathematica 7, but do not
> see such a pattern to use?

There is such a thing in the Basic Math Input palette. Second row from
below, starts with exponent, next is the index, then both combined.


Try also Subscript[a, i]^e in StandardForm of the cell.

Peter Breitfeld

unread,
Oct 25, 2009, 1:19:07 AM10/25/09
to
"Nasser M. Abbasi" wrote:

Why not just typing:

Ctrl(9) x Ctrl(6) 2 Ctrl(5) 1

Depending on your System:
Ctrl(6) == Ctrl(^)
Ctrl(5) == Ctrl(%)


--
_________________________________________________________________
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de

Albert Retey

unread,
Oct 25, 2009, 1:26:38 AM10/25/09
to

Subsuperscript[x, 1, 2]

the documentation for Subusperscript explains how to input this with
keyboard shortcuts.

hth,

albert

Armand Tamzarian

unread,
Oct 27, 2009, 5:56:34 AM10/27/09
to

In addition to the comments in other posts you can also
Insert>Typesetting and nudge things around in order to achieve
perfection.

Mike

0 new messages