I need to prepare a document for a journal and I'm using the twocolumn option in the article class. Now I have a horrible equation that makes use of the cases environment so it's hard to split up to make it fit into one column. I do not want to use the figure* environment because I have no control over where to put the equation.
What I want to do is to use the widetext package and make sure that this equation looks something like it would like when one uses revtex4. However, when compiling my document I get an error, namely "improper \prevdepth". Does anyone have a clue what I have to do here?
A minimum working example (using the actual formula)
\documentclass[twocolumn]{article}
\usepackage{widetext}
\usepackage{flushend}
\usepackage{cuted}
\begin{document}
a lot of text ...
Here
\begin{widetext}
\begin{eqnarray} \label{e27}
T_{nn''}^{mm''}=({-}1)^{p-p''}\,\dil_0^{\infty}\,J_{m-m''}(au)\,J_{n''}(bu)\,J_{n+1}(u)\,du~=
\begin{cases}
& \dfrac{(q{+}p'')!\,(p{-}p'')!}{(q{-}q'')!\,(p{+}q'')!}\,a^{m-m''}b^{n''}\,P_{p-p''}^{(m-m'',n'')}(1{-}2A^2)P_{p-p''}^{(m-m'',n'')}(2B^2{-}1)~~~ \\ & \text{when}~~~n-n''\geq m-m''\geq0~,\\
\\
& \dfrac{(p{+}q'')!\,(q{-}q'')!}{(p{-}p'')!\,(q{+}p'')!}\,a^{m''-m}b^{n''}\,P_{q-q''}^{(m''-m,n'')}(1{-}2A^2)\,P_{q-q''}^{(m''-m,n'')}(2B^2{-}1)~~~ \\ & \text{when}~~~ n-n''\geq m''-m\geq0~, \\
\\
&0 ~~~ \text{otherwise}.
\end{cases}
\end{eqnarray}
\end{widetext}
a lot more text....
\end{document}
Any help would be greatly appreciated!

\begin{widetext}or (2) make the "Here" paragraph longer; otherwise I still get\prevdeptherrors. Could this just be weirdness with my setup, or did you run into anything like this? On a related note, I've seen several forum suggestions for inserting a blank line before\begin{strip}in this widetext.sty, which helps sometimes for me. – May 22 '13 at 06:31widetextstill part of TeXLive? I haveThis is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016)andwidetextdoesn't work witharticle. I get! LaTeX Error: Environment widetext undefined.. – alfC Nov 06 '17 at 17:30