Aligning two sets of equations with alignat?Aligning equations with text with alignatalignat not correctly aligningAligning equations in multiple placesAligning equationsAlign multiple equationsTypesetting equations but results in error in tabularxHelp with aligning equations shifting to the rightequation custom horizontal alignment & numbering each rowIssue with align/alignat and equationsAlign multi-line equations with implies
What can a pilot do if an air traffic controller is incapacitated?
Where Does VDD+0.3V Input Limit Come From on IC chips?
Why there so many pitch control surfaces on the Piaggio P180 Avanti?
How would a native speaker correct themselves when they misspeak?
What is a Heptagon Number™?
Algorithm that spans orthogonal vectors: Python
How to fix folder structure in Windows 7 and 10
Debussy as term for bathroom?
How to make interviewee comfortable interviewing in lounge chairs
Minimize taxes now that I earn more
Do household ovens ventilate heat to the outdoors?
Cheap antenna for new HF HAM
Writing a letter of recommendation for a mediocre student
I feel like most of my characters are the same, what can I do?
Сardinality estimation of partially covering range predicates
What are the end bytes of *.docx file format
In a jam session, when asked which key my non-transposing instrument (like a violin) is in, what do I answer?
How do I clean sealant/silicon from a glass mirror?
I reverse the source code, you negate the output!
As a discovery writer, how do I complete an unfinished novel (which has highly diverged from the original plot ) after a time-gap?
Leaving a job that I just took based on false promise of a raise. What do I tell future interviewers?
Which museums have artworks of all four ninja turtles' namesakes?
Is there any reason nowadays to use a neon indicator lamp instead of an LED?
Did HaShem ever command a Navi (Prophet) to break a law?
Aligning two sets of equations with alignat?
Aligning equations with text with alignatalignat not correctly aligningAligning equations in multiple placesAligning equationsAlign multiple equationsTypesetting equations but results in error in tabularxHelp with aligning equations shifting to the rightequation custom horizontal alignment & numbering each rowIssue with align/alignat and equationsAlign multi-line equations with implies
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm having difficulties typing the following: 
What I am getting with the code
beginalignat*4
f(x)&=x^-1, &&qquad&& f(2) &&= 2^-1=frac12,\
f'(x)&=-x^-2, &&qquad &&f'(2) &&=-frac12^2,\
f''(x)&=2!x^-3, &&qquad &&fracf''(2)2!&&=2^-3=frac12^3,\
f'''(x)&=-3!x^-4, &&qquad &&fracf'''(2)3!&&=-frac12^4,\
&vdotswithin=&&qquad &&vdotswithin=&&\
f^(n)(x)&=(-1)^nn!x^-(n+1), &&qquad&& fracf^(n)(2)n!&&=frac(-1)^n2^n+1.
endalignat*
is something like this: 
I have tried very hard but cannot get the spacing right. Can someone please help me with this?
spacing align amsmath
add a comment
|
I'm having difficulties typing the following: 
What I am getting with the code
beginalignat*4
f(x)&=x^-1, &&qquad&& f(2) &&= 2^-1=frac12,\
f'(x)&=-x^-2, &&qquad &&f'(2) &&=-frac12^2,\
f''(x)&=2!x^-3, &&qquad &&fracf''(2)2!&&=2^-3=frac12^3,\
f'''(x)&=-3!x^-4, &&qquad &&fracf'''(2)3!&&=-frac12^4,\
&vdotswithin=&&qquad &&vdotswithin=&&\
f^(n)(x)&=(-1)^nn!x^-(n+1), &&qquad&& fracf^(n)(2)n!&&=frac(-1)^n2^n+1.
endalignat*
is something like this: 
I have tried very hard but cannot get the spacing right. Can someone please help me with this?
spacing align amsmath
2
Whyalignat? A simplealigndoes it:documentclassarticle usepackagemathtools begindocument beginalign f(x)&=x^-1, & f(2) &= 2^-1=frac12,\ f'(x)&=-x^-2, &f'(2) &=-frac12^2,\ f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\ f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\ &vdotswithin= & &vdotswithin=\ f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1 endalign enddocument
– Schrödinger's cat
8 hours ago
1
You're using too many&'s
– egreg
8 hours ago
Instead of&&qquad&& f(2) &&use&qquad&& f(2) &. Each&provides an alternatingrandlalignment point.
– Peter Grill
8 hours ago
@Schrödinger'scat Thanks so much, I was led to believe this wasn't possible to do with align. Please leave your comment as an answer to this question.
– J. Doe
8 hours ago
add a comment
|
I'm having difficulties typing the following: 
What I am getting with the code
beginalignat*4
f(x)&=x^-1, &&qquad&& f(2) &&= 2^-1=frac12,\
f'(x)&=-x^-2, &&qquad &&f'(2) &&=-frac12^2,\
f''(x)&=2!x^-3, &&qquad &&fracf''(2)2!&&=2^-3=frac12^3,\
f'''(x)&=-3!x^-4, &&qquad &&fracf'''(2)3!&&=-frac12^4,\
&vdotswithin=&&qquad &&vdotswithin=&&\
f^(n)(x)&=(-1)^nn!x^-(n+1), &&qquad&& fracf^(n)(2)n!&&=frac(-1)^n2^n+1.
endalignat*
is something like this: 
I have tried very hard but cannot get the spacing right. Can someone please help me with this?
spacing align amsmath
I'm having difficulties typing the following: 
What I am getting with the code
beginalignat*4
f(x)&=x^-1, &&qquad&& f(2) &&= 2^-1=frac12,\
f'(x)&=-x^-2, &&qquad &&f'(2) &&=-frac12^2,\
f''(x)&=2!x^-3, &&qquad &&fracf''(2)2!&&=2^-3=frac12^3,\
f'''(x)&=-3!x^-4, &&qquad &&fracf'''(2)3!&&=-frac12^4,\
&vdotswithin=&&qquad &&vdotswithin=&&\
f^(n)(x)&=(-1)^nn!x^-(n+1), &&qquad&& fracf^(n)(2)n!&&=frac(-1)^n2^n+1.
endalignat*
is something like this: 
I have tried very hard but cannot get the spacing right. Can someone please help me with this?
spacing align amsmath
spacing align amsmath
asked 8 hours ago
J. DoeJ. Doe
404 bronze badges
404 bronze badges
2
Whyalignat? A simplealigndoes it:documentclassarticle usepackagemathtools begindocument beginalign f(x)&=x^-1, & f(2) &= 2^-1=frac12,\ f'(x)&=-x^-2, &f'(2) &=-frac12^2,\ f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\ f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\ &vdotswithin= & &vdotswithin=\ f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1 endalign enddocument
– Schrödinger's cat
8 hours ago
1
You're using too many&'s
– egreg
8 hours ago
Instead of&&qquad&& f(2) &&use&qquad&& f(2) &. Each&provides an alternatingrandlalignment point.
– Peter Grill
8 hours ago
@Schrödinger'scat Thanks so much, I was led to believe this wasn't possible to do with align. Please leave your comment as an answer to this question.
– J. Doe
8 hours ago
add a comment
|
2
Whyalignat? A simplealigndoes it:documentclassarticle usepackagemathtools begindocument beginalign f(x)&=x^-1, & f(2) &= 2^-1=frac12,\ f'(x)&=-x^-2, &f'(2) &=-frac12^2,\ f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\ f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\ &vdotswithin= & &vdotswithin=\ f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1 endalign enddocument
– Schrödinger's cat
8 hours ago
1
You're using too many&'s
– egreg
8 hours ago
Instead of&&qquad&& f(2) &&use&qquad&& f(2) &. Each&provides an alternatingrandlalignment point.
– Peter Grill
8 hours ago
@Schrödinger'scat Thanks so much, I was led to believe this wasn't possible to do with align. Please leave your comment as an answer to this question.
– J. Doe
8 hours ago
2
2
Why
alignat? A simple align does it: documentclassarticle usepackagemathtools begindocument beginalign f(x)&=x^-1, & f(2) &= 2^-1=frac12,\ f'(x)&=-x^-2, &f'(2) &=-frac12^2,\ f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\ f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\ &vdotswithin= & &vdotswithin=\ f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1 endalign enddocument– Schrödinger's cat
8 hours ago
Why
alignat? A simple align does it: documentclassarticle usepackagemathtools begindocument beginalign f(x)&=x^-1, & f(2) &= 2^-1=frac12,\ f'(x)&=-x^-2, &f'(2) &=-frac12^2,\ f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\ f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\ &vdotswithin= & &vdotswithin=\ f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1 endalign enddocument– Schrödinger's cat
8 hours ago
1
1
You're using too many
&'s– egreg
8 hours ago
You're using too many
&'s– egreg
8 hours ago
Instead of
&&qquad&& f(2) && use &qquad&& f(2) &. Each & provides an alternating r and l alignment point.– Peter Grill
8 hours ago
Instead of
&&qquad&& f(2) && use &qquad&& f(2) &. Each & provides an alternating r and l alignment point.– Peter Grill
8 hours ago
@Schrödinger'scat Thanks so much, I was led to believe this wasn't possible to do with align. Please leave your comment as an answer to this question.
– J. Doe
8 hours ago
@Schrödinger'scat Thanks so much, I was led to believe this wasn't possible to do with align. Please leave your comment as an answer to this question.
– J. Doe
8 hours ago
add a comment
|
2 Answers
2
active
oldest
votes
OK, here we go. A simple align (of course with the appropriately set &) yields
documentclassarticle
usepackagemathtools
begindocument
beginalign
f(x)&=x^-1, & f(2) &= 2^-1=frac12,\
f'(x)&=-x^-2, &f'(2) &=-frac12^2,\
f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\
f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\
&vdotswithin= & &vdotswithin=\
f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1
endalign
enddocument

