]> git.lyx.org Git - features.git/blob - lib/examples/subequations.lyx
e0372880719a36fd57a509efe54c430aff05aa25
[features.git] / lib / examples / subequations.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 543
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/examples/
7 \textclass article
8 \use_default_options true
9 \begin_modules
10 subequations
11 \end_modules
12 \maintain_unincluded_children false
13 \language english
14 \language_package default
15 \inputencoding auto
16 \fontencoding global
17 \font_roman "default" "default"
18 \font_sans "default" "default"
19 \font_typewriter "default" "default"
20 \font_math "auto" "auto"
21 \font_default_family default
22 \use_non_tex_fonts false
23 \font_sc false
24 \font_osf false
25 \font_sf_scale 100 100
26 \font_tt_scale 100 100
27 \use_microtype false
28 \use_dash_ligatures false
29 \graphics default
30 \default_output_format default
31 \output_sync 0
32 \bibtex_command default
33 \index_command default
34 \paperfontsize default
35 \spacing single
36 \use_hyperref false
37 \papersize default
38 \use_geometry false
39 \use_package amsmath 1
40 \use_package amssymb 1
41 \use_package cancel 1
42 \use_package esint 1
43 \use_package mathdots 1
44 \use_package mathtools 1
45 \use_package mhchem 1
46 \use_package stackrel 1
47 \use_package stmaryrd 1
48 \use_package undertilde 1
49 \cite_engine basic
50 \cite_engine_type default
51 \biblio_style plain
52 \use_bibtopic false
53 \use_indices false
54 \paperorientation portrait
55 \suppress_date false
56 \justification true
57 \use_refstyle 1
58 \index Index
59 \shortcut idx
60 \color #008000
61 \end_index
62 \secnumdepth 3
63 \tocdepth 3
64 \paragraph_separation indent
65 \paragraph_indentation default
66 \is_math_indent 0
67 \math_numbering_side default
68 \quotes_style english
69 \dynamic_quotes 0
70 \papercolumns 1
71 \papersides 1
72 \paperpagestyle default
73 \tracking_changes false
74 \output_changes false
75 \html_math_output 0
76 \html_css_as_file 0
77 \html_be_strict false
78 \end_header
79
80 \begin_body
81
82 \begin_layout Standard
83 The 
84 \family typewriter
85 subequations
86 \family default
87  environment, provided by the 
88 \family typewriter
89 amsmath
90 \family default
91  package, is helpful to group logically-linked equations.
92  For example, the one-speed one-dimensional integro-differential equation
93  with 
94 \begin_inset Formula $0\le x\le X$
95 \end_inset
96
97  and 
98 \begin_inset Formula $-1\le\mu\le1$
99 \end_inset
100
101  shown in Eq.
102 \begin_inset space ~
103 \end_inset
104
105
106 \begin_inset CommandInset ref
107 LatexCommand ref
108 reference "eq:odoglbe"
109
110 \end_inset
111
112  has associated boundary conditions shown in Eqs.
113 \begin_inset space ~
114 \end_inset
115
116
117 \begin_inset CommandInset ref
118 LatexCommand ref
119 reference "eq:rlbc"
120
121 \end_inset
122
123  and 
124 \begin_inset CommandInset ref
125 LatexCommand ref
126 reference "eq:vrbc"
127
128 \end_inset
129
130 .
131 \begin_inset Flex Subequations
132 status open
133
134 \begin_layout Plain Layout
135 \begin_inset Formula 
136 \begin{align}
137 \mu\frac{d\psi\left(x,\mu\right)}{dx}+\Sigma_{t}\left(x\right)\psi\left(x,\mu\right) & =\intop_{-1}^{1}\frac{\Sigma_{s}\left(x,\mu'\to\mu\right)}{2}\psi\left(x,\mu'\right)d\mu'+\frac{Q\left(x,\mu\right)}{2},\label{eq:odoglbe}\\
138 \psi\left(0,\mu\right) & =\psi\left(0,-\mu\right)\,,\,0<\mu\le1,\label{eq:rlbc}\\
139 \psi\left(X,\mu\right) & =0\,,\,-1\le\mu<0.\label{eq:vrbc}
140 \end{align}
141
142 \end_inset
143
144
145 \begin_inset CommandInset label
146 LatexCommand label
147 name "eq:odoglbeset_aligned"
148
149 \end_inset
150
151
152 \end_layout
153
154 \end_inset
155
156
157 \end_layout
158
159 \begin_layout Standard
160 In the previous case, the equations use the 
161 \family typewriter
162 amsmath
163 \family default
164  
165 \family typewriter
166 align
167 \family default
168  environment; however, this is not necessary as shown in Eqs.
169 \begin_inset space ~
170 \end_inset
171
172
173 \begin_inset CommandInset ref
174 LatexCommand ref
175 reference "eq:odoglbenoa"
176
177 \end_inset
178
179
180 \begin_inset CommandInset ref
181 LatexCommand ref
182 reference "eq:vrbcnoa"
183
184 \end_inset
185
186 .
187  
188 \begin_inset Flex Subequations
189 status open
190
191 \begin_layout Plain Layout
192 \begin_inset Formula 
193 \begin{equation}
194 \mu\frac{d\psi\left(x,\mu\right)}{dx}+\Sigma_{t}\left(x\right)\psi\left(x,\mu\right)=\intop_{-1}^{1}\frac{\Sigma_{s}\left(x,\mu'\to\mu\right)}{2}\psi\left(x,\mu'\right)d\mu'+\frac{Q\left(x,\mu\right)}{2},\label{eq:odoglbenoa}
195 \end{equation}
196
197 \end_inset
198
199
200 \begin_inset Formula 
201 \begin{equation}
202 \psi\left(0,\mu\right)=\psi\left(0,-\mu\right)\,,\,0<\mu\le1,\label{eq:rlbcnoa}
203 \end{equation}
204
205 \end_inset
206
207
208 \begin_inset CommandInset label
209 LatexCommand label
210 name "eq:odoglbeset_individual"
211
212 \end_inset
213
214
215 \begin_inset Formula 
216 \begin{equation}
217 \psi\left(X,\mu\right)=0\,,\,-1\le\mu<0.\label{eq:vrbcnoa}
218 \end{equation}
219
220 \end_inset
221
222
223 \end_layout
224
225 \end_inset
226
227
228 \end_layout
229
230 \begin_layout Standard
231 As an alternative to cross-referencing each subequation directly, the group
232  of subequations (i.e., Eq.
233 \begin_inset space ~
234 \end_inset
235
236
237 \begin_inset CommandInset ref
238 LatexCommand ref
239 reference "eq:odoglbeset_aligned"
240
241 \end_inset
242
243  and/or Eq.
244 \begin_inset space ~
245 \end_inset
246
247
248 \begin_inset CommandInset ref
249 LatexCommand ref
250 reference "eq:odoglbeset_individual"
251
252 \end_inset
253
254 ) can be referenced by placing a label within the subequation inset but
255  outside the equation(s).
256 \end_layout
257
258 \end_body
259 \end_document