I have a very long equation and have to use a equation environment to get a equation number. But I still want the equation to use the inline equation format, which automatically do line breaks and is more compact than manually doing break lines.
Here is the test tex:
\documentclass[twocolumn]{article}
\begin{document}
Equation \ref{eq1}.
$f=a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c$
\begin{equation}\label{eq1}
f=a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c
\end{equation}
\end{document}
I want the following:
Update: I want the equation to be citeable using label and ref command. This is also why I need the equation environment.