Math & Sciencehow to lay the supscript exactly on the top of the symbol

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
gcheer3
Posts: 41
Joined: Wed Jun 25, 2008 4:39 pm

how to lay the supscript exactly on the top of the symbol

Post by gcheer3 »

Hello,
hope I can say this questin clearly. Thank you in advance!
I want to type 'N' exactly above the 'x' sign, and '1' exactly below the 'x' sign.
I tried the following code, the problem is that 'N' is towards the upper right corner of 'x' and '1' is towards the lower right corner of 'x'.

$\times_{1}^{N_1}\{0, 1\}$


I know I can use \limits if I want to sub- or super- script exactly below or above the sum sign, but it is in trouble for just a \times sign.
Tanks
Last edited by gcheer3 on Tue Nov 30, 2010 3:22 am, 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.

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

how to lay the supscript exactly on the top of the symbol

Post by php1ic »

Use a combination of \overset and \underset which are provided by amsmath

Code: Select all

\documentclass[a4paper,11pt]{article}

\usepackage{amsmath}

\begin{document}

\[
\overset{N}{\underset{1}{\times}} \{0,1\}
\]

\end{document}
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

how to lay the supscript exactly on the top of the symbol

Post by frabjous »

With amsmath you could also use:

Code: Select all

$\displaystyle\mathop{\times}_{1}^{N_1}\{0, 1\}$
The "\displaystyle" part would not be necessary in displayed math:

Code: Select all

\[ 
     \mathop{\times}_{1}^{N_1}\{0, 1\}
\]
gcheer3
Posts: 41
Joined: Wed Jun 25, 2008 4:39 pm

Re: how to lay the supscript exactly on the top of the symbo

Post by gcheer3 »

Thanks a lot!
Post Reply