How to write a long equation without it going over the margin?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
This is my LaTeX code
I'm using these packages
usepackagephysics
usepackageamsmath
usepackageamssymb,latexsym,mathrsfs
And the code is
documentclass[a4paper]article
usepackage[utf8]inputenc
usepackagephysics
usepackageamsmath
usepackageamssymb,latexsym,mathrsfs
begindocument
beginequation
beginaligned
frac14sumlimits_substackn = 1 \ m = 1 ^ N_ m , N_ m
qty( fracpi^2n^ 2 s _ f ^ 2 + fracpi ^ 2 m ^2
L ^ 2 - tilde E ) underbrace intlimits_0^L qty( cos
frac pi qty( m ^ prime - m ) x L - cos fracpiqty( m ^
prime + m ) z L ) V(s,z) ddz _I_1 , times \
underbrace intlimits_0^s_f qty(cos fpi(n^prime -n)ss_f - cos
frac pi qty( n^prime + n ) s s _ f ) dds_I^prime_1
cdot C_n,m + frac 1 4 sumlimits_substack n =1 \ m = 1
^ N _ n , N _ m intlimits _ 0 ^ s _ f qty( cos
frac pi left( n ^ prime - n right) s s _ f - cos frac
pi left( n ^ prime + n right) s s _ f )dds times \
int _ 0 ^ L left[ cos frac pi left( m ^ prime - m
right) x L - cos frac pi left( m ^ prime + m right) z
L right] V (s,z) ddzcdot C_n,m=0
endaligned
endequation
enddocument
and I get this
I want that my equation doesn't break in the margins.
Thanks a lot.
equations align split
 |Â
show 3 more comments
up vote
1
down vote
favorite
This is my LaTeX code
I'm using these packages
usepackagephysics
usepackageamsmath
usepackageamssymb,latexsym,mathrsfs
And the code is
documentclass[a4paper]article
usepackage[utf8]inputenc
usepackagephysics
usepackageamsmath
usepackageamssymb,latexsym,mathrsfs
begindocument
beginequation
beginaligned
frac14sumlimits_substackn = 1 \ m = 1 ^ N_ m , N_ m
qty( fracpi^2n^ 2 s _ f ^ 2 + fracpi ^ 2 m ^2
L ^ 2 - tilde E ) underbrace intlimits_0^L qty( cos
frac pi qty( m ^ prime - m ) x L - cos fracpiqty( m ^
prime + m ) z L ) V(s,z) ddz _I_1 , times \
underbrace intlimits_0^s_f qty(cos fpi(n^prime -n)ss_f - cos
frac pi qty( n^prime + n ) s s _ f ) dds_I^prime_1
cdot C_n,m + frac 1 4 sumlimits_substack n =1 \ m = 1
^ N _ n , N _ m intlimits _ 0 ^ s _ f qty( cos
frac pi left( n ^ prime - n right) s s _ f - cos frac
pi left( n ^ prime + n right) s s _ f )dds times \
int _ 0 ^ L left[ cos frac pi left( m ^ prime - m
right) x L - cos frac pi left( m ^ prime + m right) z
L right] V (s,z) ddzcdot C_n,m=0
endaligned
endequation
enddocument
and I get this
I want that my equation doesn't break in the margins.
Thanks a lot.
equations align split
What isqty
? Please post a full compilable code.
â Bernard
1 hour ago
It's the same left(..... right), but with a usepackagephysics
â PCat27
1 hour ago
1
What isf
? Your code does not compile.
â Sigur
1 hour ago
1
don't make it hard for people to help you, please make the example complete fromdocumentclass
toenddocument
in particular you ask that it fits the margins without saying what size your page is..
â David Carlisle
1 hour ago
1
why do you havelimits
everywhere and why^prime
instead of'
?
â David Carlisle
1 hour ago
 |Â
