Math & ScienceIssue with long superscript

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Makaremi
Posts: 13
Joined: Tue May 25, 2010 8:59 pm

Issue with long superscript

Post by Makaremi »

Hi,
I have a long variable in my report which is

Code: Select all

$W^{\psi_L}x$
Since the superscript is too long for such a short variable, I was thinking if it is possible to move it to the top of "W".
Does anyone have an idea how to do this?
Thanks
ImAn
Last edited by Makaremi on Wed Jul 28, 2010 9:03 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Issue with long superscript

Post by Stefan Kottwitz »

Hi ImAn,

do you mean this way?

Code: Select all

$\overset{\psi_L}{W}x$
amsmath would be required.

Stefan
LaTeX.org admin
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Issue with long superscript

Post by frabjous »

You could try:

Code: Select all

$\displaystyle\mathop{W}^{\psi_L}x$
Or, alternatively (requires AMSmath):

Code: Select all

$\overset{\psi_L}{W}x$
Makaremi
Posts: 13
Joined: Tue May 25, 2010 8:59 pm

Issue with long superscript

Post by Makaremi »

Thanks, it works.
The first command

Code: Select all

 W^{\psi_L}x
works perfectly. However, its size doesn't change. So, it might look too large at some points.
The second command

Code: Select all

$\overset{\psi_L}{W}x$
does not have the same problem. But, since it needs package amsmath, package wasysym could not be used simultaneously.
ImAn
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Issue with long superscript

Post by frabjous »

If you load wasysym with either the [integrals] or [nointegrals] options (rather than the default compat1), it will not conflict with amsmath. See the documentation for more info.
Makaremi
Posts: 13
Joined: Tue May 25, 2010 8:59 pm

Re: Issue with long superscript

Post by Makaremi »

good to know that. thanks :)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Issue with long superscript

Post by localghost »

Now that the problem is solved, please mark the topic accordingly as described in Section 3 of the Board Rules.


Best regards
Thorsten
Post Reply