I have a formula which has a content like below..
\documentclass[journal]{IEEEtran}
\usepackage[backend=biber]{biblatex}
\addbibresource{bibliography.bib} %Import the bibliography file
\usepackage{lipsum}
\usepackage{algpseudocode}
\usepackage{algorithm}
\usepackage{graphicx}
\usepackage{adjustbox}
\hyphenation{op-tical net-works semi-conduc-tor}
\usepackage{amsmath,amssymb}
\DeclareRobustCommand{\bbone}{\text{\usefont{U}{bbold}{m}{n}1}}
\DeclareMathOperator{\EX}{\mathbb{E}}
\DeclareMathOperator{\E}{\mathbb{E}}
\begin{document}
\maketitle
\lipsum
\begin{equation}
\begin{aligned}[c]
reward(node, action) = \begin{cases}
constant_action_reward -\par action_cost +
success_prob(action, sequence) * node_reward,& \text{if } "XXX"=action
constant_action_taking_reward - action_cost, & \text{otherwise}
\end{cases}
\end{aligned}
\end{equation}
\lipsum
\end{document}
I tried this both in double column using the * like {equation*} and not. Paper is double column. In each option, this covers a two column and other text comes over this. I attached a sample picture. I would be happy if it fits a single column or at least it covers a double column and no text comes over it.


\documentclass{...}, the required\usepackage's,\begin{document}, and\end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – Imran Jul 27 '22 at 16:40alignedenvironment? – Mico Jul 27 '22 at 17:07\mathrm{constant\_action\_reward}(or\mathit) never use the math italic font for multi-letter words, it makes adjacent letters look like a product of 1-letter variables – David Carlisle Jul 27 '22 at 17:12ieeetran, its user manual describes how to do double-column equations (it is a bit unwieldy) by using floats on or around page 12. See also this previous question. // Incidentally, the code you showed is also missing a line break after"xxx"=action. And I an not sure what\paris doing in the middle of the equation. The code you provided as stands cannot be compiled. – Willie Wong Jul 27 '22 at 18:48\textwidth. Even if you write across both columns, it will not fit on the page. To my opinion the best is rephrase this part of your article and avoid to use equation. – Zarko Jul 27 '22 at 18:56= \begin{cases} \begin{aligned} & \mathit{constant\_action\_reward} - \\[-1ex] & \mathit{action\_cost} + \mathit{success\_prob(action, sequence)}* \\[-1ex] & \mathit{node\_reward} \end{aligned}. But even with this trick equation is to long. So the next try is to define abbreviations for your text in equation. – Zarko Jul 27 '22 at 18:57