How do I align summation signs instead of their subscripts?
Clash Royale CLAN TAG#URR8PPP
I am trying to align a set of equations. However, I would like to align the summation symbols. Now, their subscripts are aligned, which results in the summation symbols being (or at least, looking) unaligned.
This is a minimal working example:
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath
begindocument
beginalign
&sum_j in mathcalV': (i,j) in mathcalAx_ij^E &le 1, && forall i in mathcalR',\
&sum_i in mathcalN_E backslash mathcalN_342: (i,j) in mathcalAx_ij^E &= 0 && j in mathcalR_s',
endalign
enddocument
which results in the following:
I would like to see the summation symbols aligned. How do I do this?
align
add a comment |
I am trying to align a set of equations. However, I would like to align the summation symbols. Now, their subscripts are aligned, which results in the summation symbols being (or at least, looking) unaligned.
This is a minimal working example:
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath
begindocument
beginalign
&sum_j in mathcalV': (i,j) in mathcalAx_ij^E &le 1, && forall i in mathcalR',\
&sum_i in mathcalN_E backslash mathcalN_342: (i,j) in mathcalAx_ij^E &= 0 && j in mathcalR_s',
endalign
enddocument
which results in the following:
I would like to see the summation symbols aligned. How do I do this?
align
1
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass...
and ending withenddocument
. In case the OP posted
– Stefan Pinnow
Feb 5 at 13:06
2
Thank you, I edited the question. Hope this helps!
– Mike
Feb 5 at 13:10
1
Simply remove the&
s at the beginning of the lines.
– Stefan Pinnow
Feb 5 at 13:14
2
See themathtools
package. You probably wantsmashoperator[l] ...
around eachsum
including the limits of the sum.
– daleif
Feb 5 at 13:16
There is also mathclap (mathtools) for just the arguments.
– John Kormylo
Feb 5 at 15:27
add a comment |
I am trying to align a set of equations. However, I would like to align the summation symbols. Now, their subscripts are aligned, which results in the summation symbols being (or at least, looking) unaligned.
This is a minimal working example:
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath
begindocument
beginalign
&sum_j in mathcalV': (i,j) in mathcalAx_ij^E &le 1, && forall i in mathcalR',\
&sum_i in mathcalN_E backslash mathcalN_342: (i,j) in mathcalAx_ij^E &= 0 && j in mathcalR_s',
endalign
enddocument
which results in the following:
I would like to see the summation symbols aligned. How do I do this?
align
I am trying to align a set of equations. However, I would like to align the summation symbols. Now, their subscripts are aligned, which results in the summation symbols being (or at least, looking) unaligned.
This is a minimal working example:
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath
begindocument
beginalign
&sum_j in mathcalV': (i,j) in mathcalAx_ij^E &le 1, && forall i in mathcalR',\
&sum_i in mathcalN_E backslash mathcalN_342: (i,j) in mathcalAx_ij^E &= 0 && j in mathcalR_s',
endalign
enddocument
which results in the following:
I would like to see the summation symbols aligned. How do I do this?
align
align
edited Feb 5 at 13:09
Mike
asked Feb 5 at 13:01
MikeMike
334
334
1
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass...
and ending withenddocument
. In case the OP posted
– Stefan Pinnow
Feb 5 at 13:06
2
Thank you, I edited the question. Hope this helps!
– Mike
Feb 5 at 13:10
1
Simply remove the&
s at the beginning of the lines.
– Stefan Pinnow
Feb 5 at 13:14
2
See themathtools
package. You probably wantsmashoperator[l] ...
around eachsum
including the limits of the sum.
– daleif
Feb 5 at 13:16
There is also mathclap (mathtools) for just the arguments.
– John Kormylo
Feb 5 at 15:27
add a comment |
1
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass...
and ending withenddocument
. In case the OP posted
– Stefan Pinnow
Feb 5 at 13:06
2
Thank you, I edited the question. Hope this helps!
– Mike
Feb 5 at 13:10
1
Simply remove the&
s at the beginning of the lines.
– Stefan Pinnow
Feb 5 at 13:14
2
See themathtools
package. You probably wantsmashoperator[l] ...
around eachsum
including the limits of the sum.
– daleif
Feb 5 at 13:16
There is also mathclap (mathtools) for just the arguments.
– John Kormylo
Feb 5 at 15:27
1
1
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass...
and ending with enddocument
. In case the OP posted– Stefan Pinnow
Feb 5 at 13:06
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass...
and ending with enddocument
. In case the OP posted– Stefan Pinnow
Feb 5 at 13:06
2
2
Thank you, I edited the question. Hope this helps!
– Mike
Feb 5 at 13:10
Thank you, I edited the question. Hope this helps!
– Mike
Feb 5 at 13:10
1
1
Simply remove the
&
s at the beginning of the lines.– Stefan Pinnow
Feb 5 at 13:14
Simply remove the
&
s at the beginning of the lines.– Stefan Pinnow
Feb 5 at 13:14
2
2
See the
mathtools
package. You probably want smashoperator[l] ...
around each sum
including the limits of the sum.– daleif
Feb 5 at 13:16
See the
mathtools
package. You probably want smashoperator[l] ...
around each sum
including the limits of the sum.– daleif
Feb 5 at 13:16
There is also mathclap (mathtools) for just the arguments.
– John Kormylo
Feb 5 at 15:27
There is also mathclap (mathtools) for just the arguments.
– John Kormylo
Feb 5 at 15:27
add a comment |
2 Answers
2
active
oldest
votes
You can use smashopeorator[l]...
from mathtools
for this.
Here I've aligned on the sums, the le,=
and the consitions, using alignat
for better spacing.
Note also that I use setminus
not backslash
. setminus
has proper status (don't remember if it is a binary operation), whereas backslash
is a normal symbol (aka no automatic spacing).
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath,mathtools
begindocument
beginalignat3
&smashoperator[l]sum_j in mathcalV': (i,j) in mathcalA
x_ij^E &le 1, &qquad& forall i in mathcalR',\
&smashoperator[l]sum_i in mathcalN_E setminus
mathcalN_342: (i,j) in mathcalA
x_ij^E &= 0 && j in mathcalR_s',
endalignat
enddocument
Thanks a lot, this solved my issue
– Mike
Feb 5 at 13:24
add a comment |
I would avoid so long subscripts, breaking them into two lines.
You can get the alignment with the help of eqparbox
; the first argument to mathbox
is a unique identifier, which must be different for every usage.
I'd also use alignat
, in order to avoid excessive space between the equation and the related condition.
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath
usepackageeqparbox
newcommandmathbox[3][mathop]%
#1eqmakebox[#2]$displaystyle#3$%
begindocument
beginalignat2
mathboxAsum_substackjinmathcalV' \ (i,j)inmathcalAx_ij^E
&le 1,
&qquad& forall i in mathcalR',\
mathboxAsum_substackiinmathcalN_EsetminusmathcalN_342 \ (i,j)inmathcalA x_ij^E
&= 0
&qquad& j in mathcalR_s',
endalignat
enddocument
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473476%2fhow-do-i-align-summation-signs-instead-of-their-subscripts%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use smashopeorator[l]...
from mathtools
for this.
Here I've aligned on the sums, the le,=
and the consitions, using alignat
for better spacing.
Note also that I use setminus
not backslash
. setminus
has proper status (don't remember if it is a binary operation), whereas backslash
is a normal symbol (aka no automatic spacing).
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath,mathtools
begindocument
beginalignat3
&smashoperator[l]sum_j in mathcalV': (i,j) in mathcalA
x_ij^E &le 1, &qquad& forall i in mathcalR',\
&smashoperator[l]sum_i in mathcalN_E setminus
mathcalN_342: (i,j) in mathcalA
x_ij^E &= 0 && j in mathcalR_s',
endalignat
enddocument
Thanks a lot, this solved my issue
– Mike
Feb 5 at 13:24
add a comment |
You can use smashopeorator[l]...
from mathtools
for this.
Here I've aligned on the sums, the le,=
and the consitions, using alignat
for better spacing.
Note also that I use setminus
not backslash
. setminus
has proper status (don't remember if it is a binary operation), whereas backslash
is a normal symbol (aka no automatic spacing).
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath,mathtools
begindocument
beginalignat3
&smashoperator[l]sum_j in mathcalV': (i,j) in mathcalA
x_ij^E &le 1, &qquad& forall i in mathcalR',\
&smashoperator[l]sum_i in mathcalN_E setminus
mathcalN_342: (i,j) in mathcalA
x_ij^E &= 0 && j in mathcalR_s',
endalignat
enddocument
Thanks a lot, this solved my issue
– Mike
Feb 5 at 13:24
add a comment |
You can use smashopeorator[l]...
from mathtools
for this.
Here I've aligned on the sums, the le,=
and the consitions, using alignat
for better spacing.
Note also that I use setminus
not backslash
. setminus
has proper status (don't remember if it is a binary operation), whereas backslash
is a normal symbol (aka no automatic spacing).
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath,mathtools
begindocument
beginalignat3
&smashoperator[l]sum_j in mathcalV': (i,j) in mathcalA
x_ij^E &le 1, &qquad& forall i in mathcalR',\
&smashoperator[l]sum_i in mathcalN_E setminus
mathcalN_342: (i,j) in mathcalA
x_ij^E &= 0 && j in mathcalR_s',
endalignat
enddocument
You can use smashopeorator[l]...
from mathtools
for this.
Here I've aligned on the sums, the le,=
and the consitions, using alignat
for better spacing.
Note also that I use setminus
not backslash
. setminus
has proper status (don't remember if it is a binary operation), whereas backslash
is a normal symbol (aka no automatic spacing).
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath,mathtools
begindocument
beginalignat3
&smashoperator[l]sum_j in mathcalV': (i,j) in mathcalA
x_ij^E &le 1, &qquad& forall i in mathcalR',\
&smashoperator[l]sum_i in mathcalN_E setminus
mathcalN_342: (i,j) in mathcalA
x_ij^E &= 0 && j in mathcalR_s',
endalignat
enddocument
answered Feb 5 at 13:18
daleifdaleif
32.9k253116
32.9k253116
Thanks a lot, this solved my issue
– Mike
Feb 5 at 13:24
add a comment |
Thanks a lot, this solved my issue
– Mike
Feb 5 at 13:24
Thanks a lot, this solved my issue
– Mike
Feb 5 at 13:24
Thanks a lot, this solved my issue
– Mike
Feb 5 at 13:24
add a comment |
I would avoid so long subscripts, breaking them into two lines.
You can get the alignment with the help of eqparbox
; the first argument to mathbox
is a unique identifier, which must be different for every usage.
I'd also use alignat
, in order to avoid excessive space between the equation and the related condition.
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath
usepackageeqparbox
newcommandmathbox[3][mathop]%
#1eqmakebox[#2]$displaystyle#3$%
begindocument
beginalignat2
mathboxAsum_substackjinmathcalV' \ (i,j)inmathcalAx_ij^E
&le 1,
&qquad& forall i in mathcalR',\
mathboxAsum_substackiinmathcalN_EsetminusmathcalN_342 \ (i,j)inmathcalA x_ij^E
&= 0
&qquad& j in mathcalR_s',
endalignat
enddocument
add a comment |
I would avoid so long subscripts, breaking them into two lines.
You can get the alignment with the help of eqparbox
; the first argument to mathbox
is a unique identifier, which must be different for every usage.
I'd also use alignat
, in order to avoid excessive space between the equation and the related condition.
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath
usepackageeqparbox
newcommandmathbox[3][mathop]%
#1eqmakebox[#2]$displaystyle#3$%
begindocument
beginalignat2
mathboxAsum_substackjinmathcalV' \ (i,j)inmathcalAx_ij^E
&le 1,
&qquad& forall i in mathcalR',\
mathboxAsum_substackiinmathcalN_EsetminusmathcalN_342 \ (i,j)inmathcalA x_ij^E
&= 0
&qquad& j in mathcalR_s',
endalignat
enddocument
add a comment |
I would avoid so long subscripts, breaking them into two lines.
You can get the alignment with the help of eqparbox
; the first argument to mathbox
is a unique identifier, which must be different for every usage.
I'd also use alignat
, in order to avoid excessive space between the equation and the related condition.
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath
usepackageeqparbox
newcommandmathbox[3][mathop]%
#1eqmakebox[#2]$displaystyle#3$%
begindocument
beginalignat2
mathboxAsum_substackjinmathcalV' \ (i,j)inmathcalAx_ij^E
&le 1,
&qquad& forall i in mathcalR',\
mathboxAsum_substackiinmathcalN_EsetminusmathcalN_342 \ (i,j)inmathcalA x_ij^E
&= 0
&qquad& j in mathcalR_s',
endalignat
enddocument
I would avoid so long subscripts, breaking them into two lines.
You can get the alignment with the help of eqparbox
; the first argument to mathbox
is a unique identifier, which must be different for every usage.
I'd also use alignat
, in order to avoid excessive space between the equation and the related condition.
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath
usepackageeqparbox
newcommandmathbox[3][mathop]%
#1eqmakebox[#2]$displaystyle#3$%
begindocument
beginalignat2
mathboxAsum_substackjinmathcalV' \ (i,j)inmathcalAx_ij^E
&le 1,
&qquad& forall i in mathcalR',\
mathboxAsum_substackiinmathcalN_EsetminusmathcalN_342 \ (i,j)inmathcalA x_ij^E
&= 0
&qquad& j in mathcalR_s',
endalignat
enddocument
answered Feb 5 at 13:23
egregegreg
723k8719163219
723k8719163219
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473476%2fhow-do-i-align-summation-signs-instead-of-their-subscripts%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass...
and ending withenddocument
. In case the OP posted– Stefan Pinnow
Feb 5 at 13:06
2
Thank you, I edited the question. Hope this helps!
– Mike
Feb 5 at 13:10
1
Simply remove the
&
s at the beginning of the lines.– Stefan Pinnow
Feb 5 at 13:14
2
See the
mathtools
package. You probably wantsmashoperator[l] ...
around eachsum
including the limits of the sum.– daleif
Feb 5 at 13:16
There is also mathclap (mathtools) for just the arguments.
– John Kormylo
Feb 5 at 15:27