question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"argmax" and "argmin" not possible to write

See original GitHub issue

Hi,

I have troubles to write a proper “arg max” and “arg min” such that the argument is below the operator and in the center and not next to it.

It should look like this:

screenshot 2019-01-01 at 18 25 38

I tried

\arg\min_{A, B}
\operatorname{argmin}_{A, B}
\DeclareMathOperator{\argmin}{arg\,min}
\operatorname{argmin}_{\hbox{A, B}}

Do you have an idea how to make this work? Am I missing some obvious solution?

Thanks René

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
edemainecommented, Jan 1, 2019

Here’s how we define \limsup macro:

"\\mathop{\\operatorname{lim\\,sup}}\\limits"

So you could do the same with argmin (or arg\,min) either by passing a string like above for a macro, or as a one-off (or \def) in TeX like so:

\mathop{\operatorname{arg\,min}}\limits
1reaction
filiprecommented, Jan 2, 2019

ah, alright. I put a reference to that package and updated the PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command for argmin or argmax? - TeX - LaTeX Stack Exchange
As Pieter pointed out, the correct way to define argmin and argmax operators in LaTeX is: \usepackage{amsmath} \DeclareMathOperator*{\argmax}{arg\,max} ...
Read more >
numpy: what is the logic of the argmin() and argmax() functions?
So I am confused as argmax is supposed to return index of min or max not the number that corresponds to the max...
Read more >
Arg max - Wikipedia
In mathematics, the arguments of the maxima are the points, or elements, of the domain of some function at which the function values...
Read more >
Argmax and Max Calculus
The max function gives the largest possible value of f(x) for any x in ... However, the max may not exist because the...
Read more >
What Is Argmax in Machine Learning?
Develop a working understand of linear algebra ...by writing lines of code in python. Discover how in my new Ebook: Linear Algebra for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found