show 3 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
This is my LaTeX code
I'm using these packages
usepackagephysics
usepackageamsmath
usepackageamssymb,latexsym,mathrsfs
And the code is
documentclass[a4paper]article
usepackage[utf8]inputenc
usepackagephysics
usepackageamsmath
usepackageamssymb,latexsym,mathrsfs
begindocument
beginequation
beginaligned
frac14sumlimits_substackn = 1 \ m = 1 ^ N_ m , N_ m
qty( fracpi^2n^ 2 s _ f ^ 2 + fracpi ^ 2 m ^2
L ^ 2 - tilde E ) underbrace intlimits_0^L qty( cos
frac pi qty( m ^ prime - m ) x L - cos fracpiqty( m ^
prime + m ) z L ) V(s,z) ddz _I_1 , times \
underbrace intlimits_0^s_f qty(cos fpi(n^prime -n)ss_f - cos
frac pi qty( n^prime + n ) s s _ f ) dds_I^prime_1
cdot C_n,m + frac 1 4 sumlimits_substack n =1 \ m = 1
^ N _ n , N _ m intlimits _ 0 ^ s _ f qty( cos
frac pi left( n ^ prime - n right) s s _ f - cos frac
pi left( n ^ prime + n right) s s _ f )dds times \
int _ 0 ^ L left[ cos frac pi left( m ^ prime - m
right) x L - cos frac pi left( m ^ prime + m right) z
L right] V (s,z) ddzcdot C_n,m=0
endaligned
endequation
enddocument
and I get this
I want that my equation doesn't break in the margins.
Thanks a lot.
equations align split
This is my LaTeX code
I'm using these packages
usepackagephysics
usepackageamsmath
usepackageamssymb,latexsym,mathrsfs
And the code is
documentclass[a4paper]article
usepackage[utf8]inputenc
usepackagephysics
usepackageamsmath
usepackageamssymb,latexsym,mathrsfs
begindocument
beginequation
beginaligned
frac14sumlimits_substackn = 1 \ m = 1 ^ N_ m , N_ m
qty( fracpi^2n^ 2 s _ f ^ 2 + fracpi ^ 2 m ^2
L ^ 2 - tilde E ) underbrace intlimits_0^L qty( cos
frac pi qty( m ^ prime - m ) x L - cos fracpiqty( m ^
prime + m ) z L ) V(s,z) ddz _I_1 , times \
underbrace intlimits_0^s_f qty(cos fpi(n^prime -n)ss_f - cos
frac pi qty( n^prime + n ) s s _ f ) dds_I^prime_1
cdot C_n,m + frac 1 4 sumlimits_substack n =1 \ m = 1
^ N _ n , N _ m intlimits _ 0 ^ s _ f qty( cos
frac pi left( n ^ prime - n right) s s _ f - cos frac
pi left( n ^ prime + n right) s s _ f )dds times \
int _ 0 ^ L left[ cos frac pi left( m ^ prime - m
right) x L - cos frac pi left( m ^ prime + m right) z
L right] V (s,z) ddzcdot C_n,m=0
endaligned
endequation
enddocument
and I get this
I want that my equation doesn't break in the margins.
Thanks a lot.
equations align split
equations align split
edited 1 hour ago
asked 1 hour ago
PCat27
595
595
What isqty
? Please post a full compilable code.
â Bernard
1 hour ago
It's the same left(..... right), but with a usepackagephysics
â PCat27
1 hour ago
1
What isf
? Your code does not compile.
â Sigur
1 hour ago
1
don't make it hard for people to help you, please make the example complete fromdocumentclass
toenddocument
in particular you ask that it fits the margins without saying what size your page is..
â David Carlisle
1 hour ago
1
why do you havelimits
everywhere and why^prime
instead of'
?
â David Carlisle
1 hour ago
 |Â
