Math & ScienceMinimum Operator with Text underneath instead of beside

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
kukulcan
Posts: 3
Joined: Sat May 19, 2012 11:21 am

Minimum Operator with Text underneath instead of beside

Post by kukulcan »

I write equation like this \min_{n}\Arrowvert x \Arrowvert_{1}, but n is not under min. but beside it, like this min n. Why? :oops:

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

Minimum Operator with Text underneath instead of beside

Post by Stefan Kottwitz »

Hi kukulcan,

welcome to the board!

It's written next to it to avoid spreading the distance between the lines, because the text underneath would require more vertical space. For \min_n, n is written below \min if you use it in displayed equations, but beside it if you use it within normal text. But you can change it using \displaystyle for switching the style of the formula or \limits for changing just the style of the operator.

Have a look at this example:

Code: Select all

\documentclass{article}
\begin{document}
Inline math, i.e. math within text: $\min_{n}\Arrowvert x \Arrowvert_{1}$

A displayed formula:
\[\min_{n}\Arrowvert x \Arrowvert_{1}\]

Inline math, but in a displayed style:
$\displaystyle\min_{n}\Arrowvert x \Arrowvert_{1}$

Inline math, only \verb|\min| in a displayed style, i.e. limits below:
$\min\limits_{n}\Arrowvert x \Arrowvert_{1}$
\end{document}
math_styles.png
math_styles.png (14.92 KiB) Viewed 62958 times
Stefan
LaTeX.org admin
kukulcan
Posts: 3
Joined: Sat May 19, 2012 11:21 am

Minimum Operator with Text underneath instead of beside

Post by kukulcan »

The whole code is like this.

Code: Select all

\begin{eqnarray}
\begin{array}{ll}
\min_{n}\Arrowvert x \Arrowvert_{1}\\
subject~to~ y=Ax
\end{array}
\end{eqnarray}
I think it is in display style.


Edit:
yes, it works!

Thanks a lot! :D
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Minimum Operator with Text underneath instead of beside

Post by Stefan Kottwitz »

Just a remark, you should not use eqnarray, because it's obsolete, causes inconsistent spacing and other problems. Better use align of amsmath instead. See eqnarray vs. align for a detailed explanation.

Stefan
LaTeX.org admin
Post Reply