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*}
  • 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
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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.