Latex uses the reference function, adds the label \label to the formula, does not have to bother to change the large number of numbers because of the formula number change. 1. Under normal circumstances, you can use the \ref command
For example, one of the following formulas:
\ begin{equation}
I_{t}=i_{0}+\sum_{i=1}^{t} (Q_{i}-d_{i}) \label{con:inventoryflow}
\ End{equation}
Equation \ Ref{con:inventoryflow} is the inventory flow formula.
Display effect:
2. To display parentheses or brackets on both sides of the reference number, you can use the (\ref) or [\ref] command:
\ begin{equation}
I_{t}=i_{0}+\sum_{i=1}^{t} (Q_{i}-d_{i}) \label{con:inventoryflow}
\ End{equation}
Equation (\ Ref{con:inventoryflow}) is the inventory flow formula.
3. Or load the Amsmath toolkit, use the \EQREF command:
\ begin{equation}
I_{t}=i_{0}+\sum_{i=1}^{t} (Q_{i}-d_{i}) \label{con:inventoryflow}
\ End{equation}
Constraint \ Eqref{con:inventoryflow} is the inventory flow formula.
Display effect:
4. Custom reference styles, you can customize a reference style with Newcommand.
The format of the Newcommand function is: \newcommand{The new command}[the number of parameters [default value]{define content}. Default values can generally be omitted, giving only the number of parameters. #1表示参数内容.
\newcommand{\myref}[1]{eq.\ ref{#1}
\ Myref{con:inventoryflow} is the inventory flow formula.
Display effect:
Chinese composition generally need to compile two times in order to correctly reference.