Currently, I write
Code: Select all
$Max_x$
How would I place the x directly underneath the max? Like placing it underneath the a in Max?
Code: Select all
$Max_x$
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
\[
\max_x
\]
\end{document}
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator*{\Max}{Max}
\begin{document}
$\Max\limits_x$
\end{document}
Code: Select all
\documentclass{beamer} %
\usetheme{CambridgeUS}
\usepackage[latin1]{inputenc}
\usefonttheme{professionalfonts}
\usepackage{times}
\usepackage{tikz}
\usepackage{amsmath}
\usepackage{verbatim}
\usetikzlibrary{arrows,shapes}
\begin{frame}
\frametitle{Frame Title}
\begin{equation*}
\tikz[baseline]{
\node[fill=blue!20,anchor=base] (t1)
{$Max_f$};
}
\end{equation*}
\end{frame}
\end{document}
Stefan_K wrote:If you would really need Max, and not the already defined operator \max, I would declare an operator for it. \limits causes the subscript to be written below the expression.
StefanCode: Select all
\documentclass{article} \usepackage{amsmath} \DeclareMathOperator*{\Max}{Max} \begin{document} $\Max\limits_x$ \end{document}
Perhaps don't show some other code, that works for you, but show the code you tried which doesn't work, so we could tell you the cause of the problem.latexhelp1 wrote:I can only get it to compile with
Stefan_K wrote:My code example works, also in your example code, producing this TikZ node:
Perhaps don't show some other code, that works for you, but show the code you tried which doesn't work, so we could tell you the cause of the problem.
Stefan
If I use exactly my code in this example, it works. Perhaps you forgot the \DeclareMathOperator line, or you did something else. Who should guess what's wrong if you don't show it. In other cases you posted good minimal examples.latexhelp1 wrote:I cannot get the Max to work in it.
NEW: TikZ book now 40% off at Amazon.com for a short time.