Is there a way to double indent equationsMultiple Alignment in equationsMultiple alignmentsHow to align five equations on three lines, e.g., 2-2-1, with the last equation centered?Align Equations Over Multiple Tabular RowsHorizontally aligning equations with overset textAlignment of two equations on LaTeXAlign equations which already have aligned answers (alignment-ception)Breaking equations within the align environmentHow can I align equations to the left and to the right?Splitting and flushing equations inside align
Running DOS, Windows 3, and Windows 98 from one FAT32 partition?
How to set up a "Forced choice" for players in a game?
Should I still follow "programming to an interface not implementation" even if I think using concrete class members is the simpler solution?
How can an employer better accommodate workers on the autism-spectrum to reduce absence from work?
Mathematica NDSolve for DAE and System Modeling
Does "dd" by itself do anything?
Is there a way to add salted hashing to my user authentication without breaking my former login server
Fixing the fields in an incorrectly generated file
Should a soda bottle be stored horizontally or vertically?
Why is the 'anti' in 'anti-semitism'?
Where to start with a child learning chess?
How can I format and use Custom labels with tokens in LWC?
Team members' and manager's behaviour is indifferent after I announce my intention to leave in 8 months
Using brushes as low-volume drumsticks
How far apart are stars in a binary system?
What does 36.000€ mean?
Looking for a restaurant in Vienna with a name similar to "An die 2 Linsen" that served huge Schnitzel
Prospective employer asking for my current pay slip during interview
Number puzzle. Can you replace the question mark?
When to bemoan and when to moan
Prove that numbers of the form 131, 1331, 13331, ... are divisible by 19 when they have length 15+18k
Which edge of the plane's mouth should I file if I want to open it up?
Schemes/ Mechanisms that could provide one time decryption?
Can a German employer force mandatory overtime and forbid salary discussion?
Is there a way to double indent equations
Multiple Alignment in equationsMultiple alignmentsHow to align five equations on three lines, e.g., 2-2-1, with the last equation centered?Align Equations Over Multiple Tabular RowsHorizontally aligning equations with overset textAlignment of two equations on LaTeXAlign equations which already have aligned answers (alignment-ception)Breaking equations within the align environmentHow can I align equations to the left and to the right?Splitting and flushing equations inside align
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I have already aligned the first set of these equations
beginalign*
sum_k=1^n 1 &= n\
newline
sum_k=m^n 1 &= n+1-m\
sum_k=1^n k = S &= 1+2+3+...+n\
&= n + (n-1) + (n-2) + ... + 1\
therefore 2S &= (n+1) + (n+1) + (n+1) + ...+ (n+1)\
&= n(n+1)\
therefore S &= frac12 n (n+1)\
endalign*
However I would like the first equals in the line with two equals to be aligned with the preceding equals signs but all the following equals signs should be aligned with the second of the equals signs in the line with two since obviously that argument follows on.
Is there a way to do this?
horizontal-alignment align
add a comment
|
I have already aligned the first set of these equations
beginalign*
sum_k=1^n 1 &= n\
newline
sum_k=m^n 1 &= n+1-m\
sum_k=1^n k = S &= 1+2+3+...+n\
&= n + (n-1) + (n-2) + ... + 1\
therefore 2S &= (n+1) + (n+1) + (n+1) + ...+ (n+1)\
&= n(n+1)\
therefore S &= frac12 n (n+1)\
endalign*
However I would like the first equals in the line with two equals to be aligned with the preceding equals signs but all the following equals signs should be aligned with the second of the equals signs in the line with two since obviously that argument follows on.
Is there a way to do this?
horizontal-alignment align
To be honest, I see no reason to align the equals signs after the summations: they aren't related to each other.
– egreg
Sep 26 at 19:27
add a comment
|
I have already aligned the first set of these equations
beginalign*
sum_k=1^n 1 &= n\
newline
sum_k=m^n 1 &= n+1-m\
sum_k=1^n k = S &= 1+2+3+...+n\
&= n + (n-1) + (n-2) + ... + 1\
therefore 2S &= (n+1) + (n+1) + (n+1) + ...+ (n+1)\
&= n(n+1)\
therefore S &= frac12 n (n+1)\
endalign*
However I would like the first equals in the line with two equals to be aligned with the preceding equals signs but all the following equals signs should be aligned with the second of the equals signs in the line with two since obviously that argument follows on.
Is there a way to do this?
horizontal-alignment align
I have already aligned the first set of these equations
beginalign*
sum_k=1^n 1 &= n\
newline
sum_k=m^n 1 &= n+1-m\
sum_k=1^n k = S &= 1+2+3+...+n\
&= n + (n-1) + (n-2) + ... + 1\
therefore 2S &= (n+1) + (n+1) + (n+1) + ...+ (n+1)\
&= n(n+1)\
therefore S &= frac12 n (n+1)\
endalign*
However I would like the first equals in the line with two equals to be aligned with the preceding equals signs but all the following equals signs should be aligned with the second of the equals signs in the line with two since obviously that argument follows on.
Is there a way to do this?
horizontal-alignment align
horizontal-alignment align
edited Sep 26 at 19:02
Werner
476k81 gold badges1079 silver badges1826 bronze badges
476k81 gold badges1079 silver badges1826 bronze badges
asked Sep 26 at 18:02
Lewis LockwoodLewis Lockwood
332 bronze badges
332 bronze badges
To be honest, I see no reason to align the equals signs after the summations: they aren't related to each other.
– egreg
Sep 26 at 19:27
add a comment
|
To be honest, I see no reason to align the equals signs after the summations: they aren't related to each other.
– egreg
Sep 26 at 19:27
To be honest, I see no reason to align the equals signs after the summations: they aren't related to each other.
– egreg
Sep 26 at 19:27
To be honest, I see no reason to align the equals signs after the summations: they aren't related to each other.
– egreg
Sep 26 at 19:27
add a comment
|
3 Answers
3
active
oldest
votes
Slightly more complicated than Steven's answer but allows you to add equation numbers and so on if needed. (You can see the difference from the fact that here more space is allocated for the line that has the sum in it.)
documentclassarticle
usepackagemathtools,amssymb,eqparbox
begindocument
beginalign*
sum_k=1^n 1 &= n\
sum_k=m^n 1 &= n+1-m\
sum_k=1^n k &eqmakebox[pft]$= S$ = 1+2+3+dots+n\
&eqmakebox[pft]= n + (n-1) + (n-2) + dots + 1\
&eqmakebox[pft]mathllaptherefore 2S= (n+1) + (n+1) + (n+1) + dots+ (n+1)\
&eqmakebox[pft]= n(n+1)\
&eqmakebox[pft]mathllaptherefore 2S= frac12 n (n+1)\
endalign*
enddocument