show 3 more comments
What isqty
? Please post a full compilable code.
â Bernard
1 hour ago
It's the same left(..... right), but with a usepackagephysics
â PCat27
1 hour ago
1
What isf
? Your code does not compile.
â Sigur
1 hour ago
1
don't make it hard for people to help you, please make the example complete fromdocumentclass
toenddocument
in particular you ask that it fits the margins without saying what size your page is..
â David Carlisle
1 hour ago
1
why do you havelimits
everywhere and why^prime
instead of'
?
â David Carlisle
1 hour ago
What is
qty
? Please post a full compilable code.â Bernard
1 hour ago
What is
qty
? Please post a full compilable code.â Bernard
1 hour ago
It's the same left(..... right), but with a usepackagephysics
â PCat27
1 hour ago
It's the same left(..... right), but with a usepackagephysics
â PCat27
1 hour ago
1
1
What is
f
? Your code does not compile.â Sigur
1 hour ago
What is
f
? Your code does not compile.â Sigur
1 hour ago
1
1
don't make it hard for people to help you, please make the example complete from
documentclass
to enddocument
in particular you ask that it fits the margins without saying what size your page is..â David Carlisle
1 hour ago
don't make it hard for people to help you, please make the example complete from
documentclass
to enddocument
in particular you ask that it fits the margins without saying what size your page is..â David Carlisle
1 hour ago
1
1
why do you have
limits
everywhere and why ^prime
instead of '
?â David Carlisle
1 hour ago
why do you have
limits
everywhere and why ^prime
instead of '
?â David Carlisle
1 hour ago
 |Â
