Math & Science ⇒ putting things under each other
putting things under each other
If I write $$\sup_y$$, Latex will produce a formula with "y" centered under the text string "sup".
Is there any way I can write a formula replacing the string "sup" by some
other string, for example by "maximize"? I can of course write $$\max_y$$
but I really want the string to be "maximize" and/or "minimize", and I want "y" to be centered under "maximize".
If I write $$\mbox{maximize}_y$$ then "Y" will only be a subscript. I cannot use $$\stackrel$$ since then I will
get the "y" above "maximize", and if I change the order then "maximize" will be out of line (above the main text line).
Hoping for help
/Tomas Bjork
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
putting things under each other
welcome to the forum!
You could use
\DeclareMathOperator*
of amsmath
:Code: Select all
\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator*{\maximize}{maximize}
\begin{document}
$$\maximize_y$$
\end{document}