3

I'm writing \max_{some very long subscript} = f(x) within an \begin{align*} \end{align*} environment. The subscript is very long, so I want to write it on multiple lines under max.

I looked into this post here, but I could not get it to work in the align* environment.

\begin{align*}
max_{some very long subscript} &= f(x)\\
max_{some other very long subscript} &= g(x)
\end{align*}
Adrian
  • 471

1 Answers1

2

Somethink like this?

\documentclass[12pt]{article}
\usepackage{amsmath,amssymb}

\begin{document} \begin{align} \max_{\substack{\text{some very}\mathstrut \ \text{long subscript} }} & = f(x) \ \max_{\substack{\text{some other}\mathstrut \ \text{very long subscript} }} & = g(x)
\end{align
} \end{document}

enter image description here

PS: I have not your minimal working example.

Mico
  • 506,678
Sebastiano
  • 54,118
  • Yes, something like that. But embedding it in the align* environment seems to have issues, i.e., \begin{align*} \[\max_{\substack{\\ \text{some very} \\ \text{long subscript} }} = f(x)\] \end{align*} does not work for me. Also added a toy example to my original post. – Adrian May 08 '21 at 20:27
  • 1
    Perfect. Thank you! – Adrian May 08 '21 at 20:30
  • 1
    @Devon - Don't embed \[ and \] in an align* environment. – Mico May 08 '21 at 23:21