[Tex/LaTex] A letter under word


How can I write a letter under a word. Eg: Assume that I have to write $\textbf{P}$ centered under the word "maximize". When I tried with "_", the output is


Best Answer

You can use \DeclareMathOperator, from the amsmath package; this will give you the proper font and proper spacing. Since your operator should have subscripts placed in "limits" as with \lim, you need to use the starred form \DeclareMathOperator*. An example:




in-line math: $\maxi_{\mathbf{P}}$

displayed expression:


enter image description here