Center single line(s) in align
How is it able to center a single line in an align
?
I want to center 0 = 0
.
MWE:
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align*}
0 = 0\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d
end{align*}
end{document}
align
add a comment |
How is it able to center a single line in an align
?
I want to center 0 = 0
.
MWE:
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align*}
0 = 0\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d
end{align*}
end{document}
align
This question contains some possibly relevant information regarding usingaligned
together withgather*
.
– barbara beeton
yesterday
@barbarabeeton I'm unsure what exactly you want to point out
– Ben
yesterday
The answers contain examples using bothgather*
andaligned
, although only a single "column" is aligned. This might not be an obvious help to you, but it might help some future person loolking for information.
– barbara beeton
yesterday
add a comment |
How is it able to center a single line in an align
?
I want to center 0 = 0
.
MWE:
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align*}
0 = 0\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d
end{align*}
end{document}
align
How is it able to center a single line in an align
?
I want to center 0 = 0
.
MWE:
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align*}
0 = 0\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d
end{align*}
end{document}
align
align
asked yesterday
BenBen
7991419
7991419
This question contains some possibly relevant information regarding usingaligned
together withgather*
.
– barbara beeton
yesterday
@barbarabeeton I'm unsure what exactly you want to point out
– Ben
yesterday
The answers contain examples using bothgather*
andaligned
, although only a single "column" is aligned. This might not be an obvious help to you, but it might help some future person loolking for information.
– barbara beeton
yesterday
add a comment |
This question contains some possibly relevant information regarding usingaligned
together withgather*
.
– barbara beeton
yesterday
@barbarabeeton I'm unsure what exactly you want to point out
– Ben
yesterday
The answers contain examples using bothgather*
andaligned
, although only a single "column" is aligned. This might not be an obvious help to you, but it might help some future person loolking for information.
– barbara beeton
yesterday
This question contains some possibly relevant information regarding using
aligned
together with gather*
.– barbara beeton
yesterday
This question contains some possibly relevant information regarding using
aligned
together with gather*
.– barbara beeton
yesterday
@barbarabeeton I'm unsure what exactly you want to point out
– Ben
yesterday
@barbarabeeton I'm unsure what exactly you want to point out
– Ben
yesterday
The answers contain examples using both
gather*
and aligned
, although only a single "column" is aligned. This might not be an obvious help to you, but it might help some future person loolking for information.– barbara beeton
yesterday
The answers contain examples using both
gather*
and aligned
, although only a single "column" is aligned. This might not be an obvious help to you, but it might help some future person loolking for information.– barbara beeton
yesterday
add a comment |
2 Answers
2
active
oldest
votes
To have more or less the spacing of the original code, I'd use the alignedat
environment, to have full control on the spacing:
documentclass{article}
usepackage{mathtools}
begin{document}
begin{gather*}
0 = 0\
begin{alignedat}{2}
a &= b &hspace{10em} c &= d\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d
end{alignedat}
end{gather*}
end{document}
Is it possible, to align the0=0
with a more equations-0=0
, ...?
– Ben
yesterday
1
Not sure to fully see what you want, but try nesting them in anotheraligned
environment.
– Bernard
yesterday
This works. Another question: Did YOU choose the space10em
freely? AMS splits the hole free horizontal space around and in-between the equations equally, doesn't it?
– Ben
yesterday
1
Actually&hspace{10em}c
denotes the l.h.s. of the 2nd column of alignment. This l.h.s. is right-aligned w.r.t. the following&=
.
– Bernard
yesterday
I'm unsure, if I got this right. Especially I'm unsure, what l.h.s. stands for... I guessalignedat
is just analigned
with zero space between the equations, right?
– Ben
yesterday
|
show 2 more comments
documentclass{article}
usepackage{amsmath}
begin{document}
begin{gather*}
0 = 0\
begin{aligned}
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d
end{aligned}
end{gather*}
end{document}
1
:-( Also I was using gathered package :-) LOL.
– Sebastiano
yesterday
2
@Sebastiano Great minds think alike!
– Steven B. Segletes
yesterday
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%2f477857%2fcenter-single-lines-in-align%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
To have more or less the spacing of the original code, I'd use the alignedat
environment, to have full control on the spacing:
documentclass{article}
usepackage{mathtools}
begin{document}
begin{gather*}
0 = 0\
begin{alignedat}{2}
a &= b &hspace{10em} c &= d\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d
end{alignedat}
end{gather*}
end{document}
Is it possible, to align the0=0
with a more equations-0=0
, ...?
– Ben
yesterday
1
Not sure to fully see what you want, but try nesting them in anotheraligned
environment.
– Bernard
yesterday
This works. Another question: Did YOU choose the space10em
freely? AMS splits the hole free horizontal space around and in-between the equations equally, doesn't it?
– Ben
yesterday
1
Actually&hspace{10em}c
denotes the l.h.s. of the 2nd column of alignment. This l.h.s. is right-aligned w.r.t. the following&=
.
– Bernard
yesterday
I'm unsure, if I got this right. Especially I'm unsure, what l.h.s. stands for... I guessalignedat
is just analigned
with zero space between the equations, right?
– Ben
yesterday
|
show 2 more comments
To have more or less the spacing of the original code, I'd use the alignedat
environment, to have full control on the spacing:
documentclass{article}
usepackage{mathtools}
begin{document}
begin{gather*}
0 = 0\
begin{alignedat}{2}
a &= b &hspace{10em} c &= d\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d
end{alignedat}
end{gather*}
end{document}
Is it possible, to align the0=0
with a more equations-0=0
, ...?
– Ben
yesterday
1
Not sure to fully see what you want, but try nesting them in anotheraligned
environment.
– Bernard
yesterday
This works. Another question: Did YOU choose the space10em
freely? AMS splits the hole free horizontal space around and in-between the equations equally, doesn't it?
– Ben
yesterday
1
Actually&hspace{10em}c
denotes the l.h.s. of the 2nd column of alignment. This l.h.s. is right-aligned w.r.t. the following&=
.
– Bernard
yesterday
I'm unsure, if I got this right. Especially I'm unsure, what l.h.s. stands for... I guessalignedat
is just analigned
with zero space between the equations, right?
– Ben
yesterday
|
show 2 more comments
To have more or less the spacing of the original code, I'd use the alignedat
environment, to have full control on the spacing:
documentclass{article}
usepackage{mathtools}
begin{document}
begin{gather*}
0 = 0\
begin{alignedat}{2}
a &= b &hspace{10em} c &= d\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d
end{alignedat}
end{gather*}
end{document}
To have more or less the spacing of the original code, I'd use the alignedat
environment, to have full control on the spacing:
documentclass{article}
usepackage{mathtools}
begin{document}
begin{gather*}
0 = 0\
begin{alignedat}{2}
a &= b &hspace{10em} c &= d\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d
end{alignedat}
end{gather*}
end{document}
answered yesterday
BernardBernard
172k776204
172k776204
Is it possible, to align the0=0
with a more equations-0=0
, ...?
– Ben
yesterday
1
Not sure to fully see what you want, but try nesting them in anotheraligned
environment.
– Bernard
yesterday
This works. Another question: Did YOU choose the space10em
freely? AMS splits the hole free horizontal space around and in-between the equations equally, doesn't it?
– Ben
yesterday
1
Actually&hspace{10em}c
denotes the l.h.s. of the 2nd column of alignment. This l.h.s. is right-aligned w.r.t. the following&=
.
– Bernard
yesterday
I'm unsure, if I got this right. Especially I'm unsure, what l.h.s. stands for... I guessalignedat
is just analigned
with zero space between the equations, right?
– Ben
yesterday
|
show 2 more comments
Is it possible, to align the0=0
with a more equations-0=0
, ...?
– Ben
yesterday
1
Not sure to fully see what you want, but try nesting them in anotheraligned
environment.
– Bernard
yesterday
This works. Another question: Did YOU choose the space10em
freely? AMS splits the hole free horizontal space around and in-between the equations equally, doesn't it?
– Ben
yesterday
1
Actually&hspace{10em}c
denotes the l.h.s. of the 2nd column of alignment. This l.h.s. is right-aligned w.r.t. the following&=
.
– Bernard
yesterday
I'm unsure, if I got this right. Especially I'm unsure, what l.h.s. stands for... I guessalignedat
is just analigned
with zero space between the equations, right?
– Ben
yesterday
Is it possible, to align the
0=0
with a more equations -0=0
, ...?– Ben
yesterday
Is it possible, to align the
0=0
with a more equations -0=0
, ...?– Ben
yesterday
1
1
Not sure to fully see what you want, but try nesting them in another
aligned
environment.– Bernard
yesterday
Not sure to fully see what you want, but try nesting them in another
aligned
environment.– Bernard
yesterday
This works. Another question: Did YOU choose the space
10em
freely? AMS splits the hole free horizontal space around and in-between the equations equally, doesn't it?– Ben
yesterday
This works. Another question: Did YOU choose the space
10em
freely? AMS splits the hole free horizontal space around and in-between the equations equally, doesn't it?– Ben
yesterday
1
1
Actually
&hspace{10em}c
denotes the l.h.s. of the 2nd column of alignment. This l.h.s. is right-aligned w.r.t. the following &=
.– Bernard
yesterday
Actually
&hspace{10em}c
denotes the l.h.s. of the 2nd column of alignment. This l.h.s. is right-aligned w.r.t. the following &=
.– Bernard
yesterday
I'm unsure, if I got this right. Especially I'm unsure, what l.h.s. stands for... I guess
alignedat
is just an aligned
with zero space between the equations, right?– Ben
yesterday
I'm unsure, if I got this right. Especially I'm unsure, what l.h.s. stands for... I guess
alignedat
is just an aligned
with zero space between the equations, right?– Ben
yesterday
|
show 2 more comments
documentclass{article}
usepackage{amsmath}
begin{document}
begin{gather*}
0 = 0\
begin{aligned}
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d
end{aligned}
end{gather*}
end{document}
1
:-( Also I was using gathered package :-) LOL.
– Sebastiano
yesterday
2
@Sebastiano Great minds think alike!
– Steven B. Segletes
yesterday
add a comment |
documentclass{article}
usepackage{amsmath}
begin{document}
begin{gather*}
0 = 0\
begin{aligned}
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d
end{aligned}
end{gather*}
end{document}
1
:-( Also I was using gathered package :-) LOL.
– Sebastiano
yesterday
2
@Sebastiano Great minds think alike!
– Steven B. Segletes
yesterday
add a comment |
documentclass{article}
usepackage{amsmath}
begin{document}
begin{gather*}
0 = 0\
begin{aligned}
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d
end{aligned}
end{gather*}
end{document}
documentclass{article}
usepackage{amsmath}
begin{document}
begin{gather*}
0 = 0\
begin{aligned}
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d\
a &= b & c &= d
end{aligned}
end{gather*}
end{document}
answered yesterday
Steven B. SegletesSteven B. Segletes
157k9203411
157k9203411
1
:-( Also I was using gathered package :-) LOL.
– Sebastiano
yesterday
2
@Sebastiano Great minds think alike!
– Steven B. Segletes
yesterday
add a comment |
1
:-( Also I was using gathered package :-) LOL.
– Sebastiano
yesterday
2
@Sebastiano Great minds think alike!
– Steven B. Segletes
yesterday
1
1
:-( Also I was using gathered package :-) LOL.
– Sebastiano
yesterday
:-( Also I was using gathered package :-) LOL.
– Sebastiano
yesterday
2
2
@Sebastiano Great minds think alike!
– Steven B. Segletes
yesterday
@Sebastiano Great minds think alike!
– Steven B. Segletes
yesterday
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%2f477857%2fcenter-single-lines-in-align%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
This question contains some possibly relevant information regarding using
aligned
together withgather*
.– barbara beeton
yesterday
@barbarabeeton I'm unsure what exactly you want to point out
– Ben
yesterday
The answers contain examples using both
gather*
andaligned
, although only a single "column" is aligned. This might not be an obvious help to you, but it might help some future person loolking for information.– barbara beeton
yesterday