\begin{equation}
[c_{1},c_{2},...,c_{\tau}] = arg max \eta
\end{equation}
Now "arg max" would appear as, "argmax" in italics.
Is there anyway to PREVENT Latex from italicising the statements "arg" and
"max" whilst in equation mode?
cheers
- Kwaj
- Kingsley
> Is there anyway to PREVENT Latex from italicising the statements "arg" and
> "max" whilst in equation mode?
Yes, there is.
\[ \frac{\mbox{one thing}}{\mbox{something else}} \]
Note that the font size is *not* adjusted according to the poition in
the fraction.
This is better:
\[ \frac{\mathrm{this}}{\mathrm{and\ that}} \]
Note that we have to force the space with a backslash here.
If you prefer another font family use mathsf, mathsc, ...
cu
Philipp
--
Dr. Philipp Pagel Tel. +49-89-3187-3675
Institute for Bioinformatics / MIPS Fax. +49-89-3187-3585
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1
85764 Neuherberg, Germany
\arg \, \max
If you are really talking about text and not operators, you might try
AMSLaTeX (docs in amsldoc.dvi).
\text is provided by the amsmath package, and if you only want \text
but nothing else, the amstext package will provide that.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
UKTUG FAQ: <URL:http://www.tex.ac.uk/cgi-bin/texfaq2html>
% \arg \, \max
The spacing should be OK without the \,
--
Patrick TJ McPhee
East York Canada
pt...@interlog.com
The reason this is happening is that LaTeX (TeX, actually) sees "arg max"
as the product of a, r, g, m, a, and x -- not what you probably expected.
> Is there anyway to PREVENT Latex from italicising the statements "arg" and
> "max" whilst in equation mode?
Because "arg max" is an operator, you should use amsmath's \DeclareMathOperator*
macro to define a new operator called \argmax:
\DeclareMathOperator*{\argmax}{arg\,max}
-- Scott
I think you should read `The not so short introduction to LaTeX2e'
(a.k.a. lshort) before start using LaTeX.
The solution for that is quite straight away: \arg, \max. see log-like
functions for that.
But the lshort also tells you, the *simplest* way is \textrm{arg max}
try that yourself.
HOH
Pan
no because this might not be correct since it seems that arg max should be
thought of as a mathematical operator, therefore it's better to use
\DeclareMathOperator(\argmax}{arg\,max}
\textrm{arg max} does not give you this spacing.
--
/daleif (remove RTFSIGNATURE from email address)
LaTeX FAQ: http://www.tex.ac.uk/faq
AMSMATH Intro: http://www.ams.org/tex/short-math-guide.html
LaTeX Intro: http://people.ee.ethz.ch/~oetiker/lshort/lshort.pdf
Graphics Intro: http://www.ctan.org/tex-archive/info/epslatex.pdf
Remember to post minimal working examples.
> \DeclareMathOperator(\argmax}{arg\,max}
>
> \textrm{arg max} does not give you this spacing.
... and also may result in a different font.
(I use Palatino for body text, and the CM maths fonts. This looks
rather pleasing to my eyes, but it's important to know when to use
\text{...} and when to use \mathrm{...} or {\operator@font ...}.)
-- [mdw]
that's an odd combination. Why don't you just use the mathpazo package to get
palatino in both?
> that's an odd combination. Why don't you just use the mathpazo package
> to get palatino in both?
Firstly, mathpazo wasn't around when I started; and secondly I don't
like either Palatino italic for maths variables (even though it's a
gorgeous face for body text) nor the Pazo maths symbols.
Maybe I've just become used to it now, but I find the combination rather
pleasing. I got the idea from `The Handbook of Applied Cryptography',
published by CRC Press, which uses CM maths and Times body text and
looked fine for it.
-- [mdw]