Equation tags with subequations












8















Consider the following MWE:



documentclass{article}

usepackage{mathtools}

begin{document}

begin{align}
label{system}
&left{
begin{aligned}
30^{2} &= h_{C}^{2} + y^{2};\
40^{2} &= h_{C}^{2} + (50 - y)^{2};
end{aligned}
right.\
ArrowBetweenLines[Downarrow]
&left{
begin{aligned}
h_{C}^{2} &= 30^{2} - y^{2};\
h_{C}^{2} &= 40^{2} - (50 - y)^{2}.
end{aligned}
right.
end{align}

end{document}


output



I have two problems that I don't know how to solve:




  • The equation tags are obviously not placed properly.

  • I would like to label all four equation using the subequation environment in order to get "(1a)", "(1b)", "(1c)", and "(1d)".


Thank you in advance.










share|improve this question

























  • I think using alignat already introduces a shift in numbering.

    – Raaja
    Dec 25 '18 at 15:35











  • @Raaja Okay. If you figure out how to typeset it properly, please let me know.

    – Svend Tveskæg
    Dec 25 '18 at 15:37











  • Yep I shall do!

    – Raaja
    Dec 25 '18 at 16:02
















8















Consider the following MWE:



documentclass{article}

usepackage{mathtools}

begin{document}

begin{align}
label{system}
&left{
begin{aligned}
30^{2} &= h_{C}^{2} + y^{2};\
40^{2} &= h_{C}^{2} + (50 - y)^{2};
end{aligned}
right.\
ArrowBetweenLines[Downarrow]
&left{
begin{aligned}
h_{C}^{2} &= 30^{2} - y^{2};\
h_{C}^{2} &= 40^{2} - (50 - y)^{2}.
end{aligned}
right.
end{align}

end{document}


output



I have two problems that I don't know how to solve:




  • The equation tags are obviously not placed properly.

  • I would like to label all four equation using the subequation environment in order to get "(1a)", "(1b)", "(1c)", and "(1d)".


Thank you in advance.










share|improve this question

























  • I think using alignat already introduces a shift in numbering.

    – Raaja
    Dec 25 '18 at 15:35











  • @Raaja Okay. If you figure out how to typeset it properly, please let me know.

    – Svend Tveskæg
    Dec 25 '18 at 15:37











  • Yep I shall do!

    – Raaja
    Dec 25 '18 at 16:02














8












8








8


0






Consider the following MWE:



documentclass{article}

usepackage{mathtools}

begin{document}

begin{align}
label{system}
&left{
begin{aligned}
30^{2} &= h_{C}^{2} + y^{2};\
40^{2} &= h_{C}^{2} + (50 - y)^{2};
end{aligned}
right.\
ArrowBetweenLines[Downarrow]
&left{
begin{aligned}
h_{C}^{2} &= 30^{2} - y^{2};\
h_{C}^{2} &= 40^{2} - (50 - y)^{2}.
end{aligned}
right.
end{align}

end{document}


output



I have two problems that I don't know how to solve:




  • The equation tags are obviously not placed properly.

  • I would like to label all four equation using the subequation environment in order to get "(1a)", "(1b)", "(1c)", and "(1d)".


Thank you in advance.










share|improve this question
















Consider the following MWE:



documentclass{article}

usepackage{mathtools}

begin{document}

begin{align}
label{system}
&left{
begin{aligned}
30^{2} &= h_{C}^{2} + y^{2};\
40^{2} &= h_{C}^{2} + (50 - y)^{2};
end{aligned}
right.\
ArrowBetweenLines[Downarrow]
&left{
begin{aligned}
h_{C}^{2} &= 30^{2} - y^{2};\
h_{C}^{2} &= 40^{2} - (50 - y)^{2}.
end{aligned}
right.
end{align}

end{document}


output



I have two problems that I don't know how to solve:




  • The equation tags are obviously not placed properly.

  • I would like to label all four equation using the subequation environment in order to get "(1a)", "(1b)", "(1c)", and "(1d)".


Thank you in advance.







labels subequations






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 25 '18 at 15:23









Raaja

3,64521037




3,64521037










asked Dec 25 '18 at 13:57









Svend TveskægSvend Tveskæg

20.8k1051139




20.8k1051139













  • I think using alignat already introduces a shift in numbering.

    – Raaja
    Dec 25 '18 at 15:35











  • @Raaja Okay. If you figure out how to typeset it properly, please let me know.

    – Svend Tveskæg
    Dec 25 '18 at 15:37











  • Yep I shall do!

    – Raaja
    Dec 25 '18 at 16:02



















  • I think using alignat already introduces a shift in numbering.

    – Raaja
    Dec 25 '18 at 15:35











  • @Raaja Okay. If you figure out how to typeset it properly, please let me know.

    – Svend Tveskæg
    Dec 25 '18 at 15:37











  • Yep I shall do!

    – Raaja
    Dec 25 '18 at 16:02

















I think using alignat already introduces a shift in numbering.

– Raaja
Dec 25 '18 at 15:35





I think using alignat already introduces a shift in numbering.

– Raaja
Dec 25 '18 at 15:35













@Raaja Okay. If you figure out how to typeset it properly, please let me know.

– Svend Tveskæg
Dec 25 '18 at 15:37





@Raaja Okay. If you figure out how to typeset it properly, please let me know.

– Svend Tveskæg
Dec 25 '18 at 15:37













Yep I shall do!

– Raaja
Dec 25 '18 at 16:02





Yep I shall do!

– Raaja
Dec 25 '18 at 16:02










2 Answers
2






active

oldest

votes


















5














May be as a first try with my so-called null hack (of course not beautiful ;)), you can achieve what you want within a subequation environment by overloading the empheq package (of course along with the amsmath package).



documentclass[10pt,a4paper]{article}
usepackage{mathtools}
usepackage{amsmath}
usepackage[overload]{empheq}
begin{document}
begin{subequations}label{e1}
begin{align}[left ={empheqlbrace}]
a = 1 &label{e1a}\
b = 1 &label{e1b}\
c = 1 &label{e1c}
end{align}
% the poor man's NULL hack :D
null\
begin{align*}
&ArrowBetweenLines[Downarrow]
end{align*}
begin{align}[left ={empheqlbrace}]
d = 1 &label{e1d}\
e = 1 &label{e1e}\
f = 1 &label{e1f}
end{align}
end{subequations}

end{document}


which can give you with



enter image description here






share|improve this answer



















  • 2





    Nice first try. :-) The spacing between the two blocks of equations is too lange. Also, the ArrowBetweenLines[Downarrow] isn't moved enough to the left, relative to the equations blocks and the braces.

    – Svend Tveskæg
    Dec 25 '18 at 15:04













  • @SvendTveskæg I will look into that :)

    – Raaja
    Dec 25 '18 at 15:14






  • 1





    @SvendTveskæg Would a tikz based solution work for you?

    – Raaja
    Dec 25 '18 at 16:16











  • No, thanks. I need a "pure" math environment solution.

    – Svend Tveskæg
    Dec 25 '18 at 16:22



















4














documentclass{article}
usepackage[overload]{empheq}
usepackage{mathtools}

begin{document}

begin{subequations}
begin{align}[left = empheqlbrace,]
30^{2} &= h_{C}^{2} + y^{2};\
40^{2} &= h_{C}^{2} + (50 - y)^{2};
end{align}
null\[-5pt]
begin{align*}
\[-104pt]
&phantom{sssssssssssssssssssssss}ArrowBetweenLines[Downarrow]
\[-104pt]
end{align*}
null\[-35pt]
begin{align}[left = empheqlbrace,]
h_{C}^{2} &= 30^{2} - y^{2};\
h_{C}^{2} &= 40^{2} - (50 - y)^{2}.
end{align}
end{subequations}

end{document}


enter image description here






share|improve this answer





















  • 2





    Please do not post fragments of code but always a complete minimal compilable example (MWE) illustrating your solution.

    – TeXnician
    Dec 26 '18 at 8:58











  • @TeXnician Hope now updated MWE is fine.

    – Saravanan
    Dec 26 '18 at 16:05











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%2f467287%2fequation-tags-with-subequations%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









5














May be as a first try with my so-called null hack (of course not beautiful ;)), you can achieve what you want within a subequation environment by overloading the empheq package (of course along with the amsmath package).



documentclass[10pt,a4paper]{article}
usepackage{mathtools}
usepackage{amsmath}
usepackage[overload]{empheq}
begin{document}
begin{subequations}label{e1}
begin{align}[left ={empheqlbrace}]
a = 1 &label{e1a}\
b = 1 &label{e1b}\
c = 1 &label{e1c}
end{align}
% the poor man's NULL hack :D
null\
begin{align*}
&ArrowBetweenLines[Downarrow]
end{align*}
begin{align}[left ={empheqlbrace}]
d = 1 &label{e1d}\
e = 1 &label{e1e}\
f = 1 &label{e1f}
end{align}
end{subequations}

end{document}


which can give you with



enter image description here






share|improve this answer



















  • 2





    Nice first try. :-) The spacing between the two blocks of equations is too lange. Also, the ArrowBetweenLines[Downarrow] isn't moved enough to the left, relative to the equations blocks and the braces.

    – Svend Tveskæg
    Dec 25 '18 at 15:04













  • @SvendTveskæg I will look into that :)

    – Raaja
    Dec 25 '18 at 15:14






  • 1





    @SvendTveskæg Would a tikz based solution work for you?

    – Raaja
    Dec 25 '18 at 16:16











  • No, thanks. I need a "pure" math environment solution.

    – Svend Tveskæg
    Dec 25 '18 at 16:22
















5














May be as a first try with my so-called null hack (of course not beautiful ;)), you can achieve what you want within a subequation environment by overloading the empheq package (of course along with the amsmath package).



documentclass[10pt,a4paper]{article}
usepackage{mathtools}
usepackage{amsmath}
usepackage[overload]{empheq}
begin{document}
begin{subequations}label{e1}
begin{align}[left ={empheqlbrace}]
a = 1 &label{e1a}\
b = 1 &label{e1b}\
c = 1 &label{e1c}
end{align}
% the poor man's NULL hack :D
null\
begin{align*}
&ArrowBetweenLines[Downarrow]
end{align*}
begin{align}[left ={empheqlbrace}]
d = 1 &label{e1d}\
e = 1 &label{e1e}\
f = 1 &label{e1f}
end{align}
end{subequations}

end{document}


which can give you with



enter image description here






share|improve this answer



















  • 2





    Nice first try. :-) The spacing between the two blocks of equations is too lange. Also, the ArrowBetweenLines[Downarrow] isn't moved enough to the left, relative to the equations blocks and the braces.

    – Svend Tveskæg
    Dec 25 '18 at 15:04













  • @SvendTveskæg I will look into that :)

    – Raaja
    Dec 25 '18 at 15:14






  • 1





    @SvendTveskæg Would a tikz based solution work for you?

    – Raaja
    Dec 25 '18 at 16:16











  • No, thanks. I need a "pure" math environment solution.

    – Svend Tveskæg
    Dec 25 '18 at 16:22














