[Tex/LaTex] How to break lines of text in equation

equationsline-breaking

I have a problem with breaking lines in equation environment, can't really omit the text. I tried using \mbox and \parbox but they don't really give the effect I'm looking for.

example:

\documentclass[12 pt, leqno]{article}
\usepackage{amssymb, amsmath, multicol, titlesec, amsthm}
\begin{document}
    \begin{equation}
    xxxxxxxxxxxxxxxxxxxxx \frac{n!}{k_1!k_2!...k_m!} xxxxxxxxx \{k_1,k_2,...,k_m\} xx xxxxxxxxxxxxxxxxxx.
    \end{equation}
\end{document}

Where the xes represent text.

Is there any way to do it?

Best Answer

here are two possibilities. for the first, the final text is taken outside the equation environment. for the second, the final text is split onto a separate line of the display, and aligned to the left with the first line. (i wasn't really sure what you want.)

\documentclass[12 pt, leqno]{article}
\usepackage{amssymb, amsmath, multicol, titlesec, amsthm}
\begin{document}
\noindent some text preceding the display
    \begin{equation}
    \text{xxxxxxxxxxxxxxxxxxxxx } \frac{n!}{k_1!k_2!...k_m!}
    \text{ xxxxxxxxx } \{k_1,k_2,...,k_m\}
    \end{equation}
    xx xxxxxxxxxxxxxxxxxx.

\bigskip
\noindent if that isn't what you want, try this:
    \begin{equation}
    \begin{aligned}
    &\text{xxxxxxxxxxxxxxxxxxxxx } \frac{n!}{k_1!k_2!...k_m!}
      \text{ xxxxxxxxx } \{k_1,k_2,...,k_m\}\\
    &\text{xx xxxxxxxxxxxxxxxxxx.}
    \end{aligned}
    \end{equation}
\end{document}

output of example code