2

I'm trying to write a simple argmin equation. However \underset command italicizes whatever in it. Here is my code:

\begin{align}

\label{Eq:argmin}

&{x}={\arg\underset{p}{\rm min}}\{N_{clip}(\bar{\pmb{\rm x}})\}\\

&{\rm subject~to}~ {p}~ \epsilon~\Theta \nonumber

\end{align}

and here is the output

enter image description here

It is strange because I used the same code many times before and it was working properly. Only in this file I have that problem... Do you have a guess about the source of that error or any solution to get rid of it?

Thank you in advance

  • 6
    You should use \min instead of {\rm min}... – karlkoeller Sep 26 '13 at 16:25
  • I think it is not the main problem, but thank you in anyways – zea Sep 26 '13 at 17:05
7

Some guidelines...

  • Don't wrap your math components in braces; {x} removes the appropriate spacing around x.
  • Don't use {\rm ..} for roman text font. Rather use \text{..} as supplied by amsmath.
  • \in denotes "member of", as opposed to \epsilon.
  • If you're using proper operators, you can underset an argument using "limits".

enter image description here

\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\DeclareMathOperator*{\argmin}{arg\,min}
\begin{document}

\begin{align}
  \label{Eq:argmin}
  & x = \argmin_p \{N_{\text{clip}}(\bar{\mathbf{x}})\} \\
  & \text{subject to } p \in \Theta \nonumber
\end{align}

\end{document}

For better/different definitions of \argmin, see Command for argmin or argmax?

1: http://i.stack.imgur.com/W7jhG.pngSome guidelines...

  • Don't wrap your math components in braces; {x} removes the appropriate spacing around x.
  • Don't use {\rm ..} for roman text font. Rather use \text{..} as supplied by amsmath.
  • \in denotes "member of", as opposed to \epsilon.
  • If you're using proper operators, you can underset an argument using "limits".

enter image description here

\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\DeclareMathOperator*{\argmin}{arg\,min}
\begin{document}

\begin{align}
  \label{Eq:argmin}
  & x = \argmin_p \{N_{\text{clip}}(\bar{\mathbf{x}})\} \\
  & \text{subject to } p \in \Theta \nonumber
\end{align}

\end{document}

For better/different definitions of \argmin, see Command for argmin or argmax?

| improve this answer | |
  • It definitely works, thank you very much :) – zea Sep 26 '13 at 17:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.