簡體   English   中英

在Latex中對每個等式線進行編號

[英]Numbering each line of equation in Latex

有沒有辦法用單獨的子索引標記多行方程的每一行?

例如,我想得到......(在輸出中)

a = b(1.23.1)

c = d(1.23.2)

= f(1.23.3)

然后能夠參考整個多線方程(“見於1.23 bla bla bla ...”)或特定線(“在1.23.3中我們重新定義了d ......”)。

對於想要這個查詢的答案的人來說,這是一個有用的tex.stackexchange答案: https ://tex.stackexchange.com/questions/118086/numbering-all-lines-of-an-array

要點如下:

%% in your preable
\usepackage{amsmath}

%% in your document
\begin{subequations}
\begin{align}
% YOUR MULTILINE MATHEMATICS WITH & ALIGNMENT CHARACTERS AND \\ NEWLINE MARKERS
% place \label{THIS-LINE} on each line, and you can cross-reference the line using \ref{THIS-LINE}
\end{align}
% place a \label{WHOLE-THING} here, and you can cross-reference the whole thing using \ref{WHOLE-THING}
\end{subequations}

這是一個例子:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}

\begin{document}

\begin{subequations}
\begin{align}
\frac{\mathrm{d} x}{\mathrm{d} t} &=\sigma(y-x)\label{eqn:line-1} \\
\frac{\mathrm{d} y}{\mathrm{d} t} &=x(\rho-z)-y\label{eqn:line-2} \\
\frac{\mathrm{d} z}{\mathrm{d} t} &=x y-\beta z
\end{align}
\label{eqn:all-lines}
\end{subequations}

Look at the first line \ref{eqn:line-1}, and now look at the second line \ref{eqn:line-2}. They are both part of the whole system \ref{eqn:all-lines}.

\end{document}

多行數學,每行標記為數字+字母,並對每行和整個系統進行交叉引用

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM