Latex Reference Formula __latex

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.