add a comment
|
documentclassarticle
usepackagemathtools,amssymb
begindocument
beginalign*
sum_k=1^n 1 &= n\
newline
sum_k=m^n 1 &= n+1-m\
sum_k=1^n k &= beginaligned[t] S &= 1+2+3+dots+n\
&= n + (n-1) + (n-2) +dots+ 1\
mathllaptherefore 2S &= (n+1) + (n+1) + (n+1) +dots+ (n+1)\
&= n(n+1)\
mathllaptherefore S &= frac12 n (n+1)
endaligned
endalign*
enddocument

add a comment
|
You can have what you want (I think) with alignat*and, in addition the alignment of the therefore symbols. I replaced the fraction 1/2 with a medium-size fraction, which look better, in my opinion.
documentclassarticle
usepackage[utf8]inputenc%
usepackagenccmath
usepackagemathtools, amssymb
begindocument
beginalignat*2
sum_k=1^n 1 &= n\
sum_k=m^n 1 &=mathrlap n+1-m\
mathopsmash[b]sum_k=1^n k & = S & &= 1+2+3+...+n\
& & &= n + (n-1) + (n-2) + ... + 1\
therefore && mathllap2S &= (n+1) + (n+1) + (n+1) + ...+ (n+1)\
& & &= n(n+1)\
therefore && mathllapS &= mfrac12 n (n+1)\
endalignat*
enddocument

