# Split text inside align*

I have a function definition like this:

inside a beamer presentation. The text inside the set definition to which the function maps to is very long and does not fit on the slide.

I want to split it in multiple lines, while keeping the alignment of the function definition.

Code:

\begin{align*}
\mathcal{F} \colon \{ \mathbf{AFDs} \quad \text{sin estados inalcanzables} \} \quad &\longrightarrow \quad \{ \text{really long text that does not fit on the slide} \} \\
\end{align*}

• Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Even if your question is clear, well written and formatted, and you gave us the critical part of your code; easily reproducing the problem will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. Thank you ! – ebosi May 17 '16 at 13:58
• I would use a \parbox, although you would need to guess the width. – John Kormylo May 17 '16 at 14:00
• if the text is really text not mathematics just change \text{..} to \parbox{4cm}{...} or whatever width you need – David Carlisle May 17 '16 at 14:00

As @DavidCarlisle and @John Kormylo commented, if the text does not contain math, a \parbox solves the problem nicely.
\begin{align*}