Aligning limits of multiple summations
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I have an optimisation problem wherein I have some trouble with the alignment of the limits of consecutive summations.
beginalign
max sumlimits_kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
endalign
As you can observe, there seems to be a problem with the alignment of the limits. How can I align them so that the limits appear to be in the same line throughout the equation?
alignment
add a comment |Â
up vote
2
down vote
favorite
I have an optimisation problem wherein I have some trouble with the alignment of the limits of consecutive summations.
beginalign
max sumlimits_kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
endalign
As you can observe, there seems to be a problem with the alignment of the limits. How can I align them so that the limits appear to be in the same line throughout the equation?
alignment
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I have an optimisation problem wherein I have some trouble with the alignment of the limits of consecutive summations.
beginalign
max sumlimits_kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
endalign
As you can observe, there seems to be a problem with the alignment of the limits. How can I align them so that the limits appear to be in the same line throughout the equation?
alignment
I have an optimisation problem wherein I have some trouble with the alignment of the limits of consecutive summations.
beginalign
max sumlimits_kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
endalign
As you can observe, there seems to be a problem with the alignment of the limits. How can I align them so that the limits appear to be in the same line throughout the equation?
alignment
alignment
edited 1 hour ago
xyz
32
32
asked 5 hours ago
crypto
362113
362113
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
Use a vphantom
.
documentclassarticle
usepackageamsmath
begindocument
beginalign
max sumlimits_vphantomA^k,V_L kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
endalign
enddocument
Here is an alternative, however, I am not sure if I would go for it.
documentclassarticle
usepackageamsmath
newcommandclimits[1]limits_strut #1
begindocument
beginalign
max sumclimitskin Ksumclimitsain A^k,V_L(f,v)x^k_a
endalign
enddocument
One can produce even more complicated macros. The danger with those is that you may drown in your own macros and eventually, when you share your TeX files with others, these things will become very cumbersome, especially if your collaborators also have their own macros or very specialized packages.
Though the solution seems nice, its a tedious process expecially when we have multiple summations such as those above and also the readability of the code appears reduced.
â crypto
5 hours ago
@crypto Yes. Alternatively you could just insert astrut
everywhere:max sumlimits_strut kin Ksumlimits_strut ain A^k,V_L(f,v)x^k_a
or even define your version oflimits
in such a way that it injects astrut
.
â marmot
5 hours ago
add a comment |Â
up vote
1
down vote
The adjustlimits
command from the mathtools
package is designed for this:
documentclassarticle
usepackagemathtools% loads `amsmath'
begindocument
beginalign
max adjustlimitssum_kin K sum_ain A^k,V_L!(f,v)x^k_a
endalign
enddocument
I also added a negative âÂÂkernâ between the A^k,V_L
and the (f,v)
: Feel free to remove it if you donâÂÂt like the result.
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
Use a vphantom
.
documentclassarticle
usepackageamsmath
begindocument
beginalign
max sumlimits_vphantomA^k,V_L kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
endalign
enddocument
Here is an alternative, however, I am not sure if I would go for it.
documentclassarticle
usepackageamsmath
newcommandclimits[1]limits_strut #1
begindocument
beginalign
max sumclimitskin Ksumclimitsain A^k,V_L(f,v)x^k_a
endalign
enddocument
One can produce even more complicated macros. The danger with those is that you may drown in your own macros and eventually, when you share your TeX files with others, these things will become very cumbersome, especially if your collaborators also have their own macros or very specialized packages.
Though the solution seems nice, its a tedious process expecially when we have multiple summations such as those above and also the readability of the code appears reduced.
â crypto
5 hours ago
@crypto Yes. Alternatively you could just insert astrut
everywhere:max sumlimits_strut kin Ksumlimits_strut ain A^k,V_L(f,v)x^k_a
or even define your version oflimits
in such a way that it injects astrut
.
â marmot
5 hours ago
add a comment |Â
up vote
2
down vote
Use a vphantom
.
documentclassarticle
usepackageamsmath
begindocument
beginalign
max sumlimits_vphantomA^k,V_L kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
endalign
enddocument
Here is an alternative, however, I am not sure if I would go for it.
documentclassarticle
usepackageamsmath
newcommandclimits[1]limits_strut #1
begindocument
beginalign
max sumclimitskin Ksumclimitsain A^k,V_L(f,v)x^k_a
endalign
enddocument
One can produce even more complicated macros. The danger with those is that you may drown in your own macros and eventually, when you share your TeX files with others, these things will become very cumbersome, especially if your collaborators also have their own macros or very specialized packages.
Though the solution seems nice, its a tedious process expecially when we have multiple summations such as those above and also the readability of the code appears reduced.
â crypto
5 hours ago
@crypto Yes. Alternatively you could just insert astrut
everywhere:max sumlimits_strut kin Ksumlimits_strut ain A^k,V_L(f,v)x^k_a
or even define your version oflimits
in such a way that it injects astrut
.
â marmot
5 hours ago
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Use a vphantom
.
documentclassarticle
usepackageamsmath
begindocument
beginalign
max sumlimits_vphantomA^k,V_L kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
endalign
enddocument
Here is an alternative, however, I am not sure if I would go for it.
documentclassarticle
usepackageamsmath
newcommandclimits[1]limits_strut #1
begindocument
beginalign
max sumclimitskin Ksumclimitsain A^k,V_L(f,v)x^k_a
endalign
enddocument
One can produce even more complicated macros. The danger with those is that you may drown in your own macros and eventually, when you share your TeX files with others, these things will become very cumbersome, especially if your collaborators also have their own macros or very specialized packages.
Use a vphantom
.
documentclassarticle
usepackageamsmath
begindocument
beginalign
max sumlimits_vphantomA^k,V_L kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
endalign
enddocument
Here is an alternative, however, I am not sure if I would go for it.
documentclassarticle
usepackageamsmath
newcommandclimits[1]limits_strut #1
begindocument
beginalign
max sumclimitskin Ksumclimitsain A^k,V_L(f,v)x^k_a
endalign
enddocument
One can produce even more complicated macros. The danger with those is that you may drown in your own macros and eventually, when you share your TeX files with others, these things will become very cumbersome, especially if your collaborators also have their own macros or very specialized packages.
edited 5 hours ago
answered 5 hours ago
marmot
57.3k462124
57.3k462124
Though the solution seems nice, its a tedious process expecially when we have multiple summations such as those above and also the readability of the code appears reduced.
â crypto
5 hours ago
@crypto Yes. Alternatively you could just insert astrut
everywhere:max sumlimits_strut kin Ksumlimits_strut ain A^k,V_L(f,v)x^k_a
or even define your version oflimits
in such a way that it injects astrut
.
â marmot
5 hours ago
add a comment |Â
Though the solution seems nice, its a tedious process expecially when we have multiple summations such as those above and also the readability of the code appears reduced.
â crypto
5 hours ago
@crypto Yes. Alternatively you could just insert astrut
everywhere:max sumlimits_strut kin Ksumlimits_strut ain A^k,V_L(f,v)x^k_a
or even define your version oflimits
in such a way that it injects astrut
.
â marmot
5 hours ago
Though the solution seems nice, its a tedious process expecially when we have multiple summations such as those above and also the readability of the code appears reduced.
â crypto
5 hours ago
Though the solution seems nice, its a tedious process expecially when we have multiple summations such as those above and also the readability of the code appears reduced.
â crypto
5 hours ago
@crypto Yes. Alternatively you could just insert a
strut
everywhere: max sumlimits_strut kin Ksumlimits_strut ain A^k,V_L(f,v)x^k_a
or even define your version of limits
in such a way that it injects a strut
.â marmot
5 hours ago
@crypto Yes. Alternatively you could just insert a
strut
everywhere: max sumlimits_strut kin Ksumlimits_strut ain A^k,V_L(f,v)x^k_a
or even define your version of limits
in such a way that it injects a strut
.â marmot
5 hours ago
add a comment |Â
up vote
1
down vote
The adjustlimits
command from the mathtools
package is designed for this:
documentclassarticle
usepackagemathtools% loads `amsmath'
begindocument
beginalign
max adjustlimitssum_kin K sum_ain A^k,V_L!(f,v)x^k_a
endalign
enddocument
I also added a negative âÂÂkernâ between the A^k,V_L
and the (f,v)
: Feel free to remove it if you donâÂÂt like the result.
add a comment |Â
up vote
1
down vote
The adjustlimits
command from the mathtools
package is designed for this:
documentclassarticle
usepackagemathtools% loads `amsmath'
begindocument
beginalign
max adjustlimitssum_kin K sum_ain A^k,V_L!(f,v)x^k_a
endalign
enddocument
I also added a negative âÂÂkernâ between the A^k,V_L
and the (f,v)
: Feel free to remove it if you donâÂÂt like the result.
add a comment |Â
up vote
1
down vote
up vote
1
down vote
The adjustlimits
command from the mathtools
package is designed for this:
documentclassarticle
usepackagemathtools% loads `amsmath'
begindocument
beginalign
max adjustlimitssum_kin K sum_ain A^k,V_L!(f,v)x^k_a
endalign
enddocument
I also added a negative âÂÂkernâ between the A^k,V_L
and the (f,v)
: Feel free to remove it if you donâÂÂt like the result.
The adjustlimits
command from the mathtools
package is designed for this:
documentclassarticle
usepackagemathtools% loads `amsmath'
begindocument
beginalign
max adjustlimitssum_kin K sum_ain A^k,V_L!(f,v)x^k_a
endalign
enddocument
I also added a negative âÂÂkernâ between the A^k,V_L
and the (f,v)
: Feel free to remove it if you donâÂÂt like the result.
answered 53 mins ago
Ruixi Zhang
3,291216
3,291216
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%2f450946%2faligning-limits-of-multiple-summations%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