File: MathLabeling.lyx

package info (click to toggle)
lyx 1.1.6fix4-2
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 26,136 kB
  • ctags: 13,679
  • sloc: cpp: 93,591; sh: 9,563; ansic: 8,253; perl: 3,489; makefile: 1,332; tcl: 163; sed: 150; python: 112; yacc: 38
file content (143 lines) | stat: -rw-r--r-- 2,557 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#This file was created by <larsbj> Sun Dec  5 17:46:35 1999
#LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team
\lyxformat 2.15
\textclass article
\language english
\inputencoding latin1
\fontscheme default
\graphics none
\paperfontsize 10
\spacing single 
\papersize letterpaper
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 0
\papersides 1
\paperpagestyle plain

\layout Title

Numbering and Labeling equations
\layout Author

Alejandro Aguilar-Sierra
\layout Standard

A simple equation can be numbered by two ways.
 The first is invocating the LyX command 
\family typewriter 
math-number
\family default 
.
 The corresponding number
\begin_float footnote 
\layout Standard

Or a 
\series bold 
#
\series default 
 mark since true numbering is not yet implemented.
\end_float 
 will appear after the right end of the equation.
 
\layout Standard


\begin_inset Formula 
\begin{equation}
x=y^{2}-3
\end{equation}

\end_inset 


\layout Standard

Usually the equation number will be referred to in the document.
 It's safer to assign a label to the equation, instead of using a fixed
 number.
 Assigning a label to a non-numbered equation will make it numbered automaticall
y.
 With the label 
\series bold 
planck 
\series default 
we can be refer to the equation (
\begin_inset LatexCommand \ref{planck}

\end_inset 

).
\layout Standard


\begin_inset Formula 
\begin{equation}
\label{planck}
E=hv
\end{equation}

\end_inset 


\layout Standard

In the case of an equation array, every line is sequentially numbered.
 It's possible to suppress the number for a single line with the command
 
\family typewriter 
math-nonumber
\family default 
.
 The cursor must be at the row you want not to be numbered.
\layout Standard


\begin_inset Formula 
\begin{eqnarray}
(x+y)(x-y) & = & x^{2}-xy+xy-y^{2}\nonumber \\
 & = & x^{2}-y^{2}
\end{eqnarray}

\end_inset 


\layout Standard

It's possible to label more than one line.
 From the following array of equations we can refer to the equations (
\begin_inset LatexCommand \ref{eq:gs1}

\end_inset 

) and (
\begin_inset LatexCommand \ref{eq:gs2}

\end_inset 

) using their corresponding labels.
\layout Standard


\begin_inset Formula 
\begin{eqnarray}
v_{k+1} & = & w_{k}+b_{1}\label{eq:gs1} \\
w_{k+1} & = & v_{k+1}+b_{2}
\end{eqnarray}

\end_inset 


\layout Standard

To see the final result please preview or print this document.
\the_end