add a comment
|
You have too many &'s. Just three per row suffice.
On the other hand, aligning at the = signs doesn't seem the best idea, as it creates irregular shapes and the = signs are not really related to one another, so I propose a different solution.
I also added , after the ! when the factorial is immediately followed by another term.
documentclassarticle
usepackagemathtools
begindocument
beginalignat*2
f(x)&=x^-1, qquad & f(2) &= 2^-1=frac12,
\
f'(x)&=-x^-2, qquad & f'(2) &=-frac12^2,
\
f''(x)&=2!,x^-3, qquad & fracf''(2)2!&=2^-3=frac12^3,
\
f'''(x)&=-3!,x^-4, qquad & fracf'''(2)3!&=-frac12^4,
\
&vdotswithin= qquad & & vdotswithin=
\
f^(n)(x)&=(-1)^nn!,x^-(n+1), qquad & fracf^(n)(2)n!&=frac(-1)^n2^n+1.
endalignat*
beginalignat*2
& f(x)=x^-1, && f(2) = 2^-1=frac12,
\[1ex]
& f'(x)=-x^-2, && f'(2) =-frac12^2,
\[1ex]
& f''(x)=2!,x^-3, && fracf''(2)2!=2^-3=frac12^3,
\[1ex]
& f'''(x)=-3!,x^-4, && fracf'''(2)3!=-frac12^4,
\
&qquadvdots && qquadvdots
\
& f^(n)(x)=(-1)^nn!,x^-(n+1),qquad && fracf^(n)(2)n!=frac(-1)^n2^n+1.
endalignat*
enddocument

