GeneralWrite stuff in levels under each other

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
xetal
Posts: 14
Joined: Fri May 25, 2007 5:18 pm

Write stuff in levels under each other

Post by xetal »

Say that I have two conditions P_1 and P_2. Then I want P_1 to be precisely under sup and P_2 to be precisely under P_1. I.e.,

Code: Select all

sup (something)
P_1
P_2
How do I do this? Example:

Code: Select all

\displaystyle \sup_{{P_1}_{P_2}}
P_1 is in the example exactly under sup, but P_2 is not exactly under P_1

Recommended reading 2024:

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

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

Write stuff in levels under each other

Post by Stefan Kottwitz »

Hi xetal,

try \shortstack:

Code: Select all

\displaystyle \sup_{\shortstack{$P_1$\\$P_2$}}
Stefan
balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: Write stuff in levels under each other

Post by balf »

With AMSmath:
\displaystyle \sup_{\substack{P_1\\P_2}}

B.A.
xetal
Posts: 14
Joined: Fri May 25, 2007 5:18 pm

Re: Write stuff in levels under each other

Post by xetal »

Thank you Stefan and balf!
Post Reply