Center single line(s) in align












4















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}









share|improve this question























  • 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











  • 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
















4















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}









share|improve this question























  • 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











  • 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














4












4








4


1






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}









share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked yesterday









BenBen

7991419




7991419













  • 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











  • 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



















  • 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











  • 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

















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










2 Answers
2






active

oldest

votes


















6














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}


enter image description here






share|improve this answer
























  • Is it possible, to align the 0=0 with a more equations -0=0, ...?

    – Ben
    yesterday






  • 1





    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








  • 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 guess alignedat is just an aligned with zero space between the equations, right?

    – Ben
    yesterday



















4














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}


enter image description here






share|improve this answer



















  • 1





    :-( Also I was using gathered package :-) LOL.

    – Sebastiano
    yesterday






  • 2





    @Sebastiano Great minds think alike!

    – Steven B. Segletes
    yesterday











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
});


}
});














draft saved

draft discarded


















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









6














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}


enter image description here






share|improve this answer
























  • Is it possible, to align the 0=0 with a more equations -0=0, ...?

    – Ben
    yesterday






  • 1





    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








  • 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 guess alignedat is just an aligned with zero space between the equations, right?

    – Ben
    yesterday
















6














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}


enter image description here






share|improve this answer
























  • Is it possible, to align the 0=0 with a more equations -0=0, ...?

    – Ben
    yesterday






  • 1





    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








  • 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 guess alignedat is just an aligned with zero space between the equations, right?

    – Ben
    yesterday














6












6








6







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}


enter image description here






share|improve this answer













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}


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered yesterday









BernardBernard

172k776204




172k776204













  • Is it possible, to align the 0=0 with a more equations -0=0, ...?

    – Ben
    yesterday






  • 1





    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








  • 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 guess alignedat is just an aligned 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






  • 1





    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








  • 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 guess alignedat is just an aligned 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











4














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}


enter image description here






share|improve this answer



















  • 1





    :-( Also I was using gathered package :-) LOL.

    – Sebastiano
    yesterday






  • 2





    @Sebastiano Great minds think alike!

    – Steven B. Segletes
    yesterday
















4














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}


enter image description here






share|improve this answer



















  • 1





    :-( Also I was using gathered package :-) LOL.

    – Sebastiano
    yesterday






  • 2





    @Sebastiano Great minds think alike!

    – Steven B. Segletes
    yesterday














4












4








4







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}


enter image description here






share|improve this answer













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}


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










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














  • 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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

How to label and detect the document text images

Vallis Paradisi

Tabula Rosettana