Thank you, this is very nice. And the vertical dot placement according to your suggesting is perfectly fine also. Putting , after ! also makes things less cluttered. I hope your know that your help is very much appreciated.
– J. Doe
8 hours ago
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%2f508822%2faligning-two-sets-of-equations-with-alignat%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
OK, here we go. A simple align (of course with the appropriately set &) yields
documentclassarticle
usepackagemathtools
begindocument
beginalign
f(x)&=x^-1, & f(2) &= 2^-1=frac12,\
f'(x)&=-x^-2, &f'(2) &=-frac12^2,\
f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\
f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\
&vdotswithin= & &vdotswithin=\
f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1
endalign
enddocument

add a comment
|
OK, here we go. A simple align (of course with the appropriately set &) yields
documentclassarticle
usepackagemathtools
begindocument
beginalign
f(x)&=x^-1, & f(2) &= 2^-1=frac12,\
f'(x)&=-x^-2, &f'(2) &=-frac12^2,\
f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\
f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\
&vdotswithin= & &vdotswithin=\
f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1
endalign
enddocument

add a comment
|
OK, here we go. A simple align (of course with the appropriately set &) yields
documentclassarticle
usepackagemathtools
begindocument
beginalign
f(x)&=x^-1, & f(2) &= 2^-1=frac12,\
f'(x)&=-x^-2, &f'(2) &=-frac12^2,\
f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\
f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\
&vdotswithin= & &vdotswithin=\
f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1
endalign
enddocument

OK, here we go. A simple align (of course with the appropriately set &) yields
documentclassarticle
usepackagemathtools
begindocument
beginalign
f(x)&=x^-1, & f(2) &= 2^-1=frac12,\
f'(x)&=-x^-2, &f'(2) &=-frac12^2,\
f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\
f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\
&vdotswithin= & &vdotswithin=\
f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1
endalign
enddocument