5












5








5







May be as a first try with my so-called null hack (of course not beautiful ;)), you can achieve what you want within a subequation environment by overloading the empheq package (of course along with the amsmath package).



documentclass[10pt,a4paper]{article}
usepackage{mathtools}
usepackage{amsmath}
usepackage[overload]{empheq}
begin{document}
begin{subequations}label{e1}
begin{align}[left ={empheqlbrace}]
a = 1 &label{e1a}\
b = 1 &label{e1b}\
c = 1 &label{e1c}
end{align}
% the poor man's NULL hack :D
null\
begin{align*}
&ArrowBetweenLines[Downarrow]
end{align*}
begin{align}[left ={empheqlbrace}]
d = 1 &label{e1d}\
e = 1 &label{e1e}\
f = 1 &label{e1f}
end{align}
end{subequations}

end{document}


which can give you with



enter image description here






share|improve this answer













May be as a first try with my so-called null hack (of course not beautiful ;)), you can achieve what you want within a subequation environment by overloading the empheq package (of course along with the amsmath package).



documentclass[10pt,a4paper]{article}
usepackage{mathtools}
usepackage{amsmath}
usepackage[overload]{empheq}
begin{document}
begin{subequations}label{e1}
begin{align}[left ={empheqlbrace}]
a = 1 &label{e1a}\
b = 1 &label{e1b}\
c = 1 &label{e1c}
end{align}
% the poor man's NULL hack :D
null\
begin{align*}
&ArrowBetweenLines[Downarrow]
end{align*}
begin{align}[left ={empheqlbrace}]
d = 1 &label{e1d}\
e = 1 &label{e1e}\
f = 1 &label{e1f}
end{align}
end{subequations}