mathopsmash[b]...
– egreg
Sep 26 at 19:31
@egreg: I didn't know it was required. Upon reflection, though, it's natural: the sum is beteen a pair of braces and therefore becomes mathord. Am I correct?
– Bernard
Sep 26 at 19:38
Yes, that's the problem! You can also, more simply, placekinside the smash.
– egreg
Sep 26 at 20:09
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/4.0/"u003ecc by-sa 4.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%2f509908%2fis-there-a-way-to-double-indent-equations%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Slightly more complicated than Steven's answer but allows you to add equation numbers and so on if needed. (You can see the difference from the fact that here more space is allocated for the line that has the sum in it.)
documentclassarticle
usepackagemathtools,amssymb,eqparbox
begindocument
beginalign*
sum_k=1^n 1 &= n\
sum_k=m^n 1 &= n+1-m\
sum_k=1^n k &eqmakebox[pft]$= S$ = 1+2+3+dots+n\
&eqmakebox[pft]= n + (n-1) + (n-2) + dots + 1\
&eqmakebox[pft]mathllaptherefore 2S= (n+1) + (n+1) + (n+1) + dots+ (n+1)\
&eqmakebox[pft]= n(n+1)\
&eqmakebox[pft]mathllaptherefore 2S= frac12 n (n+1)\
endalign*
enddocument

add a comment
|
Slightly more complicated than Steven's answer but allows you to add equation numbers and so on if needed. (You can see the difference from the fact that here more space is allocated for the line that has the sum in it.)
documentclassarticle
usepackagemathtools,amssymb,eqparbox
begindocument
beginalign*
sum_k=1^n 1 &= n\
sum_k=m^n 1 &= n+1-m\
sum_k=1^n k &eqmakebox[pft]$= S$ = 1+2+3+dots+n\
&eqmakebox[pft]= n + (n-1) + (n-2) + dots + 1\
&eqmakebox[pft]mathllaptherefore 2S= (n+1) + (n+1) + (n+1) + dots+ (n+1)\
&eqmakebox[pft]= n(n+1)\
&eqmakebox[pft]mathllaptherefore 2S= frac12 n (n+1)\
endalign*
enddocument

add a comment
|
Slightly more complicated than Steven's answer but allows you to add equation numbers and so on if needed. (You can see the difference from the fact that here more space is allocated for the line that has the sum in it.)
documentclassarticle
usepackagemathtools,amssymb,eqparbox
begindocument
beginalign*
sum_k=1^n 1 &= n\
sum_k=m^n 1 &= n+1-m\
sum_k=1^n k &eqmakebox[pft]$= S$ = 1+2+3+dots+n\
&eqmakebox[pft]= n + (n-1) + (n-2) + dots + 1\
&eqmakebox[pft]mathllaptherefore 2S= (n+1) + (n+1) + (n+1) + dots+ (n+1)\
&eqmakebox[pft]= n(n+1)\
&eqmakebox[pft]mathllaptherefore 2S= frac12 n (n+1)\
endalign*
enddocument

Slightly more complicated than Steven's answer but allows you to add equation numbers and so on if needed. (You can see the difference from the fact that here more space is allocated for the line that has the sum in it.)
documentclassarticle
usepackagemathtools,amssymb,eqparbox
begindocument
beginalign*
sum_k=1^n 1 &= n\
sum_k=m^n 1 &= n+1-m\
sum_k=1^n k &eqmakebox[pft]$= S$ = 1+2+3+dots+n\
&eqmakebox[pft]= n + (n-1) + (n-2) + dots + 1\
&eqmakebox[pft]mathllaptherefore 2S= (n+1) + (n+1) + (n+1) + dots+ (n+1)\
&eqmakebox[pft]= n(n+1)\
&eqmakebox[pft]mathllaptherefore 2S= frac12 n (n+1)\
endalign*
enddocument