answered 8 hours ago
Schrödinger's catSchrödinger's cat
8,07012 silver badges25 bronze badges
8,07012 silver badges25 bronze badges
add a comment
|
add a comment
|
You have too many &'s. Just three per row suffice.
On the other hand, aligning at the = signs doesn't seem the best idea, as it creates irregular shapes and the = signs are not really related to one another, so I propose a different solution.
I also added , after the ! when the factorial is immediately followed by another term.
documentclassarticle
usepackagemathtools
begindocument
beginalignat*2
f(x)&=x^-1, qquad & f(2) &= 2^-1=frac12,
\
f'(x)&=-x^-2, qquad & f'(2) &=-frac12^2,
\
f''(x)&=2!,x^-3, qquad & fracf''(2)2!&=2^-3=frac12^3,
\
f'''(x)&=-3!,x^-4, qquad & fracf'''(2)3!&=-frac12^4,
\
&vdotswithin= qquad & & vdotswithin=
\
f^(n)(x)&=(-1)^nn!,x^-(n+1), qquad & fracf^(n)(2)n!&=frac(-1)^n2^n+1.
endalignat*
beginalignat*2
& f(x)=x^-1, && f(2) = 2^-1=frac12,
\[1ex]
& f'(x)=-x^-2, && f'(2) =-frac12^2,
\[1ex]
& f''(x)=2!,x^-3, && fracf''(2)2!=2^-3=frac12^3,
\[1ex]
& f'''(x)=-3!,x^-4, && fracf'''(2)3!=-frac12^4,
\
&qquadvdots && qquadvdots
\
& f^(n)(x)=(-1)^nn!,x^-(n+1),qquad && fracf^(n)(2)n!=frac(-1)^n2^n+1.
endalignat*
enddocument

Thank you, this is very nice. And the vertical dot placement according to your suggesting is perfectly fine also. Putting , after ! also makes things less cluttered. I hope your know that your help is very much appreciated.
– J. Doe
8 hours ago
add a comment
|
You have too many &'s. Just three per row suffice.
On the other hand, aligning at the = signs doesn't seem the best idea, as it creates irregular shapes and the = signs are not really related to one another, so I propose a different solution.
I also added , after the ! when the factorial is immediately followed by another term.
documentclassarticle
usepackagemathtools
begindocument
beginalignat*2
f(x)&=x^-1, qquad & f(2) &= 2^-1=frac12,
\
f'(x)&=-x^-2, qquad & f'(2) &=-frac12^2,
\
f''(x)&=2!,x^-3, qquad & fracf''(2)2!&=2^-3=frac12^3,
\
f'''(x)&=-3!,x^-4, qquad & fracf'''(2)3!&=-frac12^4,
\
&vdotswithin= qquad & & vdotswithin=
\
f^(n)(x)&=(-1)^nn!,x^-(n+1), qquad & fracf^(n)(2)n!&=frac(-1)^n2^n+1.
endalignat*
beginalignat*2
& f(x)=x^-1, && f(2) = 2^-1=frac12,
\[1ex]
& f'(x)=-x^-2, && f'(2) =-frac12^2,
\[1ex]
& f''(x)=2!,x^-3, && fracf''(2)2!=2^-3=frac12^3,
\[1ex]
& f'''(x)=-3!,x^-4, && fracf'''(2)3!=-frac12^4,
\
&qquadvdots && qquadvdots
\
& f^(n)(x)=(-1)^nn!,x^-(n+1),qquad && fracf^(n)(2)n!=frac(-1)^n2^n+1.
endalignat*
enddocument

