]> git.lyx.org Git - lyx.git/blob - lib/examples/subequations.lyx
sweave.lyx: remove ref to previous homepage
[lyx.git] / lib / examples / subequations.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
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 \use_minted 0
79 \end_header
80
81 \begin_body
82
83 \begin_layout Standard
84 The 
85 \family typewriter
86 subequations
87 \family default
88  environment is provided in LyX by the 
89 \family typewriter
90 subequations
91 \family default
92  module (Document > Settings > Modules).
93  It is helpful to group logically-linked equations.
94  For example, the one-speed one-dimensional integro-differential equation
95  with 
96 \begin_inset Formula $0\le x\le X$
97 \end_inset
98
99  and 
100 \begin_inset Formula $-1\le\mu\le1$
101 \end_inset
102
103  shown in Eq.
104 \begin_inset space ~
105 \end_inset
106
107
108 \begin_inset CommandInset ref
109 LatexCommand ref
110 reference "eq:odoglbe"
111
112 \end_inset
113
114  has associated boundary conditions shown in Eqs.
115 \begin_inset space ~
116 \end_inset
117
118
119 \begin_inset CommandInset ref
120 LatexCommand ref
121 reference "eq:rlbc"
122
123 \end_inset
124
125  and 
126 \begin_inset CommandInset ref
127 LatexCommand ref
128 reference "eq:vrbc"
129
130 \end_inset
131
132 .
133 \begin_inset Flex Subequations
134 status open
135
136 \begin_layout Plain Layout
137 \begin_inset Formula 
138 \begin{align}
139 \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}\\
140 \psi\left(0,\mu\right) & =\psi\left(0,-\mu\right)\,,\,0<\mu\le1,\label{eq:rlbc}\\
141 \psi\left(X,\mu\right) & =0\,,\,-1\le\mu<0.\label{eq:vrbc}
142 \end{align}
143
144 \end_inset
145
146
147 \begin_inset CommandInset label
148 LatexCommand label
149 name "eq:odoglbeset_aligned"
150
151 \end_inset
152
153
154 \end_layout
155
156 \end_inset
157
158
159 \end_layout
160
161 \begin_layout Standard
162 In the previous case, the equations use the 
163 \family typewriter
164 amsmath
165 \family default
166  
167 \family typewriter
168 align
169 \family default
170  environment; however, this is not necessary as shown in Eqs.
171 \begin_inset space ~
172 \end_inset
173
174
175 \begin_inset CommandInset ref
176 LatexCommand ref
177 reference "eq:odoglbenoa"
178
179 \end_inset
180
181
182 \begin_inset CommandInset ref
183 LatexCommand ref
184 reference "eq:vrbcnoa"
185
186 \end_inset
187
188 .
189  
190 \begin_inset Flex Subequations
191 status open
192
193 \begin_layout Plain Layout
194 \begin_inset Formula 
195 \begin{equation}
196 \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}
197 \end{equation}
198
199 \end_inset
200
201
202 \begin_inset Formula 
203 \begin{equation}
204 \psi\left(0,\mu\right)=\psi\left(0,-\mu\right)\,,\,0<\mu\le1,\label{eq:rlbcnoa}
205 \end{equation}
206
207 \end_inset
208
209
210 \begin_inset CommandInset label
211 LatexCommand label
212 name "eq:odoglbeset_individual"
213
214 \end_inset
215
216
217 \begin_inset Formula 
218 \begin{equation}
219 \psi\left(X,\mu\right)=0\,,\,-1\le\mu<0.\label{eq:vrbcnoa}
220 \end{equation}
221
222 \end_inset
223
224
225 \end_layout
226
227 \end_inset
228
229
230 \end_layout
231
232 \begin_layout Standard
233 As an alternative to cross-referencing each subequation directly, the group
234  of subequations (i.e., Eq.
235 \begin_inset space ~
236 \end_inset
237
238
239 \begin_inset CommandInset ref
240 LatexCommand ref
241 reference "eq:odoglbeset_aligned"
242
243 \end_inset
244
245  and/or Eq.
246 \begin_inset space ~
247 \end_inset
248
249
250 \begin_inset CommandInset ref
251 LatexCommand ref
252 reference "eq:odoglbeset_individual"
253
254 \end_inset
255
256 ) can be referenced by placing a label within the subequation inset but
257  outside the equation(s).
258 \end_layout
259
260 \end_body
261 \end_document