Math & ScienceSuperscript Position in Math Mode

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
dejan85
Posts: 8
Joined: Sat Nov 08, 2008 3:14 pm

Superscript Position in Math Mode

Post by dejan85 »

I try to put superscript in math mode after \max command, but I want to be in standard upper right position or upper left position, not above max. For example, like this

Code: Select all

$$\max{}^k$$
When I use this, with long superscript

Code: Select all

$$\max_{j = 1, \ldots , k}{}^k$$
it doesn't look nice, because k is to far from max.
I try also fouridx package for left superscript

Code: Select all

$$\fourIdx{k}{}{}{}{\max_{j = 1, \ldots , k}}$$
but then subscript is not below max.
Is there a way to write left and right superscript next to max with long subscript below the max?

Recommended reading 2024:

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

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

maxmax
Posts: 29
Joined: Sat Sep 03, 2011 11:19 am

Superscript Position in Math Mode

Post by maxmax »

Hi,

try \mathclap from the mathtools package:

Code: Select all

\[\max_{\mathclap{j = 1, \ldots , k}}{}^k\]
And use \[ \] instead of $$ $$!
dejan85
Posts: 8
Joined: Sat Nov 08, 2008 3:14 pm

Re: Superscript Position in Math Mode

Post by dejan85 »

Thank you. I can use this to solve problem.
Post Reply