Thank you, this is very nice. And the vertical dot placement according to your suggesting is perfectly fine also. Putting , after ! also makes things less cluttered. I hope your know that your help is very much appreciated.
– J. Doe
8 hours ago
add a comment
|
You have too many &'s. Just three per row suffice.
On the other hand, aligning at the = signs doesn't seem the best idea, as it creates irregular shapes and the = signs are not really related to one another, so I propose a different solution.
I also added , after the ! when the factorial is immediately followed by another term.
documentclassarticle
usepackagemathtools
begindocument
beginalignat*2
f(x)&=x^-1, qquad & f(2) &= 2^-1=frac12,
\
f'(x)&=-x^-2, qquad & f'(2) &=-frac12^2,
\
f''(x)&=2!,x^-3, qquad & fracf''(2)2!&=2^-3=frac12^3,
\
f'''(x)&=-3!,x^-4, qquad & fracf'''(2)3!&=-frac12^4,
\
&vdotswithin= qquad & & vdotswithin=
\
f^(n)(x)&=(-1)^nn!,x^-(n+1), qquad & fracf^(n)(2)n!&=frac(-1)^n2^n+1.
endalignat*
beginalignat*2
& f(x)=x^-1, && f(2) = 2^-1=frac12,
\[1ex]
& f'(x)=-x^-2, && f'(2) =-frac12^2,
\[1ex]
& f''(x)=2!,x^-3, && fracf''(2)2!=2^-3=frac12^3,
\[1ex]
& f'''(x)=-3!,x^-4, && fracf'''(2)3!=-frac12^4,
\
&qquadvdots && qquadvdots
\
& f^(n)(x)=(-1)^nn!,x^-(n+1),qquad && fracf^(n)(2)n!=frac(-1)^n2^n+1.
endalignat*
enddocument

You have too many &'s. Just three per row suffice.
On the other hand, aligning at the = signs doesn't seem the best idea, as it creates irregular shapes and the = signs are not really related to one another, so I propose a different solution.
I also added , after the ! when the factorial is immediately followed by another term.
documentclassarticle
usepackagemathtools
begindocument
beginalignat*2
f(x)&=x^-1, qquad & f(2) &= 2^-1=frac12,
\
f'(x)&=-x^-2, qquad & f'(2) &=-frac12^2,
\
f''(x)&=2!,x^-3, qquad & fracf''(2)2!&=2^-3=frac12^3,
\
f'''(x)&=-3!,x^-4, qquad & fracf'''(2)3!&=-frac12^4,
\
&vdotswithin= qquad & & vdotswithin=
\
f^(n)(x)&=(-1)^nn!,x^-(n+1), qquad & fracf^(n)(2)n!&=frac(-1)^n2^n+1.
endalignat*
beginalignat*2
& f(x)=x^-1, && f(2) = 2^-1=frac12,
\[1ex]
& f'(x)=-x^-2, && f'(2) =-frac12^2,
\[1ex]
& f''(x)=2!,x^-3, && fracf''(2)2!=2^-3=frac12^3,
\[1ex]
& f'''(x)=-3!,x^-4, && fracf'''(2)3!=-frac12^4,
\
&qquadvdots && qquadvdots
\
& f^(n)(x)=(-1)^nn!,x^-(n+1),qquad && fracf^(n)(2)n!=frac(-1)^n2^n+1.
endalignat*
enddocument

answered 8 hours ago
egregegreg
769k91 gold badges2011 silver badges3367 bronze badges
769k91 gold badges2011 silver badges3367 bronze badges
Thank you, this is very nice. And the vertical dot placement according to your suggesting is perfectly fine also. Putting , after ! also makes things less cluttered. I hope your know that your help is very much appreciated.
– J. Doe
8 hours ago
add a comment
|
Thank you, this is very nice. And the vertical dot placement according to your suggesting is perfectly fine also. Putting , after ! also makes things less cluttered. I hope your know that your help is very much appreciated.
– J. Doe
8 hours ago
Thank you, this is very nice. And the vertical dot placement according to your suggesting is perfectly fine also. Putting , after ! also makes things less cluttered. I hope your know that your help is very much appreciated.
– J. Doe
8 hours ago
Thank you, this is very nice. And the vertical dot placement according to your suggesting is perfectly fine also. Putting , after ! also makes things less cluttered. I hope your know that your help is very much appreciated.
– J. Doe
8 hours ago
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%2f508822%2faligning-two-sets-of-equations-with-alignat%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
2
Why
alignat? A simplealigndoes it:documentclassarticle usepackagemathtools begindocument beginalign f(x)&=x^-1, & f(2) &= 2^-1=frac12,\ f'(x)&=-x^-2, &f'(2) &=-frac12^2,\ f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\ f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\ &vdotswithin= & &vdotswithin=\ f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1 endalign enddocument– Schrödinger's cat
8 hours ago
1
You're using too many
&'s– egreg
8 hours ago
Instead of
&&qquad&& f(2) &&use&qquad&& f(2) &. Each&provides an alternatingrandlalignment point.– Peter Grill
8 hours ago
@Schrödinger'scat Thanks so much, I was led to believe this wasn't possible to do with align. Please leave your comment as an answer to this question.
– J. Doe
8 hours ago