end{document}


which can give you with



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 25 '18 at 14:44









RaajaRaaja

3,64521037




3,64521037








  • 2





    Nice first try. :-) The spacing between the two blocks of equations is too lange. Also, the ArrowBetweenLines[Downarrow] isn't moved enough to the left, relative to the equations blocks and the braces.

    – Svend Tveskæg
    Dec 25 '18 at 15:04













  • @SvendTveskæg I will look into that :)

    – Raaja
    Dec 25 '18 at 15:14






  • 1





    @SvendTveskæg Would a tikz based solution work for you?

    – Raaja
    Dec 25 '18 at 16:16











  • No, thanks. I need a "pure" math environment solution.

    – Svend Tveskæg
    Dec 25 '18 at 16:22














  • 2





    Nice first try. :-) The spacing between the two blocks of equations is too lange. Also, the ArrowBetweenLines[Downarrow] isn't moved enough to the left, relative to the equations blocks and the braces.

    – Svend Tveskæg
    Dec 25 '18 at 15:04













  • @SvendTveskæg I will look into that :)

    – Raaja
    Dec 25 '18 at 15:14






  • 1





    @SvendTveskæg Would a tikz based solution work for you?

    – Raaja
    Dec 25 '18 at 16:16











  • No, thanks. I need a "pure" math environment solution.

    – Svend Tveskæg
    Dec 25 '18 at 16:22








