# [Tex/LaTex] A letter under word

letterspositioning

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

$$maximize_{\textbf{P}}$$


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:

\documentclass{article}
\usepackage{amsmath}

\DeclareMathOperator*{\maxi}{maximize}

\begin{document}

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

displayed expression:
$\maxi_{\mathbf{P}}$

\end{document}