我正在尝试breqn 不会自动换行,但它在我的情况下不起作用:
\documentclass{article}
% \textwidth=.7\textwidth % just to show the result
\usepackage{breqn}
\usepackage{lipsum}
\newcommand{\breakingcomma}{%
\begingroup\lccode`~=`,
\lowercase{\endgroup\expandafter\def\expandafter~\expandafter{~\penalty0 }}}
\begin{document}
\lipsum[1-3]
$\breakingcomma
\Omega = \left\{ q \, \colon \, d_{pq}<d_{pq'} \, ,\forall {q} \in \Psi{\setminus}\left( \{p\} \cup \{q'\} \right)
,\forall {q'} \in \Psi{\setminus}\left( \{p\} \cup \{q\} \right) \enspace \land \enspace
\left| \{q\} \right| = \delta \right\}$
\\
\\
If I use the "breakingcomma" command, "breqn" does not work as expected:
\begin{dmath*}
\breakingcomma
\Omega = \left\{ q \, \colon \, d_{pq}<d_{pq'} \, ,\forall {q} \in \Psi{\setminus}\left( \{p\} \cup \{q'\} \right)
,\forall {q'} \in \Psi{\setminus}\left( \{p\} \cup \{q\} \right) \enspace \land \enspace
\left| \{q\} \right| = \delta \right\}
\end{dmath*}
\end{document}