How to align subequations when each subequation has multiple lines?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I have three sub-equations and I want them to be left aligned and each to be numbered as (1a), (1b) and (1c). Since there are other equations too, I cannot change my existing packages or introduce a global setting which will disturb other equation. Here is what I have attempted.
documentclass[11pt,a4paper]report
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
beginsplit
epsilon_xx^c(x,z,t) = dfracpartial u^c(x,z,t)partial x = & dfracf_t z^24 c^2 Bigg(1+dfraczcBigg) w_,xx^t + dfracf_b z^24 c^2 Bigg(-1+dfraczcBigg) w_,xx^b \ & + z Bigg(1-dfracz^2c^2Bigg) phi_0,x^c(x,t) +dfracz^22c^2 Bigg(1-dfraczcBigg) u_0,x^b + Bigg(1-dfracz^2c^2Bigg) u_0,x^c
%labele: axial_straincore\% the equation can be tagged using the command tag1a
endsplit \
epsilon_zz^c(x,z,t) = dfracpartial w^c(x,z,t)partial z = Bigg(dfraczc^2 - dfrac12cBigg) w^b(x,t) - dfrac2zc^2 w_0^c(x,t) + Bigg(dfraczc^2 + dfrac12cBigg) w^t(x,t) \ %labele:transverse_straincore
beginsplit
gamma_zx^c(x,z,t) = dfracpartial u^c(x,z,t)partial z + dfracpartial w^c(x,z,t)partial x = -Bigg(dfrac2 zc^2Bigg) u_0^c + Bigg(dfraczc^2 - dfrac3 z^22 c^3 Bigg) u_0^b + Bigg(1-dfrac3 z^2c^2Bigg) phi_0^c \ + Bigg(dfraczc^2 + dfrac3 z^22 c^3 Bigg) u_0^t + Bigg[-Bigg(dfracc+f_b2c^2Bigg) z + Bigg(dfrac2c+3f_b4 c^3Bigg) z^2Bigg] w_,x^b + Bigg[Bigg(dfracc+f_t2c^2Bigg) z \+ Bigg(dfrac2c+3f_t4 c^3Bigg) z^2Bigg] w_,x^t + Bigg(1-dfracz^2c^2Bigg) w_0,x^c
%labele: shear_straincore
endsplit
endalign
endsubequations
enddocument
equations align
add a comment |Â
up vote
1
down vote
favorite
I have three sub-equations and I want them to be left aligned and each to be numbered as (1a), (1b) and (1c). Since there are other equations too, I cannot change my existing packages or introduce a global setting which will disturb other equation. Here is what I have attempted.
documentclass[11pt,a4paper]report
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
beginsplit
epsilon_xx^c(x,z,t) = dfracpartial u^c(x,z,t)partial x = & dfracf_t z^24 c^2 Bigg(1+dfraczcBigg) w_,xx^t + dfracf_b z^24 c^2 Bigg(-1+dfraczcBigg) w_,xx^b \ & + z Bigg(1-dfracz^2c^2Bigg) phi_0,x^c(x,t) +dfracz^22c^2 Bigg(1-dfraczcBigg) u_0,x^b + Bigg(1-dfracz^2c^2Bigg) u_0,x^c
%labele: axial_straincore\% the equation can be tagged using the command tag1a
endsplit \
epsilon_zz^c(x,z,t) = dfracpartial w^c(x,z,t)partial z = Bigg(dfraczc^2 - dfrac12cBigg) w^b(x,t) - dfrac2zc^2 w_0^c(x,t) + Bigg(dfraczc^2 + dfrac12cBigg) w^t(x,t) \ %labele:transverse_straincore
beginsplit
gamma_zx^c(x,z,t) = dfracpartial u^c(x,z,t)partial z + dfracpartial w^c(x,z,t)partial x = -Bigg(dfrac2 zc^2Bigg) u_0^c + Bigg(dfraczc^2 - dfrac3 z^22 c^3 Bigg) u_0^b + Bigg(1-dfrac3 z^2c^2Bigg) phi_0^c \ + Bigg(dfraczc^2 + dfrac3 z^22 c^3 Bigg) u_0^t + Bigg[-Bigg(dfracc+f_b2c^2Bigg) z + Bigg(dfrac2c+3f_b4 c^3Bigg) z^2Bigg] w_,x^b + Bigg[Bigg(dfracc+f_t2c^2Bigg) z \+ Bigg(dfrac2c+3f_t4 c^3Bigg) z^2Bigg] w_,x^t + Bigg(1-dfracz^2c^2Bigg) w_0,x^c
%labele: shear_straincore
endsplit
endalign
endsubequations
enddocument
equations align
Please make your code compilable (if possible), or at least complete it withdocumentclass...
, the requiredusepackage
's,begindocument
, andenddocument
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.
â Skillmon
3 hours ago
Dear Skillmon, thank you. I have now added required packages, and other commands to make it a minimal working example.
â Kamran Ali Ahmed
3 hours ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have three sub-equations and I want them to be left aligned and each to be numbered as (1a), (1b) and (1c). Since there are other equations too, I cannot change my existing packages or introduce a global setting which will disturb other equation. Here is what I have attempted.
documentclass[11pt,a4paper]report
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
beginsplit
epsilon_xx^c(x,z,t) = dfracpartial u^c(x,z,t)partial x = & dfracf_t z^24 c^2 Bigg(1+dfraczcBigg) w_,xx^t + dfracf_b z^24 c^2 Bigg(-1+dfraczcBigg) w_,xx^b \ & + z Bigg(1-dfracz^2c^2Bigg) phi_0,x^c(x,t) +dfracz^22c^2 Bigg(1-dfraczcBigg) u_0,x^b + Bigg(1-dfracz^2c^2Bigg) u_0,x^c
%labele: axial_straincore\% the equation can be tagged using the command tag1a
endsplit \
epsilon_zz^c(x,z,t) = dfracpartial w^c(x,z,t)partial z = Bigg(dfraczc^2 - dfrac12cBigg) w^b(x,t) - dfrac2zc^2 w_0^c(x,t) + Bigg(dfraczc^2 + dfrac12cBigg) w^t(x,t) \ %labele:transverse_straincore
beginsplit
gamma_zx^c(x,z,t) = dfracpartial u^c(x,z,t)partial z + dfracpartial w^c(x,z,t)partial x = -Bigg(dfrac2 zc^2Bigg) u_0^c + Bigg(dfraczc^2 - dfrac3 z^22 c^3 Bigg) u_0^b + Bigg(1-dfrac3 z^2c^2Bigg) phi_0^c \ + Bigg(dfraczc^2 + dfrac3 z^22 c^3 Bigg) u_0^t + Bigg[-Bigg(dfracc+f_b2c^2Bigg) z + Bigg(dfrac2c+3f_b4 c^3Bigg) z^2Bigg] w_,x^b + Bigg[Bigg(dfracc+f_t2c^2Bigg) z \+ Bigg(dfrac2c+3f_t4 c^3Bigg) z^2Bigg] w_,x^t + Bigg(1-dfracz^2c^2Bigg) w_0,x^c
%labele: shear_straincore
endsplit
endalign
endsubequations
enddocument
equations align
I have three sub-equations and I want them to be left aligned and each to be numbered as (1a), (1b) and (1c). Since there are other equations too, I cannot change my existing packages or introduce a global setting which will disturb other equation. Here is what I have attempted.
documentclass[11pt,a4paper]report
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
beginsplit
epsilon_xx^c(x,z,t) = dfracpartial u^c(x,z,t)partial x = & dfracf_t z^24 c^2 Bigg(1+dfraczcBigg) w_,xx^t + dfracf_b z^24 c^2 Bigg(-1+dfraczcBigg) w_,xx^b \ & + z Bigg(1-dfracz^2c^2Bigg) phi_0,x^c(x,t) +dfracz^22c^2 Bigg(1-dfraczcBigg) u_0,x^b + Bigg(1-dfracz^2c^2Bigg) u_0,x^c
%labele: axial_straincore\% the equation can be tagged using the command tag1a
endsplit \
epsilon_zz^c(x,z,t) = dfracpartial w^c(x,z,t)partial z = Bigg(dfraczc^2 - dfrac12cBigg) w^b(x,t) - dfrac2zc^2 w_0^c(x,t) + Bigg(dfraczc^2 + dfrac12cBigg) w^t(x,t) \ %labele:transverse_straincore
beginsplit
gamma_zx^c(x,z,t) = dfracpartial u^c(x,z,t)partial z + dfracpartial w^c(x,z,t)partial x = -Bigg(dfrac2 zc^2Bigg) u_0^c + Bigg(dfraczc^2 - dfrac3 z^22 c^3 Bigg) u_0^b + Bigg(1-dfrac3 z^2c^2Bigg) phi_0^c \ + Bigg(dfraczc^2 + dfrac3 z^22 c^3 Bigg) u_0^t + Bigg[-Bigg(dfracc+f_b2c^2Bigg) z + Bigg(dfrac2c+3f_b4 c^3Bigg) z^2Bigg] w_,x^b + Bigg[Bigg(dfracc+f_t2c^2Bigg) z \+ Bigg(dfrac2c+3f_t4 c^3Bigg) z^2Bigg] w_,x^t + Bigg(1-dfracz^2c^2Bigg) w_0,x^c
%labele: shear_straincore
endsplit
endalign
endsubequations
enddocument
equations align
equations align
edited 3 hours ago
Skillmon
18.7k11637
18.7k11637
asked 3 hours ago
Kamran Ali Ahmed
234
234
Please make your code compilable (if possible), or at least complete it withdocumentclass...
, the requiredusepackage
's,begindocument
, andenddocument
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.
â Skillmon
3 hours ago
Dear Skillmon, thank you. I have now added required packages, and other commands to make it a minimal working example.
â Kamran Ali Ahmed
3 hours ago
add a comment |Â
Please make your code compilable (if possible), or at least complete it withdocumentclass...
, the requiredusepackage
's,begindocument
, andenddocument
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.
â Skillmon
3 hours ago
Dear Skillmon, thank you. I have now added required packages, and other commands to make it a minimal working example.
â Kamran Ali Ahmed
3 hours ago
Please make your code compilable (if possible), or at least complete it with
documentclass...
, the required usepackage
's, begindocument
, and enddocument
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.â Skillmon
3 hours ago
Please make your code compilable (if possible), or at least complete it with
documentclass...
, the required usepackage
's, begindocument
, and enddocument
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.â Skillmon
3 hours ago
Dear Skillmon, thank you. I have now added required packages, and other commands to make it a minimal working example.
â Kamran Ali Ahmed
3 hours ago
Dear Skillmon, thank you. I have now added required packages, and other commands to make it a minimal working example.
â Kamran Ali Ahmed
3 hours ago
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
accepted
One could use only the align environment and therein the nonumber
macro to suppress the tagging of lines one doesn't want to get a number:
documentclassarticle
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
epsilon_xx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial x nonumber\
&= dfracf_t z^24 c^2 Bigg(1+dfraczcBigg) w_,xx^t +
dfracf_b z^24 c^2 Bigg(-1+dfraczcBigg) w_,xx^b
+ z Bigg(1-dfracz^2c^2Bigg) phi_0,x^c(x,t) nonumber\
&phantom= +dfracz^22c^2 Bigg(1-dfraczcBigg) u_0,x^b
+ Bigg(1-dfracz^2c^2Bigg) u_0,x^c
\[1ex]
epsilon_zz^c(x,z,t) &= dfracpartial w^c(x,z,t)partial znonumber\
&= Bigg(dfraczc^2 - dfrac12cBigg) w^b(x,t) -
dfrac2zc^2 w_0^c(x,t) + Bigg(dfraczc^2 +
dfrac12cBigg) w^t(x,t)
\[1ex]
gamma_zx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial z + dfracpartial
w^c(x,z,t)partial xnonumber\
&= -Bigg(dfrac2 zc^2Bigg) u_0^c + Bigg(dfraczc^2 -
dfrac3 z^22 c^3 Bigg) u_0^b + Bigg(1-dfrac3
z^2c^2Bigg) phi_0^c nonumber\
&phantom= + Bigg(dfraczc^2 + dfrac3 z^22 c^3 Bigg)
u_0^t + Bigg[-Bigg(dfracc+f_b2c^2Bigg) z +
Bigg(dfrac2c+3f_b4 c^3Bigg) z^2Bigg] w_,x^bnonumber\
&phantom=+ Bigg[Bigg(dfracc+f_t2c^2Bigg) z
+ Bigg(dfrac2c+3f_t4 c^3Bigg) z^2Bigg] w_,x^t +
Bigg(1-dfracz^2c^2Bigg) w_0,x^c
%labele: shear_straincore
endalign
endsubequations
enddocument
Also for the future: Code seems to be easier to maintain if it is indented and line broken where it makes sense...
Another solution could be to nest an aligned
environment inside of the align
environment (this would get rid of the phantom=
thingies):
documentclassarticle
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
epsilon_xx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial x nonumber\
&=
beginaligned[t]
&dfracf_t z^24 c^2 Bigg(1+dfraczcBigg) w_,xx^t +
dfracf_b z^24 c^2 Bigg(-1+dfraczcBigg) w_,xx^b
+ z Bigg(1-dfracz^2c^2Bigg) phi_0,x^c(x,t) \
& +dfracz^22c^2 Bigg(1-dfraczcBigg) u_0,x^b
+ Bigg(1-dfracz^2c^2Bigg) u_0,x^c
endaligned
\
epsilon_zz^c(x,z,t) &= dfracpartial w^c(x,z,t)partial znonumber\
&= Bigg(dfraczc^2 - dfrac12cBigg) w^b(x,t) -
dfrac2zc^2 w_0^c(x,t) + Bigg(dfraczc^2 +
dfrac12cBigg) w^t(x,t)
\[1ex]
gamma_zx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial z + dfracpartial
w^c(x,z,t)partial xnonumber\
&=
beginaligned[t]
&-Bigg(dfrac2 zc^2Bigg) u_0^c + Bigg(dfraczc^2 -
dfrac3 z^22 c^3 Bigg) u_0^b + Bigg(1-dfrac3
z^2c^2Bigg) phi_0^c \
& + Bigg(dfraczc^2 + dfrac3 z^22 c^3 Bigg)
u_0^t + Bigg[-Bigg(dfracc+f_b2c^2Bigg) z +
Bigg(dfrac2c+3f_b4 c^3Bigg) z^2Bigg] w_,x^b\
&+ Bigg[Bigg(dfracc+f_t2c^2Bigg) z
+ Bigg(dfrac2c+3f_t4 c^3Bigg) z^2Bigg] w_,x^t +
Bigg(1-dfracz^2c^2Bigg) w_0,x^c
endaligned
%labele: shear_straincore
endalign
endsubequations
enddocument
(result looks similar but the alignment of the tags is different)
Thank you for your help.
â Kamran Ali Ahmed
9 mins ago
add a comment |Â
up vote
1
down vote
If you use split
within an align
environment the &
inside different split
environments will actually line up.
I would use the aligned
environment (also from amsmath
) to split up the parts of the equation between the =
symbols.
documentclassreport
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
beginsplit
epsilon_xx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial x
\
&= beginaligned[t]
& dfracf_t z^24 c^2 Biggl(1+dfraczcBiggr) w_,xx^t
+ dfracf_b z^24 c^2 Biggl(-1+dfraczcBiggr) w_,xx^b
\&
+ z Biggl(1-dfracz^2c^2Biggr) phi_0,x^c(x,t)
+ dfracz^22c^2 Biggl(1-dfraczcBiggr) u_0,x^b
\& %% <- I added this one because your equation is too wide
+ Biggl(1-dfracz^2c^2Biggr) u_0,x^c
endaligned
endsplit
labele:axial_straincore% the equation can be tagged using the command tag1a
\
beginsplit
epsilon_zz^c(x,z,t)
&= dfracpartial w^c(x,z,t)partial z
\
&= Biggl(dfraczc^2 - dfrac12cBiggr) w^b(x,t)
- dfrac2zc^2 w_0^c(x,t)
+ Biggl(dfraczc^2 + dfrac12cBiggr) w^t(x,t)
endsplit
labele:transverse_straincore
\
beginsplit
gamma_zx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial z
+ dfracpartial w^c(x,z,t)partial x
\
&= beginaligned[t]
& -Biggl(dfrac2 zc^2Biggr) u_0^c
+ Biggl(dfraczc^2 - dfrac3 z^22 c^3 Biggr) u_0^b
+ Biggl(1-dfrac3 z^2c^2Biggr) phi_0^c
\&
+ Biggl(dfraczc^2 + dfrac3 z^22 c^3 Biggr) u_0^t
+ Biggr[-Biggl(dfracc+f_b2c^2Biggr) z + Biggl(dfrac2c+3f_b4 c^3Biggr) z^2Biggr] w_,x^b
\&
+ Biggr[Biggl(dfracc+f_t2c^2Biggr) z
+ Biggl(dfrac2c+3f_t4 c^3Biggr) z^2Biggr] w_,x^t
+ Biggl(1-dfracz^2c^2Biggr) w_0,x^c
endaligned
endsplit
labele:shear_straincore
endalign
endsubequations
Reference test: refe:strain_core, refe:axial_straincore, refe:transverse_straincore, refe:shear_straincore.
enddocument
Thank you @circumscribe for your help
â Kamran Ali Ahmed
8 mins ago
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
One could use only the align environment and therein the nonumber
macro to suppress the tagging of lines one doesn't want to get a number:
documentclassarticle
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
epsilon_xx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial x nonumber\
&= dfracf_t z^24 c^2 Bigg(1+dfraczcBigg) w_,xx^t +
dfracf_b z^24 c^2 Bigg(-1+dfraczcBigg) w_,xx^b
+ z Bigg(1-dfracz^2c^2Bigg) phi_0,x^c(x,t) nonumber\
&phantom= +dfracz^22c^2 Bigg(1-dfraczcBigg) u_0,x^b
+ Bigg(1-dfracz^2c^2Bigg) u_0,x^c
\[1ex]
epsilon_zz^c(x,z,t) &= dfracpartial w^c(x,z,t)partial znonumber\
&= Bigg(dfraczc^2 - dfrac12cBigg) w^b(x,t) -
dfrac2zc^2 w_0^c(x,t) + Bigg(dfraczc^2 +
dfrac12cBigg) w^t(x,t)
\[1ex]
gamma_zx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial z + dfracpartial
w^c(x,z,t)partial xnonumber\
&= -Bigg(dfrac2 zc^2Bigg) u_0^c + Bigg(dfraczc^2 -
dfrac3 z^22 c^3 Bigg) u_0^b + Bigg(1-dfrac3
z^2c^2Bigg) phi_0^c nonumber\
&phantom= + Bigg(dfraczc^2 + dfrac3 z^22 c^3 Bigg)
u_0^t + Bigg[-Bigg(dfracc+f_b2c^2Bigg) z +
Bigg(dfrac2c+3f_b4 c^3Bigg) z^2Bigg] w_,x^bnonumber\
&phantom=+ Bigg[Bigg(dfracc+f_t2c^2Bigg) z
+ Bigg(dfrac2c+3f_t4 c^3Bigg) z^2Bigg] w_,x^t +
Bigg(1-dfracz^2c^2Bigg) w_0,x^c
%labele: shear_straincore
endalign
endsubequations
enddocument
Also for the future: Code seems to be easier to maintain if it is indented and line broken where it makes sense...
Another solution could be to nest an aligned
environment inside of the align
environment (this would get rid of the phantom=
thingies):
documentclassarticle
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
epsilon_xx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial x nonumber\
&=
beginaligned[t]
&dfracf_t z^24 c^2 Bigg(1+dfraczcBigg) w_,xx^t +
dfracf_b z^24 c^2 Bigg(-1+dfraczcBigg) w_,xx^b
+ z Bigg(1-dfracz^2c^2Bigg) phi_0,x^c(x,t) \
& +dfracz^22c^2 Bigg(1-dfraczcBigg) u_0,x^b
+ Bigg(1-dfracz^2c^2Bigg) u_0,x^c
endaligned
\
epsilon_zz^c(x,z,t) &= dfracpartial w^c(x,z,t)partial znonumber\
&= Bigg(dfraczc^2 - dfrac12cBigg) w^b(x,t) -
dfrac2zc^2 w_0^c(x,t) + Bigg(dfraczc^2 +
dfrac12cBigg) w^t(x,t)
\[1ex]
gamma_zx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial z + dfracpartial
w^c(x,z,t)partial xnonumber\
&=
beginaligned[t]
&-Bigg(dfrac2 zc^2Bigg) u_0^c + Bigg(dfraczc^2 -
dfrac3 z^22 c^3 Bigg) u_0^b + Bigg(1-dfrac3
z^2c^2Bigg) phi_0^c \
& + Bigg(dfraczc^2 + dfrac3 z^22 c^3 Bigg)
u_0^t + Bigg[-Bigg(dfracc+f_b2c^2Bigg) z +
Bigg(dfrac2c+3f_b4 c^3Bigg) z^2Bigg] w_,x^b\
&+ Bigg[Bigg(dfracc+f_t2c^2Bigg) z
+ Bigg(dfrac2c+3f_t4 c^3Bigg) z^2Bigg] w_,x^t +
Bigg(1-dfracz^2c^2Bigg) w_0,x^c
endaligned
%labele: shear_straincore
endalign
endsubequations
enddocument
(result looks similar but the alignment of the tags is different)
Thank you for your help.
â Kamran Ali Ahmed
9 mins ago
add a comment |Â
up vote
2
down vote
accepted
One could use only the align environment and therein the nonumber
macro to suppress the tagging of lines one doesn't want to get a number:
documentclassarticle
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
epsilon_xx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial x nonumber\
&= dfracf_t z^24 c^2 Bigg(1+dfraczcBigg) w_,xx^t +
dfracf_b z^24 c^2 Bigg(-1+dfraczcBigg) w_,xx^b
+ z Bigg(1-dfracz^2c^2Bigg) phi_0,x^c(x,t) nonumber\
&phantom= +dfracz^22c^2 Bigg(1-dfraczcBigg) u_0,x^b
+ Bigg(1-dfracz^2c^2Bigg) u_0,x^c
\[1ex]
epsilon_zz^c(x,z,t) &= dfracpartial w^c(x,z,t)partial znonumber\
&= Bigg(dfraczc^2 - dfrac12cBigg) w^b(x,t) -
dfrac2zc^2 w_0^c(x,t) + Bigg(dfraczc^2 +
dfrac12cBigg) w^t(x,t)
\[1ex]
gamma_zx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial z + dfracpartial
w^c(x,z,t)partial xnonumber\
&= -Bigg(dfrac2 zc^2Bigg) u_0^c + Bigg(dfraczc^2 -
dfrac3 z^22 c^3 Bigg) u_0^b + Bigg(1-dfrac3
z^2c^2Bigg) phi_0^c nonumber\
&phantom= + Bigg(dfraczc^2 + dfrac3 z^22 c^3 Bigg)
u_0^t + Bigg[-Bigg(dfracc+f_b2c^2Bigg) z +
Bigg(dfrac2c+3f_b4 c^3Bigg) z^2Bigg] w_,x^bnonumber\
&phantom=+ Bigg[Bigg(dfracc+f_t2c^2Bigg) z
+ Bigg(dfrac2c+3f_t4 c^3Bigg) z^2Bigg] w_,x^t +
Bigg(1-dfracz^2c^2Bigg) w_0,x^c
%labele: shear_straincore
endalign
endsubequations
enddocument
Also for the future: Code seems to be easier to maintain if it is indented and line broken where it makes sense...
Another solution could be to nest an aligned
environment inside of the align
environment (this would get rid of the phantom=
thingies):
documentclassarticle
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
epsilon_xx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial x nonumber\
&=
beginaligned[t]
&dfracf_t z^24 c^2 Bigg(1+dfraczcBigg) w_,xx^t +
dfracf_b z^24 c^2 Bigg(-1+dfraczcBigg) w_,xx^b
+ z Bigg(1-dfracz^2c^2Bigg) phi_0,x^c(x,t) \
& +dfracz^22c^2 Bigg(1-dfraczcBigg) u_0,x^b
+ Bigg(1-dfracz^2c^2Bigg) u_0,x^c
endaligned
\
epsilon_zz^c(x,z,t) &= dfracpartial w^c(x,z,t)partial znonumber\
&= Bigg(dfraczc^2 - dfrac12cBigg) w^b(x,t) -
dfrac2zc^2 w_0^c(x,t) + Bigg(dfraczc^2 +
dfrac12cBigg) w^t(x,t)
\[1ex]
gamma_zx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial z + dfracpartial
w^c(x,z,t)partial xnonumber\
&=
beginaligned[t]
&-Bigg(dfrac2 zc^2Bigg) u_0^c + Bigg(dfraczc^2 -
dfrac3 z^22 c^3 Bigg) u_0^b + Bigg(1-dfrac3
z^2c^2Bigg) phi_0^c \
& + Bigg(dfraczc^2 + dfrac3 z^22 c^3 Bigg)
u_0^t + Bigg[-Bigg(dfracc+f_b2c^2Bigg) z +
Bigg(dfrac2c+3f_b4 c^3Bigg) z^2Bigg] w_,x^b\
&+ Bigg[Bigg(dfracc+f_t2c^2Bigg) z
+ Bigg(dfrac2c+3f_t4 c^3Bigg) z^2Bigg] w_,x^t +
Bigg(1-dfracz^2c^2Bigg) w_0,x^c
endaligned
%labele: shear_straincore
endalign
endsubequations
enddocument
(result looks similar but the alignment of the tags is different)
Thank you for your help.
â Kamran Ali Ahmed
9 mins ago
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
One could use only the align environment and therein the nonumber
macro to suppress the tagging of lines one doesn't want to get a number:
documentclassarticle
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
epsilon_xx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial x nonumber\
&= dfracf_t z^24 c^2 Bigg(1+dfraczcBigg) w_,xx^t +
dfracf_b z^24 c^2 Bigg(-1+dfraczcBigg) w_,xx^b
+ z Bigg(1-dfracz^2c^2Bigg) phi_0,x^c(x,t) nonumber\
&phantom= +dfracz^22c^2 Bigg(1-dfraczcBigg) u_0,x^b
+ Bigg(1-dfracz^2c^2Bigg) u_0,x^c
\[1ex]
epsilon_zz^c(x,z,t) &= dfracpartial w^c(x,z,t)partial znonumber\
&= Bigg(dfraczc^2 - dfrac12cBigg) w^b(x,t) -
dfrac2zc^2 w_0^c(x,t) + Bigg(dfraczc^2 +
dfrac12cBigg) w^t(x,t)
\[1ex]
gamma_zx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial z + dfracpartial
w^c(x,z,t)partial xnonumber\
&= -Bigg(dfrac2 zc^2Bigg) u_0^c + Bigg(dfraczc^2 -
dfrac3 z^22 c^3 Bigg) u_0^b + Bigg(1-dfrac3
z^2c^2Bigg) phi_0^c nonumber\
&phantom= + Bigg(dfraczc^2 + dfrac3 z^22 c^3 Bigg)
u_0^t + Bigg[-Bigg(dfracc+f_b2c^2Bigg) z +
Bigg(dfrac2c+3f_b4 c^3Bigg) z^2Bigg] w_,x^bnonumber\
&phantom=+ Bigg[Bigg(dfracc+f_t2c^2Bigg) z
+ Bigg(dfrac2c+3f_t4 c^3Bigg) z^2Bigg] w_,x^t +
Bigg(1-dfracz^2c^2Bigg) w_0,x^c
%labele: shear_straincore
endalign
endsubequations
enddocument
Also for the future: Code seems to be easier to maintain if it is indented and line broken where it makes sense...
Another solution could be to nest an aligned
environment inside of the align
environment (this would get rid of the phantom=
thingies):
documentclassarticle
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
epsilon_xx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial x nonumber\
&=
beginaligned[t]
&dfracf_t z^24 c^2 Bigg(1+dfraczcBigg) w_,xx^t +
dfracf_b z^24 c^2 Bigg(-1+dfraczcBigg) w_,xx^b
+ z Bigg(1-dfracz^2c^2Bigg) phi_0,x^c(x,t) \
& +dfracz^22c^2 Bigg(1-dfraczcBigg) u_0,x^b
+ Bigg(1-dfracz^2c^2Bigg) u_0,x^c
endaligned
\
epsilon_zz^c(x,z,t) &= dfracpartial w^c(x,z,t)partial znonumber\
&= Bigg(dfraczc^2 - dfrac12cBigg) w^b(x,t) -
dfrac2zc^2 w_0^c(x,t) + Bigg(dfraczc^2 +
dfrac12cBigg) w^t(x,t)
\[1ex]
gamma_zx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial z + dfracpartial
w^c(x,z,t)partial xnonumber\
&=
beginaligned[t]
&-Bigg(dfrac2 zc^2Bigg) u_0^c + Bigg(dfraczc^2 -
dfrac3 z^22 c^3 Bigg) u_0^b + Bigg(1-dfrac3
z^2c^2Bigg) phi_0^c \
& + Bigg(dfraczc^2 + dfrac3 z^22 c^3 Bigg)
u_0^t + Bigg[-Bigg(dfracc+f_b2c^2Bigg) z +
Bigg(dfrac2c+3f_b4 c^3Bigg) z^2Bigg] w_,x^b\
&+ Bigg[Bigg(dfracc+f_t2c^2Bigg) z
+ Bigg(dfrac2c+3f_t4 c^3Bigg) z^2Bigg] w_,x^t +
Bigg(1-dfracz^2c^2Bigg) w_0,x^c
endaligned
%labele: shear_straincore
endalign
endsubequations
enddocument
(result looks similar but the alignment of the tags is different)
One could use only the align environment and therein the nonumber
macro to suppress the tagging of lines one doesn't want to get a number:
documentclassarticle
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
epsilon_xx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial x nonumber\
&= dfracf_t z^24 c^2 Bigg(1+dfraczcBigg) w_,xx^t +
dfracf_b z^24 c^2 Bigg(-1+dfraczcBigg) w_,xx^b
+ z Bigg(1-dfracz^2c^2Bigg) phi_0,x^c(x,t) nonumber\
&phantom= +dfracz^22c^2 Bigg(1-dfraczcBigg) u_0,x^b
+ Bigg(1-dfracz^2c^2Bigg) u_0,x^c
\[1ex]
epsilon_zz^c(x,z,t) &= dfracpartial w^c(x,z,t)partial znonumber\
&= Bigg(dfraczc^2 - dfrac12cBigg) w^b(x,t) -
dfrac2zc^2 w_0^c(x,t) + Bigg(dfraczc^2 +
dfrac12cBigg) w^t(x,t)
\[1ex]
gamma_zx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial z + dfracpartial
w^c(x,z,t)partial xnonumber\
&= -Bigg(dfrac2 zc^2Bigg) u_0^c + Bigg(dfraczc^2 -
dfrac3 z^22 c^3 Bigg) u_0^b + Bigg(1-dfrac3
z^2c^2Bigg) phi_0^c nonumber\
&phantom= + Bigg(dfraczc^2 + dfrac3 z^22 c^3 Bigg)
u_0^t + Bigg[-Bigg(dfracc+f_b2c^2Bigg) z +
Bigg(dfrac2c+3f_b4 c^3Bigg) z^2Bigg] w_,x^bnonumber\
&phantom=+ Bigg[Bigg(dfracc+f_t2c^2Bigg) z
+ Bigg(dfrac2c+3f_t4 c^3Bigg) z^2Bigg] w_,x^t +
Bigg(1-dfracz^2c^2Bigg) w_0,x^c
%labele: shear_straincore
endalign
endsubequations
enddocument
Also for the future: Code seems to be easier to maintain if it is indented and line broken where it makes sense...
Another solution could be to nest an aligned
environment inside of the align
environment (this would get rid of the phantom=
thingies):
documentclassarticle
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
epsilon_xx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial x nonumber\
&=
beginaligned[t]
&dfracf_t z^24 c^2 Bigg(1+dfraczcBigg) w_,xx^t +
dfracf_b z^24 c^2 Bigg(-1+dfraczcBigg) w_,xx^b
+ z Bigg(1-dfracz^2c^2Bigg) phi_0,x^c(x,t) \
& +dfracz^22c^2 Bigg(1-dfraczcBigg) u_0,x^b
+ Bigg(1-dfracz^2c^2Bigg) u_0,x^c
endaligned
\
epsilon_zz^c(x,z,t) &= dfracpartial w^c(x,z,t)partial znonumber\
&= Bigg(dfraczc^2 - dfrac12cBigg) w^b(x,t) -
dfrac2zc^2 w_0^c(x,t) + Bigg(dfraczc^2 +
dfrac12cBigg) w^t(x,t)
\[1ex]
gamma_zx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial z + dfracpartial
w^c(x,z,t)partial xnonumber\
&=
beginaligned[t]
&-Bigg(dfrac2 zc^2Bigg) u_0^c + Bigg(dfraczc^2 -
dfrac3 z^22 c^3 Bigg) u_0^b + Bigg(1-dfrac3
z^2c^2Bigg) phi_0^c \
& + Bigg(dfraczc^2 + dfrac3 z^22 c^3 Bigg)
u_0^t + Bigg[-Bigg(dfracc+f_b2c^2Bigg) z +
Bigg(dfrac2c+3f_b4 c^3Bigg) z^2Bigg] w_,x^b\
&+ Bigg[Bigg(dfracc+f_t2c^2Bigg) z
+ Bigg(dfrac2c+3f_t4 c^3Bigg) z^2Bigg] w_,x^t +
Bigg(1-dfracz^2c^2Bigg) w_0,x^c
endaligned
%labele: shear_straincore
endalign
endsubequations
enddocument
(result looks similar but the alignment of the tags is different)
edited 22 mins ago
answered 3 hours ago
Skillmon
18.7k11637
18.7k11637
Thank you for your help.
â Kamran Ali Ahmed
9 mins ago
add a comment |Â
Thank you for your help.
â Kamran Ali Ahmed
9 mins ago
Thank you for your help.
â Kamran Ali Ahmed
9 mins ago
Thank you for your help.
â Kamran Ali Ahmed
9 mins ago
add a comment |Â
up vote
1
down vote
If you use split
within an align
environment the &
inside different split
environments will actually line up.
I would use the aligned
environment (also from amsmath
) to split up the parts of the equation between the =
symbols.
documentclassreport
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
beginsplit
epsilon_xx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial x
\
&= beginaligned[t]
& dfracf_t z^24 c^2 Biggl(1+dfraczcBiggr) w_,xx^t
+ dfracf_b z^24 c^2 Biggl(-1+dfraczcBiggr) w_,xx^b
\&
+ z Biggl(1-dfracz^2c^2Biggr) phi_0,x^c(x,t)
+ dfracz^22c^2 Biggl(1-dfraczcBiggr) u_0,x^b
\& %% <- I added this one because your equation is too wide
+ Biggl(1-dfracz^2c^2Biggr) u_0,x^c
endaligned
endsplit
labele:axial_straincore% the equation can be tagged using the command tag1a
\
beginsplit
epsilon_zz^c(x,z,t)
&= dfracpartial w^c(x,z,t)partial z
\
&= Biggl(dfraczc^2 - dfrac12cBiggr) w^b(x,t)
- dfrac2zc^2 w_0^c(x,t)
+ Biggl(dfraczc^2 + dfrac12cBiggr) w^t(x,t)
endsplit
labele:transverse_straincore
\
beginsplit
gamma_zx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial z
+ dfracpartial w^c(x,z,t)partial x
\
&= beginaligned[t]
& -Biggl(dfrac2 zc^2Biggr) u_0^c
+ Biggl(dfraczc^2 - dfrac3 z^22 c^3 Biggr) u_0^b
+ Biggl(1-dfrac3 z^2c^2Biggr) phi_0^c
\&
+ Biggl(dfraczc^2 + dfrac3 z^22 c^3 Biggr) u_0^t
+ Biggr[-Biggl(dfracc+f_b2c^2Biggr) z + Biggl(dfrac2c+3f_b4 c^3Biggr) z^2Biggr] w_,x^b
\&
+ Biggr[Biggl(dfracc+f_t2c^2Biggr) z
+ Biggl(dfrac2c+3f_t4 c^3Biggr) z^2Biggr] w_,x^t
+ Biggl(1-dfracz^2c^2Biggr) w_0,x^c
endaligned
endsplit
labele:shear_straincore
endalign
endsubequations
Reference test: refe:strain_core, refe:axial_straincore, refe:transverse_straincore, refe:shear_straincore.
enddocument
Thank you @circumscribe for your help
â Kamran Ali Ahmed
8 mins ago
add a comment |Â
up vote
1
down vote
If you use split
within an align
environment the &
inside different split
environments will actually line up.
I would use the aligned
environment (also from amsmath
) to split up the parts of the equation between the =
symbols.
documentclassreport
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
beginsplit
epsilon_xx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial x
\
&= beginaligned[t]
& dfracf_t z^24 c^2 Biggl(1+dfraczcBiggr) w_,xx^t
+ dfracf_b z^24 c^2 Biggl(-1+dfraczcBiggr) w_,xx^b
\&
+ z Biggl(1-dfracz^2c^2Biggr) phi_0,x^c(x,t)
+ dfracz^22c^2 Biggl(1-dfraczcBiggr) u_0,x^b
\& %% <- I added this one because your equation is too wide
+ Biggl(1-dfracz^2c^2Biggr) u_0,x^c
endaligned
endsplit
labele:axial_straincore% the equation can be tagged using the command tag1a
\
beginsplit
epsilon_zz^c(x,z,t)
&= dfracpartial w^c(x,z,t)partial z
\
&= Biggl(dfraczc^2 - dfrac12cBiggr) w^b(x,t)
- dfrac2zc^2 w_0^c(x,t)
+ Biggl(dfraczc^2 + dfrac12cBiggr) w^t(x,t)
endsplit
labele:transverse_straincore
\
beginsplit
gamma_zx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial z
+ dfracpartial w^c(x,z,t)partial x
\
&= beginaligned[t]
& -Biggl(dfrac2 zc^2Biggr) u_0^c
+ Biggl(dfraczc^2 - dfrac3 z^22 c^3 Biggr) u_0^b
+ Biggl(1-dfrac3 z^2c^2Biggr) phi_0^c
\&
+ Biggl(dfraczc^2 + dfrac3 z^22 c^3 Biggr) u_0^t
+ Biggr[-Biggl(dfracc+f_b2c^2Biggr) z + Biggl(dfrac2c+3f_b4 c^3Biggr) z^2Biggr] w_,x^b
\&
+ Biggr[Biggl(dfracc+f_t2c^2Biggr) z
+ Biggl(dfrac2c+3f_t4 c^3Biggr) z^2Biggr] w_,x^t
+ Biggl(1-dfracz^2c^2Biggr) w_0,x^c
endaligned
endsplit
labele:shear_straincore
endalign
endsubequations
Reference test: refe:strain_core, refe:axial_straincore, refe:transverse_straincore, refe:shear_straincore.
enddocument
Thank you @circumscribe for your help
â Kamran Ali Ahmed
8 mins ago
add a comment |Â
up vote
1
down vote
up vote
1
down vote
If you use split
within an align
environment the &
inside different split
environments will actually line up.
I would use the aligned
environment (also from amsmath
) to split up the parts of the equation between the =
symbols.
documentclassreport
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
beginsplit
epsilon_xx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial x
\
&= beginaligned[t]
& dfracf_t z^24 c^2 Biggl(1+dfraczcBiggr) w_,xx^t
+ dfracf_b z^24 c^2 Biggl(-1+dfraczcBiggr) w_,xx^b
\&
+ z Biggl(1-dfracz^2c^2Biggr) phi_0,x^c(x,t)
+ dfracz^22c^2 Biggl(1-dfraczcBiggr) u_0,x^b
\& %% <- I added this one because your equation is too wide
+ Biggl(1-dfracz^2c^2Biggr) u_0,x^c
endaligned
endsplit
labele:axial_straincore% the equation can be tagged using the command tag1a
\
beginsplit
epsilon_zz^c(x,z,t)
&= dfracpartial w^c(x,z,t)partial z
\
&= Biggl(dfraczc^2 - dfrac12cBiggr) w^b(x,t)
- dfrac2zc^2 w_0^c(x,t)
+ Biggl(dfraczc^2 + dfrac12cBiggr) w^t(x,t)
endsplit
labele:transverse_straincore
\
beginsplit
gamma_zx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial z
+ dfracpartial w^c(x,z,t)partial x
\
&= beginaligned[t]
& -Biggl(dfrac2 zc^2Biggr) u_0^c
+ Biggl(dfraczc^2 - dfrac3 z^22 c^3 Biggr) u_0^b
+ Biggl(1-dfrac3 z^2c^2Biggr) phi_0^c
\&
+ Biggl(dfraczc^2 + dfrac3 z^22 c^3 Biggr) u_0^t
+ Biggr[-Biggl(dfracc+f_b2c^2Biggr) z + Biggl(dfrac2c+3f_b4 c^3Biggr) z^2Biggr] w_,x^b
\&
+ Biggr[Biggl(dfracc+f_t2c^2Biggr) z
+ Biggl(dfrac2c+3f_t4 c^3Biggr) z^2Biggr] w_,x^t
+ Biggl(1-dfracz^2c^2Biggr) w_0,x^c
endaligned
endsplit
labele:shear_straincore
endalign
endsubequations
Reference test: refe:strain_core, refe:axial_straincore, refe:transverse_straincore, refe:shear_straincore.
enddocument
If you use split
within an align
environment the &
inside different split
environments will actually line up.
I would use the aligned
environment (also from amsmath
) to split up the parts of the equation between the =
symbols.
documentclassreport
usepackageamsmath
begindocument
beginsubequations
labele:strain_core
beginalign
beginsplit
epsilon_xx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial x
\
&= beginaligned[t]
& dfracf_t z^24 c^2 Biggl(1+dfraczcBiggr) w_,xx^t
+ dfracf_b z^24 c^2 Biggl(-1+dfraczcBiggr) w_,xx^b
\&
+ z Biggl(1-dfracz^2c^2Biggr) phi_0,x^c(x,t)
+ dfracz^22c^2 Biggl(1-dfraczcBiggr) u_0,x^b
\& %% <- I added this one because your equation is too wide
+ Biggl(1-dfracz^2c^2Biggr) u_0,x^c
endaligned
endsplit
labele:axial_straincore% the equation can be tagged using the command tag1a
\
beginsplit
epsilon_zz^c(x,z,t)
&= dfracpartial w^c(x,z,t)partial z
\
&= Biggl(dfraczc^2 - dfrac12cBiggr) w^b(x,t)
- dfrac2zc^2 w_0^c(x,t)
+ Biggl(dfraczc^2 + dfrac12cBiggr) w^t(x,t)
endsplit
labele:transverse_straincore
\
beginsplit
gamma_zx^c(x,z,t)
&= dfracpartial u^c(x,z,t)partial z
+ dfracpartial w^c(x,z,t)partial x
\
&= beginaligned[t]
& -Biggl(dfrac2 zc^2Biggr) u_0^c
+ Biggl(dfraczc^2 - dfrac3 z^22 c^3 Biggr) u_0^b
+ Biggl(1-dfrac3 z^2c^2Biggr) phi_0^c
\&
+ Biggl(dfraczc^2 + dfrac3 z^22 c^3 Biggr) u_0^t
+ Biggr[-Biggl(dfracc+f_b2c^2Biggr) z + Biggl(dfrac2c+3f_b4 c^3Biggr) z^2Biggr] w_,x^b
\&
+ Biggr[Biggl(dfracc+f_t2c^2Biggr) z
+ Biggl(dfrac2c+3f_t4 c^3Biggr) z^2Biggr] w_,x^t
+ Biggl(1-dfracz^2c^2Biggr) w_0,x^c
endaligned
endsplit
labele:shear_straincore
endalign
endsubequations
Reference test: refe:strain_core, refe:axial_straincore, refe:transverse_straincore, refe:shear_straincore.
enddocument
answered 19 mins ago
Circumscribe
2,103321
2,103321
Thank you @circumscribe for your help
â Kamran Ali Ahmed
8 mins ago
add a comment |Â
Thank you @circumscribe for your help
â Kamran Ali Ahmed
8 mins ago
Thank you @circumscribe for your help
â Kamran Ali Ahmed
8 mins ago
Thank you @circumscribe for your help
â Kamran Ali Ahmed
8 mins ago
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f453195%2fhow-to-align-subequations-when-each-subequation-has-multiple-lines%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Please make your code compilable (if possible), or at least complete it with
documentclass...
, the requiredusepackage
's,begindocument
, andenddocument
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.â Skillmon
3 hours ago
Dear Skillmon, thank you. I have now added required packages, and other commands to make it a minimal working example.
â Kamran Ali Ahmed
3 hours ago