edited Sep 26 at 19:06
answered Sep 26 at 18:17
Schrödinger's catSchrödinger's cat
28.9k2 gold badges43 silver badges69 bronze badges
28.9k2 gold badges43 silver badges69 bronze badges
add a comment
|
add a comment
|
documentclassarticle
usepackagemathtools,amssymb
begindocument
beginalign*
sum_k=1^n 1 &= n\
newline
sum_k=m^n 1 &= n+1-m\
sum_k=1^n k &= beginaligned[t] S &= 1+2+3+dots+n\
&= n + (n-1) + (n-2) +dots+ 1\
mathllaptherefore 2S &= (n+1) + (n+1) + (n+1) +dots+ (n+1)\
&= n(n+1)\
mathllaptherefore S &= frac12 n (n+1)
endaligned
endalign*
enddocument

add a comment
|
documentclassarticle
usepackagemathtools,amssymb
begindocument
beginalign*
sum_k=1^n 1 &= n\
newline
sum_k=m^n 1 &= n+1-m\
sum_k=1^n k &= beginaligned[t] S &= 1+2+3+dots+n\
&= n + (n-1) + (n-2) +dots+ 1\
mathllaptherefore 2S &= (n+1) + (n+1) + (n+1) +dots+ (n+1)\
&= n(n+1)\
mathllaptherefore S &= frac12 n (n+1)
endaligned
endalign*
enddocument

add a comment
|
documentclassarticle
usepackagemathtools,amssymb
begindocument
beginalign*
sum_k=1^n 1 &= n\
newline
sum_k=m^n 1 &= n+1-m\
sum_k=1^n k &= beginaligned[t] S &= 1+2+3+dots+n\
&= n + (n-1) + (n-2) +dots+ 1\
mathllaptherefore 2S &= (n+1) + (n+1) + (n+1) +dots+ (n+1)\
&= n(n+1)\
mathllaptherefore S &= frac12 n (n+1)
endaligned
endalign*
enddocument

documentclassarticle
usepackagemathtools,amssymb
begindocument
beginalign*
sum_k=1^n 1 &= n\
newline
sum_k=m^n 1 &= n+1-m\
sum_k=1^n k &= beginaligned[t] S &= 1+2+3+dots+n\
&= n + (n-1) + (n-2) +dots+ 1\
mathllaptherefore 2S &= (n+1) + (n+1) + (n+1) +dots+ (n+1)\
&= n(n+1)\
mathllaptherefore S &= frac12 n (n+1)
endaligned
endalign*
enddocument

edited Sep 26 at 19:52
answered Sep 26 at 18:11
Steven B. SegletesSteven B. Segletes
176k9 gold badges224 silver badges456 bronze badges
176k9 gold badges224 silver badges456 bronze badges
add a comment
|
add a comment
|
You can have what you want (I think) with alignat*and, in addition the alignment of the therefore symbols. I replaced the fraction 1/2 with a medium-size fraction, which look better, in my opinion.
documentclassarticle
usepackage[utf8]inputenc%
usepackagenccmath
usepackagemathtools, amssymb
begindocument
beginalignat*2
sum_k=1^n 1 &= n\
sum_k=m^n 1 &=mathrlap n+1-m\
mathopsmash[b]sum_k=1^n k & = S & &= 1+2+3+...+n\
& & &= n + (n-1) + (n-2) + ... + 1\
therefore && mathllap2S &= (n+1) + (n+1) + (n+1) + ...+ (n+1)\
& & &= n(n+1)\
therefore && mathllapS &= mfrac12 n (n+1)\
endalignat*
enddocument

mathopsmash[b]...
– egreg
Sep 26 at 19:31
@egreg: I didn't know it was required. Upon reflection, though, it's natural: the sum is beteen a pair of braces and therefore becomes mathord. Am I correct?
– Bernard
Sep 26 at 19:38
Yes, that's the problem! You can also, more simply, placekinside the smash.
– egreg
Sep 26 at 20:09
add a comment
|
You can have what you want (I think) with alignat*and, in addition the alignment of the therefore symbols. I replaced the fraction 1/2 with a medium-size fraction, which look better, in my opinion.
documentclassarticle
usepackage[utf8]inputenc%
usepackagenccmath
usepackagemathtools, amssymb
begindocument
beginalignat*2
sum_k=1^n 1 &= n\
sum_k=m^n 1 &=mathrlap n+1-m\
mathopsmash[b]sum_k=1^n k & = S & &= 1+2+3+...+n\
& & &= n + (n-1) + (n-2) + ... + 1\
therefore && mathllap2S &= (n+1) + (n+1) + (n+1) + ...+ (n+1)\
& & &= n(n+1)\
therefore && mathllapS &= mfrac12 n (n+1)\
endalignat*
enddocument