show 3 more comments
2 Answers
2
active
oldest
votes
up vote
2
down vote
accepted
Well, given that you introduce the two abbreviations, I suspect that you will agree with me that this equation is a bit bulky. I'd hence like to argue that the readers, and even after some months you yourself, will appreciate if you disentangle things a bit, which at the same time solves the issue.
documentclass[a4paper]article
usepackage[utf8]inputenc
usepackagephysics
usepackageamsmath
usepackageamssymb,latexsym,mathrsfs
begindocument
beginalign
frac14&sumlimits_substackn = 1 \ m = 1 ^ N_ m , N_ m
qty( fracpi^2n^ 2 s _ f ^ 2 + fracpi ^ 2 m ^2
L ^ 2 - tilde E ) I_1
times I^prime_1
cdot C_n,m notag \
+ frac 14& sumlimits_substack n =1 \ m = 1
^ N _ n , N _ m intlimits _ 0 ^ s _ f qty( cos
frac pi left( n ^ prime - n right) s s _ f - cos frac
pi left( n ^ prime + n right) s s _ f )dds & notag \
× int _ 0 ^ L left[ cos frac pi left( m ^ prime - m
right) x L - cos frac pi left( m ^ prime + m right) z
L right] V (s,z) ddzcdot C_n,m =0;,
endalign
where
beginsubequations
beginalign
I_1&=intlimits_0^L qty( cos
frac pi qty( m ^ prime - m ) x L - cos fracpiqty( m ^
prime + m ) z L ) V(s,z) ddz;, \
I^prime_1&=intlimits_0^s_f qty(cos fpi(n^prime -n)ss_f - cos
frac pi qty( n^prime + n ) s s _ f ) dds;.
endalign
endsubequations
enddocument
You're a good designer, it looks better, thank you very much.
â PCat27
23 mins ago
add a comment |Â
up vote
1
down vote
I propose to use the medsize
environment from nccmath
, and alsp a variant with the multlined
environment, instead of aligned
. Note you don't have to load latexsym
: its symbols are found in amssymb
, and it's simpler to type '
rather than ^prime
. For the integral with limits, you simply can pass limits
as an option to amsmath
.
documentclass[intlimits]article
usepackage[showframe]geometry
usepackagephysics
usepackagemathtools, nccmath
usepackageamssymb,mathrsfs
begindocument
beginequation
beginmedsize
beginaligned
frac14sum_substackn = 1 \ m = 1^N_m, N _m
qty(fracpi^2 n^2 s_f^2 + fracpi^2 m^2 L^2 - tilde E )
underbrace int_0^L qty( cos frac pi qty( m' - m )
x L - cos fracpiqty( m' + m ) z L ) V(s,z) ddz _I_1 , times \
underbrace int_0^s_mkern-2mumathrlap f qty(cos fracpi(n' -n)ss_f - cos fracpi qty( n' + n ) s s_ f ) dds_I'_1 cdot C_n,m + frac 1 4 sumlimits_substack n =1 \ m = 1 ^ N _ n , N _ m int _ 0^ s_mkern-2mumathrlap f qty( cos frac pi left( n' - n right) s s_f - cos fracpi left( n' + n right)s s _f)dds times \
int_0^L left[cos fracpi left(m' - m right) x L - cos fracpi left( m' + m right)z L right] V (s,z) ddzcdot C_n,m=0
endaligned
endmedsize
endequation
bigskip
beginequation
beginmedsize
beginmultlined
frac14sum_substackn = 1 \ m = 1^N_m, N _m
qty(fracpi^2 n^2 s_f^2 + fracpi^2 m^2 L^2 - tilde E )
underbrace int_0^L qty( cos frac pi qty( m' - m )
x L - cos fracpiqty( m' + m ) z L ) V(s,z) ddz _I_1 , times \
underbrace int_0^s_mkern-2mumathrlap f qty(cos fracpi(n' -n)ss_f - cos fracpi qty( n' + n ) s s_ f ) dds_I'_1 cdot C_n,m + frac 1 4 sumlimits_substack n =1 \ m = 1 ^ N _ n , N _ m int _ 0^ s_mkern-2mumathrlap f qty( cos frac pi left( n' - n right) s s_f - cos fracpi left( n' + n right)s s _f)dds times \
int_0^L left[cos fracpi left(m' - m right) x L - cos fracpi left( m' + m right)z L right] V (s,z) ddzcdot C_n,m=0
endmultlined
endmedsize
endequation
enddocument
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
Well, given that you introduce the two abbreviations, I suspect that you will agree with me that this equation is a bit bulky. I'd hence like to argue that the readers, and even after some months you yourself, will appreciate if you disentangle things a bit, which at the same time solves the issue.
documentclass[a4paper]article
usepackage[utf8]inputenc
usepackagephysics
usepackageamsmath
usepackageamssymb,latexsym,mathrsfs
begindocument
beginalign
frac14&sumlimits_substackn = 1 \ m = 1 ^ N_ m , N_ m
qty( fracpi^2n^ 2 s _ f ^ 2 + fracpi ^ 2 m ^2
L ^ 2 - tilde E ) I_1
times I^prime_1
cdot C_n,m notag \
+ frac 14& sumlimits_substack n =1 \ m = 1
^ N _ n , N _ m intlimits _ 0 ^ s _ f qty( cos
frac pi left( n ^ prime - n right) s s _ f - cos frac
pi left( n ^ prime + n right) s s _ f )dds & notag \
× int _ 0 ^ L left[ cos frac pi left( m ^ prime - m
right) x L - cos frac pi left( m ^ prime + m right) z
L right] V (s,z) ddzcdot C_n,m =0;,
endalign
where
beginsubequations
beginalign
I_1&=intlimits_0^L qty( cos
frac pi qty( m ^ prime - m ) x L - cos fracpiqty( m ^
prime + m ) z L ) V(s,z) ddz;, \
I^prime_1&=intlimits_0^s_f qty(cos fpi(n^prime -n)ss_f - cos
frac pi qty( n^prime + n ) s s _ f ) dds;.
endalign
endsubequations
enddocument
You're a good designer, it looks better, thank you very much.
â PCat27
23 mins ago
add a comment |Â
up vote
2
down vote
accepted
Well, given that you introduce the two abbreviations, I suspect that you will agree with me that this equation is a bit bulky. I'd hence like to argue that the readers, and even after some months you yourself, will appreciate if you disentangle things a bit, which at the same time solves the issue.
documentclass[a4paper]article
usepackage[utf8]inputenc
usepackagephysics
usepackageamsmath
usepackageamssymb,latexsym,mathrsfs
begindocument
beginalign
frac14&sumlimits_substackn = 1 \ m = 1 ^ N_ m , N_ m
qty( fracpi^2n^ 2 s _ f ^ 2 + fracpi ^ 2 m ^2
L ^ 2 - tilde E ) I_1
times I^prime_1
cdot C_n,m notag \
+ frac 14& sumlimits_substack n =1 \ m = 1
^ N _ n , N _ m intlimits _ 0 ^ s _ f qty( cos
frac pi left( n ^ prime - n right) s s _ f - cos frac
pi left( n ^ prime + n right) s s _ f )dds & notag \
× int _ 0 ^ L left[ cos frac pi left( m ^ prime - m
right) x L - cos frac pi left( m ^ prime + m right) z
L right] V (s,z) ddzcdot C_n,m =0;,
endalign
where
beginsubequations
beginalign
I_1&=intlimits_0^L qty( cos
frac pi qty( m ^ prime - m ) x L - cos fracpiqty( m ^
prime + m ) z L ) V(s,z) ddz;, \
I^prime_1&=intlimits_0^s_f qty(cos fpi(n^prime -n)ss_f - cos
frac pi qty( n^prime + n ) s s _ f ) dds;.
endalign
endsubequations
enddocument
You're a good designer, it looks better, thank you very much.
â PCat27
23 mins ago
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Well, given that you introduce the two abbreviations, I suspect that you will agree with me that this equation is a bit bulky. I'd hence like to argue that the readers, and even after some months you yourself, will appreciate if you disentangle things a bit, which at the same time solves the issue.
documentclass[a4paper]article
usepackage[utf8]inputenc
usepackagephysics
usepackageamsmath
usepackageamssymb,latexsym,mathrsfs
begindocument
beginalign
frac14&sumlimits_substackn = 1 \ m = 1 ^ N_ m , N_ m
qty( fracpi^2n^ 2 s _ f ^ 2 + fracpi ^ 2 m ^2
L ^ 2 - tilde E ) I_1
times I^prime_1
cdot C_n,m notag \
+ frac 14& sumlimits_substack n =1 \ m = 1
^ N _ n , N _ m intlimits _ 0 ^ s _ f qty( cos
frac pi left( n ^ prime - n right) s s _ f - cos frac
pi left( n ^ prime + n right) s s _ f )dds & notag \
× int _ 0 ^ L left[ cos frac pi left( m ^ prime - m
right) x L - cos frac pi left( m ^ prime + m right) z
L right] V (s,z) ddzcdot C_n,m =0;,
endalign
where
beginsubequations
beginalign
I_1&=intlimits_0^L qty( cos
frac pi qty( m ^ prime - m ) x L - cos fracpiqty( m ^
prime + m ) z L ) V(s,z) ddz;, \
I^prime_1&=intlimits_0^s_f qty(cos fpi(n^prime -n)ss_f - cos
frac pi qty( n^prime + n ) s s _ f ) dds;.
endalign
endsubequations
enddocument
Well, given that you introduce the two abbreviations, I suspect that you will agree with me that this equation is a bit bulky. I'd hence like to argue that the readers, and even after some months you yourself, will appreciate if you disentangle things a bit, which at the same time solves the issue.
documentclass[a4paper]article
usepackage[utf8]inputenc
usepackagephysics
usepackageamsmath
usepackageamssymb,latexsym,mathrsfs
begindocument
beginalign
frac14&sumlimits_substackn = 1 \ m = 1 ^ N_ m , N_ m
qty( fracpi^2n^ 2 s _ f ^ 2 + fracpi ^ 2 m ^2
L ^ 2 - tilde E ) I_1
times I^prime_1
cdot C_n,m notag \
+ frac 14& sumlimits_substack n =1 \ m = 1
^ N _ n , N _ m intlimits _ 0 ^ s _ f qty( cos
frac pi left( n ^ prime - n right) s s _ f - cos frac
pi left( n ^ prime + n right) s s _ f )dds & notag \
× int _ 0 ^ L left[ cos frac pi left( m ^ prime - m
right) x L - cos frac pi left( m ^ prime + m right) z
L right] V (s,z) ddzcdot C_n,m =0;,
endalign
where
beginsubequations
beginalign
I_1&=intlimits_0^L qty( cos
frac pi qty( m ^ prime - m ) x L - cos fracpiqty( m ^
prime + m ) z L ) V(s,z) ddz;, \
I^prime_1&=intlimits_0^s_f qty(cos fpi(n^prime -n)ss_f - cos
frac pi qty( n^prime + n ) s s _ f ) dds;.
endalign
endsubequations
enddocument
answered 37 mins ago
marmot
71.3k476152
71.3k476152
You're a good designer, it looks better, thank you very much.
â PCat27
23 mins ago
add a comment |Â
You're a good designer, it looks better, thank you very much.
â PCat27
23 mins ago
You're a good designer, it looks better, thank you very much.
â PCat27
23 mins ago
You're a good designer, it looks better, thank you very much.
â PCat27
23 mins ago
add a comment |Â
up vote
1
down vote
I propose to use the medsize
environment from nccmath
, and alsp a variant with the multlined
environment, instead of aligned
. Note you don't have to load latexsym
: its symbols are found in amssymb
, and it's simpler to type '
rather than ^prime
. For the integral with limits, you simply can pass limits
as an option to amsmath
.
documentclass[intlimits]article
usepackage[showframe]geometry
usepackagephysics
usepackagemathtools, nccmath
usepackageamssymb,mathrsfs
begindocument
beginequation
beginmedsize
beginaligned
frac14sum_substackn = 1 \ m = 1^N_m, N _m
qty(fracpi^2 n^2 s_f^2 + fracpi^2 m^2 L^2 - tilde E )
underbrace int_0^L qty( cos frac pi qty( m' - m )
x L - cos fracpiqty( m' + m ) z L ) V(s,z) ddz _I_1 , times \
underbrace int_0^s_mkern-2mumathrlap f qty(cos fracpi(n' -n)ss_f - cos fracpi qty( n' + n ) s s_ f ) dds_I'_1 cdot C_n,m + frac 1 4 sumlimits_substack n =1 \ m = 1 ^ N _ n , N _ m int _ 0^ s_mkern-2mumathrlap f qty( cos frac pi left( n' - n right) s s_f - cos fracpi left( n' + n right)s s _f)dds times \
int_0^L left[cos fracpi left(m' - m right) x L - cos fracpi left( m' + m right)z L right] V (s,z) ddzcdot C_n,m=0
endaligned
endmedsize
endequation
bigskip
beginequation
beginmedsize
beginmultlined
frac14sum_substackn = 1 \ m = 1^N_m, N _m
qty(fracpi^2 n^2 s_f^2 + fracpi^2 m^2 L^2 - tilde E )
underbrace int_0^L qty( cos frac pi qty( m' - m )
x L - cos fracpiqty( m' + m ) z L ) V(s,z) ddz _I_1 , times \
underbrace int_0^s_mkern-2mumathrlap f qty(cos fracpi(n' -n)ss_f - cos fracpi qty( n' + n ) s s_ f ) dds_I'_1 cdot C_n,m + frac 1 4 sumlimits_substack n =1 \ m = 1 ^ N _ n , N _ m int _ 0^ s_mkern-2mumathrlap f qty( cos frac pi left( n' - n right) s s_f - cos fracpi left( n' + n right)s s _f)dds times \
int_0^L left[cos fracpi left(m' - m right) x L - cos fracpi left( m' + m right)z L right] V (s,z) ddzcdot C_n,m=0
endmultlined
endmedsize
endequation
enddocument
add a comment |Â
up vote
1
down vote
I propose to use the medsize
environment from nccmath
, and alsp a variant with the multlined
environment, instead of aligned
. Note you don't have to load latexsym
: its symbols are found in amssymb
, and it's simpler to type '
rather than ^prime
. For the integral with limits, you simply can pass limits
as an option to amsmath
.
documentclass[intlimits]article
usepackage[showframe]geometry
usepackagephysics
usepackagemathtools, nccmath
usepackageamssymb,mathrsfs
begindocument
beginequation
beginmedsize
beginaligned
frac14sum_substackn = 1 \ m = 1^N_m, N _m
qty(fracpi^2 n^2 s_f^2 + fracpi^2 m^2 L^2 - tilde E )
underbrace int_0^L qty( cos frac pi qty( m' - m )
x L - cos fracpiqty( m' + m ) z L ) V(s,z) ddz _I_1 , times \
underbrace int_0^s_mkern-2mumathrlap f qty(cos fracpi(n' -n)ss_f - cos fracpi qty( n' + n ) s s_ f ) dds_I'_1 cdot C_n,m + frac 1 4 sumlimits_substack n =1 \ m = 1 ^ N _ n , N _ m int _ 0^ s_mkern-2mumathrlap f qty( cos frac pi left( n' - n right) s s_f - cos fracpi left( n' + n right)s s _f)dds times \
int_0^L left[cos fracpi left(m' - m right) x L - cos fracpi left( m' + m right)z L right] V (s,z) ddzcdot C_n,m=0
endaligned
endmedsize
endequation
bigskip
beginequation
beginmedsize
beginmultlined
frac14sum_substackn = 1 \ m = 1^N_m, N _m
qty(fracpi^2 n^2 s_f^2 + fracpi^2 m^2 L^2 - tilde E )
underbrace int_0^L qty( cos frac pi qty( m' - m )
x L - cos fracpiqty( m' + m ) z L ) V(s,z) ddz _I_1 , times \
underbrace int_0^s_mkern-2mumathrlap f qty(cos fracpi(n' -n)ss_f - cos fracpi qty( n' + n ) s s_ f ) dds_I'_1 cdot C_n,m + frac 1 4 sumlimits_substack n =1 \ m = 1 ^ N _ n , N _ m int _ 0^ s_mkern-2mumathrlap f qty( cos frac pi left( n' - n right) s s_f - cos fracpi left( n' + n right)s s _f)dds times \
int_0^L left[cos fracpi left(m' - m right) x L - cos fracpi left( m' + m right)z L right] V (s,z) ddzcdot C_n,m=0
endmultlined
endmedsize
endequation
enddocument
add a comment |Â
up vote
1
down vote
up vote
1
down vote
I propose to use the medsize
environment from nccmath
, and alsp a variant with the multlined
environment, instead of aligned
. Note you don't have to load latexsym
: its symbols are found in amssymb
, and it's simpler to type '
rather than ^prime
. For the integral with limits, you simply can pass limits
as an option to amsmath
.
documentclass[intlimits]article
usepackage[showframe]geometry
usepackagephysics
usepackagemathtools, nccmath
usepackageamssymb,mathrsfs
begindocument
beginequation
beginmedsize
beginaligned
frac14sum_substackn = 1 \ m = 1^N_m, N _m
qty(fracpi^2 n^2 s_f^2 + fracpi^2 m^2 L^2 - tilde E )
underbrace int_0^L qty( cos frac pi qty( m' - m )
x L - cos fracpiqty( m' + m ) z L ) V(s,z) ddz _I_1 , times \
underbrace int_0^s_mkern-2mumathrlap f qty(cos fracpi(n' -n)ss_f - cos fracpi qty( n' + n ) s s_ f ) dds_I'_1 cdot C_n,m + frac 1 4 sumlimits_substack n =1 \ m = 1 ^ N _ n , N _ m int _ 0^ s_mkern-2mumathrlap f qty( cos frac pi left( n' - n right) s s_f - cos fracpi left( n' + n right)s s _f)dds times \
int_0^L left[cos fracpi left(m' - m right) x L - cos fracpi left( m' + m right)z L right] V (s,z) ddzcdot C_n,m=0
endaligned
endmedsize
endequation
bigskip
beginequation
beginmedsize
beginmultlined
frac14sum_substackn = 1 \ m = 1^N_m, N _m
qty(fracpi^2 n^2 s_f^2 + fracpi^2 m^2 L^2 - tilde E )
underbrace int_0^L qty( cos frac pi qty( m' - m )
x L - cos fracpiqty( m' + m ) z L ) V(s,z) ddz _I_1 , times \
underbrace int_0^s_mkern-2mumathrlap f qty(cos fracpi(n' -n)ss_f - cos fracpi qty( n' + n ) s s_ f ) dds_I'_1 cdot C_n,m + frac 1 4 sumlimits_substack n =1 \ m = 1 ^ N _ n , N _ m int _ 0^ s_mkern-2mumathrlap f qty( cos frac pi left( n' - n right) s s_f - cos fracpi left( n' + n right)s s _f)dds times \
int_0^L left[cos fracpi left(m' - m right) x L - cos fracpi left( m' + m right)z L right] V (s,z) ddzcdot C_n,m=0
endmultlined
endmedsize
endequation
enddocument
I propose to use the medsize
environment from nccmath
, and alsp a variant with the multlined
environment, instead of aligned
. Note you don't have to load latexsym
: its symbols are found in amssymb
, and it's simpler to type '
rather than ^prime
. For the integral with limits, you simply can pass limits
as an option to amsmath
.
documentclass[intlimits]article
usepackage[showframe]geometry
usepackagephysics
usepackagemathtools, nccmath
usepackageamssymb,mathrsfs
begindocument
beginequation
beginmedsize
beginaligned
frac14sum_substackn = 1 \ m = 1^N_m, N _m
qty(fracpi^2 n^2 s_f^2 + fracpi^2 m^2 L^2 - tilde E )
underbrace int_0^L qty( cos frac pi qty( m' - m )
x L - cos fracpiqty( m' + m ) z L ) V(s,z) ddz _I_1 , times \
underbrace int_0^s_mkern-2mumathrlap f qty(cos fracpi(n' -n)ss_f - cos fracpi qty( n' + n ) s s_ f ) dds_I'_1 cdot C_n,m + frac 1 4 sumlimits_substack n =1 \ m = 1 ^ N _ n , N _ m int _ 0^ s_mkern-2mumathrlap f qty( cos frac pi left( n' - n right) s s_f - cos fracpi left( n' + n right)s s _f)dds times \
int_0^L left[cos fracpi left(m' - m right) x L - cos fracpi left( m' + m right)z L right] V (s,z) ddzcdot C_n,m=0
endaligned
endmedsize
endequation
bigskip
beginequation
beginmedsize
beginmultlined
frac14sum_substackn = 1 \ m = 1^N_m, N _m
qty(fracpi^2 n^2 s_f^2 + fracpi^2 m^2 L^2 - tilde E )
underbrace int_0^L qty( cos frac pi qty( m' - m )
x L - cos fracpiqty( m' + m ) z L ) V(s,z) ddz _I_1 , times \
underbrace int_0^s_mkern-2mumathrlap f qty(cos fracpi(n' -n)ss_f - cos fracpi qty( n' + n ) s s_ f ) dds_I'_1 cdot C_n,m + frac 1 4 sumlimits_substack n =1 \ m = 1 ^ N _ n , N _ m int _ 0^ s_mkern-2mumathrlap f qty( cos frac pi left( n' - n right) s s_f - cos fracpi left( n' + n right)s s _f)dds times \
int_0^L left[cos fracpi left(m' - m right) x L - cos fracpi left( m' + m right)z L right] V (s,z) ddzcdot C_n,m=0
endmultlined
endmedsize
endequation
enddocument
answered 18 mins ago
Bernard
160k766192
160k766192
add a comment |Â
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%2f458263%2fhow-to-write-a-long-equation-without-it-going-over-the-margin%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
What is
qty
? Please post a full compilable code.â Bernard
1 hour ago
It's the same left(..... right), but with a usepackagephysics
â PCat27
1 hour ago
1
What is
f
? Your code does not compile.â Sigur
1 hour ago
1
don't make it hard for people to help you, please make the example complete from
documentclass
toenddocument
in particular you ask that it fits the margins without saying what size your page is..â David Carlisle
1 hour ago
1
why do you have
limits
everywhere and why^prime
instead of'
?â David Carlisle
1 hour ago