2




2





Nice first try. :-) The spacing between the two blocks of equations is too lange. Also, the ArrowBetweenLines[Downarrow] isn't moved enough to the left, relative to the equations blocks and the braces.

– Svend Tveskæg
Dec 25 '18 at 15:04







Nice first try. :-) The spacing between the two blocks of equations is too lange. Also, the ArrowBetweenLines[Downarrow] isn't moved enough to the left, relative to the equations blocks and the braces.

– Svend Tveskæg
Dec 25 '18 at 15:04















@SvendTveskæg I will look into that :)

– Raaja
Dec 25 '18 at 15:14





@SvendTveskæg I will look into that :)

– Raaja
Dec 25 '18 at 15:14




1




1





@SvendTveskæg Would a tikz based solution work for you?

– Raaja
Dec 25 '18 at 16:16





@SvendTveskæg Would a tikz based solution work for you?

– Raaja
Dec 25 '18 at 16:16













No, thanks. I need a "pure" math environment solution.

– Svend Tveskæg
Dec 25 '18 at 16:22





No, thanks. I need a "pure" math environment solution.

– Svend Tveskæg
Dec 25 '18 at 16:22











4














documentclass{article}
usepackage[overload]{empheq}
usepackage{mathtools}

begin{document}

begin{subequations}
begin{align}[left = empheqlbrace,]
30^{2} &= h_{C}^{2} + y^{2};\
40^{2} &= h_{C}^{2} + (50 - y)^{2};
end{align}
null\[-5pt]
begin{align*}
\[-104pt]
&phantom{sssssssssssssssssssssss}ArrowBetweenLines[Downarrow]
\[-104pt]
end{align*}
null\[-35pt]
begin{align}[left = empheqlbrace,]
h_{C}^{2} &= 30^{2} - y^{2};\
h_{C}^{2} &= 40^{2} - (50 - y)^{2}.
end{align}
end{subequations}

end{document}


enter image description here






share|improve this answer





















  • 2





    Please do not post fragments of code but always a complete minimal compilable example (MWE) illustrating your solution.

    – TeXnician
    Dec 26 '18 at 8:58











  • @TeXnician Hope now updated MWE is fine.

    – Saravanan
    Dec 26 '18 at 16:05
