mathopsmash[b]...
– egreg
Sep 26 at 19:31
@egreg: I didn't know it was required. Upon reflection, though, it's natural: the sum is beteen a pair of braces and therefore becomes mathord. Am I correct?
– Bernard
Sep 26 at 19:38
Yes, that's the problem! You can also, more simply, placekinside the smash.
– egreg
Sep 26 at 20:09
add a comment
|
You can have what you want (I think) with alignat*and, in addition the alignment of the therefore symbols. I replaced the fraction 1/2 with a medium-size fraction, which look better, in my opinion.
documentclassarticle
usepackage[utf8]inputenc%
usepackagenccmath
usepackagemathtools, amssymb
begindocument
beginalignat*2
sum_k=1^n 1 &= n\
sum_k=m^n 1 &=mathrlap n+1-m\
mathopsmash[b]sum_k=1^n k & = S & &= 1+2+3+...+n\
& & &= n + (n-1) + (n-2) + ... + 1\
therefore && mathllap2S &= (n+1) + (n+1) + (n+1) + ...+ (n+1)\
& & &= n(n+1)\
therefore && mathllapS &= mfrac12 n (n+1)\
endalignat*
enddocument

You can have what you want (I think) with alignat*and, in addition the alignment of the therefore symbols. I replaced the fraction 1/2 with a medium-size fraction, which look better, in my opinion.
documentclassarticle
usepackage[utf8]inputenc%
usepackagenccmath
usepackagemathtools, amssymb
begindocument
beginalignat*2
sum_k=1^n 1 &= n\
sum_k=m^n 1 &=mathrlap n+1-m\
mathopsmash[b]sum_k=1^n k & = S & &= 1+2+3+...+n\
& & &= n + (n-1) + (n-2) + ... + 1\
therefore && mathllap2S &= (n+1) + (n+1) + (n+1) + ...+ (n+1)\
& & &= n(n+1)\
therefore && mathllapS &= mfrac12 n (n+1)\
endalignat*
enddocument

edited Sep 26 at 19:41
answered Sep 26 at 18:58
BernardBernard
199k8 gold badges88 silver badges234 bronze badges
199k8 gold badges88 silver badges234 bronze badges
mathopsmash[b]...
– egreg
Sep 26 at 19:31
@egreg: I didn't know it was required. Upon reflection, though, it's natural: the sum is beteen a pair of braces and therefore becomes mathord. Am I correct?
– Bernard
Sep 26 at 19:38
Yes, that's the problem! You can also, more simply, placekinside the smash.
– egreg
Sep 26 at 20:09
add a comment
|
mathopsmash[b]...
– egreg
Sep 26 at 19:31
@egreg: I didn't know it was required. Upon reflection, though, it's natural: the sum is beteen a pair of braces and therefore becomes mathord. Am I correct?
– Bernard
Sep 26 at 19:38
Yes, that's the problem! You can also, more simply, placekinside the smash.
– egreg
Sep 26 at 20:09
mathopsmash[b]...– egreg
Sep 26 at 19:31
mathopsmash[b]...– egreg
Sep 26 at 19:31
@egreg: I didn't know it was required. Upon reflection, though, it's natural: the sum is beteen a pair of braces and therefore becomes mathord. Am I correct?
– Bernard
Sep 26 at 19:38
@egreg: I didn't know it was required. Upon reflection, though, it's natural: the sum is beteen a pair of braces and therefore becomes mathord. Am I correct?
– Bernard
Sep 26 at 19:38
Yes, that's the problem! You can also, more simply, place
k inside the smash.– egreg
Sep 26 at 20:09
Yes, that's the problem! You can also, more simply, place
k inside the smash.– egreg
Sep 26 at 20:09
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%2f509908%2fis-there-a-way-to-double-indent-equations%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
To be honest, I see no reason to align the equals signs after the summations: they aren't related to each other.
– egreg
Sep 26 at 19:27