1

I have a function definition like this:enter image description here

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} \} \\
    M \quad &\longmapsto \quad \equiv_{M}
\end{align*}
3
  • 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, 2016 at 13:58
  • I would use a \parbox, although you would need to guess the width. May 17, 2016 at 14:00
  • if the text is really text not mathematics just change \text{..} to \parbox{4cm}{...} or whatever width you need May 17, 2016 at 14:00

1 Answer 1

3

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

\begin{align*}
    \mathcal{F} \colon \{ \mathbf{AFDs} \quad \text{sin estados inalcanzables} \} \quad &\longrightarrow \quad \parbox{80pt}{\{relaciones Myhill-Nerode\}} \\
    M \quad &\longmapsto \quad \equiv_{M}
\end{align*}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .