| 1 | initial version |
There is probably no "general" xolution to your problem. breqn attempt this for "regular" mathematical expression, but I'm not convinced it would work with your case (yourv permutation elements are not regular LaTeX "math ob jects...
Possible workaround in your specific case :
sage: a=set([3, 9, 11, 23])
sage: print("\\begin{verbatim}\n%s\n\\end{verbatim}"%"\n".join([str(u) for u in Permutations(a)]))
\begin{verbatim}
[11, 9, 3, 23]
[11, 9, 23, 3]
[ Snip... ]
[23, 3, 11, 9]
[23, 3, 9, 11]
\end{verbatim}
| 2 | No.2 Revision |
There is probably no "general" xolution to your problem. breqn attempt this for "regular" mathematical expression, but I'm not convinced it would work with your case (yourv permutation elements are not regular LaTeX "math ob jects...
Possible workaround in your specific case :
sage: a=set([3, 9, 11, 23])
sage: print("\\begin{verbatim}\n%s\n\\end{verbatim}"%"\n".join([str(u) for u in Permutations(a)]))
\begin{verbatim}
[11, 9, 3, 23]
[11, 9, 23, 3]
[ Snip... ]
[23, 3, 11, 9]
[23, 3, 9, 11]
\end{verbatim}
Otherwise, SageTeX may be your friend...
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.