Math & Sciencecharacter under word

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
hvn
Posts: 13
Joined: Thu Feb 03, 2011 9:40 pm

character under word

Post by hvn »

Hi,

I'm trying to get a character under a word and tried max_{a'} but that just gives subscript. What I want is a' right in the middle under max. How can I do that?
Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

5gon12eder
Posts: 126
Joined: Sun Feb 13, 2011 8:36 pm

character under word

Post by 5gon12eder »

Declare an operator and tell LaTex (with the asterisk) to put subscripts below it.

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath}

\DeclareMathOperator*{\maxa}{max}

\begin{document}
  $$ \maxa_{a'} = \frac{\pi}{2} $$
\end{document}
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
hvn
Posts: 13
Joined: Thu Feb 03, 2011 9:40 pm

Re: character under word

Post by hvn »

Thank you very much.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

character under word

Post by localghost »

5gon12eder wrote:Declare an operator and tell LaTex (with the asterisk) to put subscripts below it.

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath}

\DeclareMathOperator*{\maxa}{max}

\begin{document}
  $$ \maxa_{a'} = \frac{\pi}{2} $$
\end{document}
This syntax for displayed equations should not be used. See l2tabu.


Best regards and welcome to the board
Thorsten
5gon12eder
Posts: 126
Joined: Sun Feb 13, 2011 8:36 pm

character under word

Post by 5gon12eder »

localghost wrote:This syntax for displayed equations should not be used. See l2tabu.
Thank you for pointing out this.
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
Post Reply