4














documentclass{article}
usepackage[overload]{empheq}
usepackage{mathtools}

begin{document}

begin{subequations}
begin{align}[left = empheqlbrace,]
30^{2} &= h_{C}^{2} + y^{2};\
40^{2} &= h_{C}^{2} + (50 - y)^{2};
end{align}
null\[-5pt]
begin{align*}
\[-104pt]
&phantom{sssssssssssssssssssssss}ArrowBetweenLines[Downarrow]
\[-104pt]
end{align*}
null\[-35pt]
begin{align}[left = empheqlbrace,]
h_{C}^{2} &= 30^{2} - y^{2};\
h_{C}^{2} &= 40^{2} - (50 - y)^{2}.
end{align}
end{subequations}

end{document}


enter image description here






share|improve this answer





















  • 2





    Please do not post fragments of code but always a complete minimal compilable example (MWE) illustrating your solution.

    – TeXnician
    Dec 26 '18 at 8:58











  • @TeXnician Hope now updated MWE is fine.

    – Saravanan
    Dec 26 '18 at 16:05














4












4








4







documentclass{article}
usepackage[overload]{empheq}
usepackage{mathtools}

begin{document}

begin{subequations}
begin{align}[left = empheqlbrace,]
30^{2} &= h_{C}^{2} + y^{2};\
40^{2} &= h_{C}^{2} + (50 - y)^{2};
end{align}
null\[-5pt]
begin{align*}
\[-104pt]
&phantom{sssssssssssssssssssssss}ArrowBetweenLines[Downarrow]
\[-104pt]
end{align*}
null\[-35pt]
begin{align}[left = empheqlbrace,]
h_{C}^{2} &= 30^{2} - y^{2};\
h_{C}^{2} &= 40^{2} - (50 - y)^{2}.
end{align}
end{subequations}

end{document}


enter image description here






share|improve this answer















documentclass{article}
usepackage[overload]{empheq}
usepackage{mathtools}

begin{document}

begin{subequations}
begin{align}[left = empheqlbrace,]
30^{2} &= h_{C}^{2} + y^{2};\
40^{2} &= h_{C}^{2} + (50 - y)^{2};
end{align}
null\[-5pt]
begin{align*}
\[-104pt]
&phantom{sssssssssssssssssssssss}ArrowBetweenLines[Downarrow]
\[-104pt]
end{align*}
null\[-35pt]
begin{align}[left = empheqlbrace,]
h_{C}^{2} &= 30^{2} - y^{2};\
h_{C}^{2} &= 40^{2} - (50 - y)^{2}.
end{align}
end{subequations}

end{document}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 26 '18 at 16:17









Svend Tveskæg

20.8k1051139




20.8k1051139










answered Dec 25 '18 at 15:31









SaravananSaravanan

1,153214




1,153214








  • 2





    Please do not post fragments of code but always a complete minimal compilable example (MWE) illustrating your solution.

    – TeXnician
    Dec 26 '18 at 8:58











  • @TeXnician Hope now updated MWE is fine.

    – Saravanan
    Dec 26 '18 at 16:05














  • 2





    Please do not post fragments of code but always a complete minimal compilable example (MWE) illustrating your solution.

    – TeXnician
    Dec 26 '18 at 8:58











  • @TeXnician Hope now updated MWE is fine.

    – Saravanan
    Dec 26 '18 at 16:05








2




2





Please do not post fragments of code but always a complete minimal compilable example (MWE) illustrating your solution.

– TeXnician
Dec 26 '18 at 8:58





Please do not post fragments of code but always a complete minimal compilable example (MWE) illustrating your solution.

– TeXnician
Dec 26 '18 at 8:58













@TeXnician Hope now updated MWE is fine.

– Saravanan
Dec 26 '18 at 16:05





@TeXnician Hope now updated MWE is fine.

– Saravanan
Dec 26 '18 at 16:05


















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%2f467287%2fequation-tags-with-subequations%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

Bressuire

Cabo Verde

Gyllenstierna