My goal is to write a one-column equation in a two-column document class. I have used the following answer: https://www.researchgate.net/post/How_to_make_equation_one_column_in_two_column_paper_in_latex .
\usepackage{lipsum, mathtools, cuted} \begin{strip} \begin{equation} Your equation goes here \end{equation} \end{strip}
But when I use a table in between, it overwrites the equation. Is it possible to prevent this?
My sample code:
\documentclass[twocolumn]{article}
\usepackage{color, etoolbox, lipsum, mathtools, geometry}
\usepackage{cuted, textcomp, setspace, longtable, tabularx, array}
\begin{document}
\begin{center}
\begin{singlespace}
\begin{tabular}{ c c c }
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
a & b & c \\
\end{tabular}
\end{singlespace}
\end{center}
\begin{strip}
[
a + b + c + d + e + f + g + h + i + j + k + l + m + n + o + p + q
]
\end{strip}
\begin{equation}
\begin{aligned}
f(x)=
\begin{cases}
1 & \text{if}\ \text{x=0} \
0 & \text{otherwise}.
\end{cases}
\end{aligned}
\end{equation}
\end{document}
AS you can see in the output, my table merges with the whole page equation:
Is it possible to prevent this, where tables and the long equation won't write on top of each other?
Please note that firstly I have tried widetext from this solution: One column equation in twocolumn document class ; but I have received following error: ! LaTeX Error: File 'widetext.sty' not found.


\lipsum[1]before your code for the tabular and\lipsum[1-4]the end of your document it worked OK. I have no idea why but feel that it might have something to do with the definition of thestripenvironment (wherever that came from). BTW you have use several packages multiple times so your MWE needs clearing up. – Peter Wilson Apr 22 '22 at 17:50widetextpackage had this issue:(File 'widetext.sty' not found) so I was looking for another solution,stripcame from some comment of a user I found in internet from here: https://www.researchgate.net/post/How_to_make_equation_one_column_in_two_column_paper_in_latex ; – alper Apr 22 '22 at 19:52