Two equations on the same line
I have seen some posts close to what I need, but not quite what I need.
I would like to produce two equations on the same line with one equation number adjusted to left and one to the right. Both equations should be multiline.
And I want to generate a tag for both equation labels.
So the output should look like what is produced by the code below.
begin{array}{llrr}
& a=b & x=y & \
(eq1) & c=d & y=z & (eq2) \
& e=f & u=v
end{array}
equations line
add a comment |
I have seen some posts close to what I need, but not quite what I need.
I would like to produce two equations on the same line with one equation number adjusted to left and one to the right. Both equations should be multiline.
And I want to generate a tag for both equation labels.
So the output should look like what is produced by the code below.
begin{array}{llrr}
& a=b & x=y & \
(eq1) & c=d & y=z & (eq2) \
& e=f & u=v
end{array}
equations line
1) Welcome. 2) Please provide a so-called MWE: tex.meta.stackexchange.com/questions/228. 3) Maybe you can provide a link to the close posts that you are referring to. 4) At least I have trouble understanding exactly what you want to achieve. Maybe you can draw an example/illustration by hand and provide the picture. 5) I also enjoyed the movieDistrict 9
(assuming you are referring to it with your name) :).
– Dr. Manuel Kuehner
Dec 29 '18 at 14:00
add a comment |
I have seen some posts close to what I need, but not quite what I need.
I would like to produce two equations on the same line with one equation number adjusted to left and one to the right. Both equations should be multiline.
And I want to generate a tag for both equation labels.
So the output should look like what is produced by the code below.
begin{array}{llrr}
& a=b & x=y & \
(eq1) & c=d & y=z & (eq2) \
& e=f & u=v
end{array}
equations line
I have seen some posts close to what I need, but not quite what I need.
I would like to produce two equations on the same line with one equation number adjusted to left and one to the right. Both equations should be multiline.
And I want to generate a tag for both equation labels.
So the output should look like what is produced by the code below.
begin{array}{llrr}
& a=b & x=y & \
(eq1) & c=d & y=z & (eq2) \
& e=f & u=v
end{array}
equations line
equations line
edited Dec 30 '18 at 0:44
Peter Mortensen
54536
54536
asked Dec 29 '18 at 13:45
district9district9
312
312
1) Welcome. 2) Please provide a so-called MWE: tex.meta.stackexchange.com/questions/228. 3) Maybe you can provide a link to the close posts that you are referring to. 4) At least I have trouble understanding exactly what you want to achieve. Maybe you can draw an example/illustration by hand and provide the picture. 5) I also enjoyed the movieDistrict 9
(assuming you are referring to it with your name) :).
– Dr. Manuel Kuehner
Dec 29 '18 at 14:00
add a comment |
1) Welcome. 2) Please provide a so-called MWE: tex.meta.stackexchange.com/questions/228. 3) Maybe you can provide a link to the close posts that you are referring to. 4) At least I have trouble understanding exactly what you want to achieve. Maybe you can draw an example/illustration by hand and provide the picture. 5) I also enjoyed the movieDistrict 9
(assuming you are referring to it with your name) :).
– Dr. Manuel Kuehner
Dec 29 '18 at 14:00
1) Welcome. 2) Please provide a so-called MWE: tex.meta.stackexchange.com/questions/228. 3) Maybe you can provide a link to the close posts that you are referring to. 4) At least I have trouble understanding exactly what you want to achieve. Maybe you can draw an example/illustration by hand and provide the picture. 5) I also enjoyed the movie
District 9
(assuming you are referring to it with your name) :).– Dr. Manuel Kuehner
Dec 29 '18 at 14:00
1) Welcome. 2) Please provide a so-called MWE: tex.meta.stackexchange.com/questions/228. 3) Maybe you can provide a link to the close posts that you are referring to. 4) At least I have trouble understanding exactly what you want to achieve. Maybe you can draw an example/illustration by hand and provide the picture. 5) I also enjoyed the movie
District 9
(assuming you are referring to it with your name) :).– Dr. Manuel Kuehner
Dec 29 '18 at 14:00
add a comment |
3 Answers
3
active
oldest
votes
I propose this solution, with a code borrowed on this site from @DavidCarlisle:
documentclass{article}
usepackage[utf8]{inputenc}%
usepackage{tabularx}
usepackage{mathtools, nccmath}
makeatletter
newcommand{leqnomode}{tagsleft@trueletveqno@@leqno}%
newcommand{reqnomode}{tagsleft@falseletveqno@@eqno}%
newcommand*{compress}{@minipagetrue}
makeatother
begin{document}
Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.
{centeringcompress
begin{tabularx}{linewidth}{>{leqnomode}XX}
begin{equation}
begin{aligned}
a & =b \
c & =d \
e & =f
end{aligned}
end{equation}
&
begin{equation}
begin{aligned}
x & =y \
y & =z \
u & =v
end{aligned}
end{equation}
end{tabularx} vspace{-baselineskip}}
Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text.
end{document}
Thank you. Nice to have all these options.
– district9
Dec 29 '18 at 17:33
add a comment |
Like this:
documentclass{article}
usepackage{tabularx}
newcolumntype{C}{>{centeringarraybackslash}X}
usepackage{amsmath}
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
usepackage{lipsum}
begin{document}
lipsum*[66]
begin{center}
begin{tabularx}{linewidth}{@{} lCCr @{}}
refstepcounter{equation}
(theequation)label{eq:left}
& $begin{aligned}
a & = b \
c & = d
end{aligned}$
& $begin{aligned}
x & = y \
z & = w
end{aligned}$
& refstepcounter{equation}
(theequation)label{eq:right}
end{tabularx}
end{center}
dots, see eqref{eq:left} and eqref{eq:right} dots
lipsum*[66]
end{document}
Addendum: I figured out how to use my own tags for equations:
documentclass{article}
usepackage{amsmath}
makeatletter
newcommand{leqnomode}{tagsleft@true}
newcommand{reqnomode}{tagsleft@false}
makeatother
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
usepackage{lipsum}
begin{document}
lipsum*[66]
begin{center}
vspace{-baselineskip}
begin{minipage}{0.5linewidth}leqnomode
begin{equation}label{eq:left}
begin{split}
a & = b \
c & = d
end{split}tag{*}
end{equation}
end{minipage}begin{minipage}{0.5linewidth}
begin{equation}label{eq:right}
begin{split}
x & = y \
z & = uvw
end{split}tag{**}
end{equation}
end{minipage}
end{center}
dots, see eqref{eq:left} and eqref{eq:right} dots
lipsum*[66]
end{document}
+1: So there is no pre-defined environment for this kind of equation layout?
– Dr. Manuel Kuehner
Dec 29 '18 at 14:48
Thank you, this works. One more thing I need is: I want to define my own tags, saymyeq1" and
myeq2" to show up in place of (1) and (2). So far I could not figure out where to insert tag{myeq1} and tag{myeq2} without getting an error message from Latex.
– district9
Dec 29 '18 at 14:54
@district9, usingtag{...}
command is not possible here. you can insert in place of thetheequation
the content oftag
, however, tags is not possible to cite in text.
– Zarko
Dec 29 '18 at 15:07
@Zarko: Thank you. Well, in my paper the tag would be essential, and I would even want to use it with hypperref. (If I click on an equation number, then I should be taken to the equation).
– district9
Dec 29 '18 at 15:21
@district9, see edited answer.
– Zarko
Dec 29 '18 at 15:49
|
show 1 more comment
I'm not sure it is a good idea.
documentclass{article}
usepackage{amsmath}
usepackage{array}
usepackage{lipsum} % for context
newenvironment{doublynumberedequation}[2]
{%
unskip
refstepcounter{equation}label{#1}%
refstepcounter{equation}label{#2}%
defsecondlabel{#2}%
begin{equation*}
begin{tabular*}{displaywidth}{
@{extracolsep{stretch{1}}}
l
>{$displaystyle}c<{$}
@{extracolsep{stretch{2}}}
>{$displaystyle}c<{$}
@{extracolsep{stretch{1}}}
r
@{}
}
eqref{#1} &
}
{& eqref{secondlabel}end{tabular*}end{equation*}}
begin{document}
lipsum*[4]
begin{doublynumberedequation}{left}{right}% use two meaningful labels
begin{aligned}
a&=b \
c&=d \
e&=f
end{aligned}
&
begin{aligned}
x&=y \
y&=z \
u&=v
end{aligned}
end{doublynumberedequation}
lipsum[5]
end{document}
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%2f467784%2ftwo-equations-on-the-same-line%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
I propose this solution, with a code borrowed on this site from @DavidCarlisle:
documentclass{article}
usepackage[utf8]{inputenc}%
usepackage{tabularx}
usepackage{mathtools, nccmath}
makeatletter
newcommand{leqnomode}{tagsleft@trueletveqno@@leqno}%
newcommand{reqnomode}{tagsleft@falseletveqno@@eqno}%
newcommand*{compress}{@minipagetrue}
makeatother
begin{document}
Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.
{centeringcompress
begin{tabularx}{linewidth}{>{leqnomode}XX}
begin{equation}
begin{aligned}
a & =b \
c & =d \
e & =f
end{aligned}
end{equation}
&
begin{equation}
begin{aligned}
x & =y \
y & =z \
u & =v
end{aligned}
end{equation}
end{tabularx} vspace{-baselineskip}}
Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text.
end{document}
Thank you. Nice to have all these options.
– district9
Dec 29 '18 at 17:33
add a comment |
I propose this solution, with a code borrowed on this site from @DavidCarlisle:
documentclass{article}
usepackage[utf8]{inputenc}%
usepackage{tabularx}
usepackage{mathtools, nccmath}
makeatletter
newcommand{leqnomode}{tagsleft@trueletveqno@@leqno}%
newcommand{reqnomode}{tagsleft@falseletveqno@@eqno}%
newcommand*{compress}{@minipagetrue}
makeatother
begin{document}
Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.
{centeringcompress
begin{tabularx}{linewidth}{>{leqnomode}XX}
begin{equation}
begin{aligned}
a & =b \
c & =d \
e & =f
end{aligned}
end{equation}
&
begin{equation}
begin{aligned}
x & =y \
y & =z \
u & =v
end{aligned}
end{equation}
end{tabularx} vspace{-baselineskip}}
Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text.
end{document}
Thank you. Nice to have all these options.
– district9
Dec 29 '18 at 17:33
add a comment |
I propose this solution, with a code borrowed on this site from @DavidCarlisle:
documentclass{article}
usepackage[utf8]{inputenc}%
usepackage{tabularx}
usepackage{mathtools, nccmath}
makeatletter
newcommand{leqnomode}{tagsleft@trueletveqno@@leqno}%
newcommand{reqnomode}{tagsleft@falseletveqno@@eqno}%
newcommand*{compress}{@minipagetrue}
makeatother
begin{document}
Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.
{centeringcompress
begin{tabularx}{linewidth}{>{leqnomode}XX}
begin{equation}
begin{aligned}
a & =b \
c & =d \
e & =f
end{aligned}
end{equation}
&
begin{equation}
begin{aligned}
x & =y \
y & =z \
u & =v
end{aligned}
end{equation}
end{tabularx} vspace{-baselineskip}}
Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text.
end{document}
I propose this solution, with a code borrowed on this site from @DavidCarlisle:
documentclass{article}
usepackage[utf8]{inputenc}%
usepackage{tabularx}
usepackage{mathtools, nccmath}
makeatletter
newcommand{leqnomode}{tagsleft@trueletveqno@@leqno}%
newcommand{reqnomode}{tagsleft@falseletveqno@@eqno}%
newcommand*{compress}{@minipagetrue}
makeatother
begin{document}
Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.
{centeringcompress
begin{tabularx}{linewidth}{>{leqnomode}XX}
begin{equation}
begin{aligned}
a & =b \
c & =d \
e & =f
end{aligned}
end{equation}
&
begin{equation}
begin{aligned}
x & =y \
y & =z \
u & =v
end{aligned}
end{equation}
end{tabularx} vspace{-baselineskip}}
Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text.
end{document}
answered Dec 29 '18 at 15:26
BernardBernard
167k769194
167k769194
Thank you. Nice to have all these options.
– district9
Dec 29 '18 at 17:33
add a comment |
Thank you. Nice to have all these options.
– district9
Dec 29 '18 at 17:33
Thank you. Nice to have all these options.
– district9
Dec 29 '18 at 17:33
Thank you. Nice to have all these options.
– district9
Dec 29 '18 at 17:33
add a comment |
Like this:
documentclass{article}
usepackage{tabularx}
newcolumntype{C}{>{centeringarraybackslash}X}
usepackage{amsmath}
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
usepackage{lipsum}
begin{document}
lipsum*[66]
begin{center}
begin{tabularx}{linewidth}{@{} lCCr @{}}
refstepcounter{equation}
(theequation)label{eq:left}
& $begin{aligned}
a & = b \
c & = d
end{aligned}$
& $begin{aligned}
x & = y \
z & = w
end{aligned}$
& refstepcounter{equation}
(theequation)label{eq:right}
end{tabularx}
end{center}
dots, see eqref{eq:left} and eqref{eq:right} dots
lipsum*[66]
end{document}
Addendum: I figured out how to use my own tags for equations:
documentclass{article}
usepackage{amsmath}
makeatletter
newcommand{leqnomode}{tagsleft@true}
newcommand{reqnomode}{tagsleft@false}
makeatother
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
usepackage{lipsum}
begin{document}
lipsum*[66]
begin{center}
vspace{-baselineskip}
begin{minipage}{0.5linewidth}leqnomode
begin{equation}label{eq:left}
begin{split}
a & = b \
c & = d
end{split}tag{*}
end{equation}
end{minipage}begin{minipage}{0.5linewidth}
begin{equation}label{eq:right}
begin{split}
x & = y \
z & = uvw
end{split}tag{**}
end{equation}
end{minipage}
end{center}
dots, see eqref{eq:left} and eqref{eq:right} dots
lipsum*[66]
end{document}
+1: So there is no pre-defined environment for this kind of equation layout?
– Dr. Manuel Kuehner
Dec 29 '18 at 14:48
Thank you, this works. One more thing I need is: I want to define my own tags, saymyeq1" and
myeq2" to show up in place of (1) and (2). So far I could not figure out where to insert tag{myeq1} and tag{myeq2} without getting an error message from Latex.
– district9
Dec 29 '18 at 14:54
@district9, usingtag{...}
command is not possible here. you can insert in place of thetheequation
the content oftag
, however, tags is not possible to cite in text.
– Zarko
Dec 29 '18 at 15:07
@Zarko: Thank you. Well, in my paper the tag would be essential, and I would even want to use it with hypperref. (If I click on an equation number, then I should be taken to the equation).
– district9
Dec 29 '18 at 15:21
@district9, see edited answer.
– Zarko
Dec 29 '18 at 15:49
|
show 1 more comment
Like this:
documentclass{article}
usepackage{tabularx}
newcolumntype{C}{>{centeringarraybackslash}X}
usepackage{amsmath}
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
usepackage{lipsum}
begin{document}
lipsum*[66]
begin{center}
begin{tabularx}{linewidth}{@{} lCCr @{}}
refstepcounter{equation}
(theequation)label{eq:left}
& $begin{aligned}
a & = b \
c & = d
end{aligned}$
& $begin{aligned}
x & = y \
z & = w
end{aligned}$
& refstepcounter{equation}
(theequation)label{eq:right}
end{tabularx}
end{center}
dots, see eqref{eq:left} and eqref{eq:right} dots
lipsum*[66]
end{document}
Addendum: I figured out how to use my own tags for equations:
documentclass{article}
usepackage{amsmath}
makeatletter
newcommand{leqnomode}{tagsleft@true}
newcommand{reqnomode}{tagsleft@false}
makeatother
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
usepackage{lipsum}
begin{document}
lipsum*[66]
begin{center}
vspace{-baselineskip}
begin{minipage}{0.5linewidth}leqnomode
begin{equation}label{eq:left}
begin{split}
a & = b \
c & = d
end{split}tag{*}
end{equation}
end{minipage}begin{minipage}{0.5linewidth}
begin{equation}label{eq:right}
begin{split}
x & = y \
z & = uvw
end{split}tag{**}
end{equation}
end{minipage}
end{center}
dots, see eqref{eq:left} and eqref{eq:right} dots
lipsum*[66]
end{document}
+1: So there is no pre-defined environment for this kind of equation layout?
– Dr. Manuel Kuehner
Dec 29 '18 at 14:48
Thank you, this works. One more thing I need is: I want to define my own tags, saymyeq1" and
myeq2" to show up in place of (1) and (2). So far I could not figure out where to insert tag{myeq1} and tag{myeq2} without getting an error message from Latex.
– district9
Dec 29 '18 at 14:54
@district9, usingtag{...}
command is not possible here. you can insert in place of thetheequation
the content oftag
, however, tags is not possible to cite in text.
– Zarko
Dec 29 '18 at 15:07
@Zarko: Thank you. Well, in my paper the tag would be essential, and I would even want to use it with hypperref. (If I click on an equation number, then I should be taken to the equation).
– district9
Dec 29 '18 at 15:21
@district9, see edited answer.
– Zarko
Dec 29 '18 at 15:49
|
show 1 more comment
Like this:
documentclass{article}
usepackage{tabularx}
newcolumntype{C}{>{centeringarraybackslash}X}
usepackage{amsmath}
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
usepackage{lipsum}
begin{document}
lipsum*[66]
begin{center}
begin{tabularx}{linewidth}{@{} lCCr @{}}
refstepcounter{equation}
(theequation)label{eq:left}
& $begin{aligned}
a & = b \
c & = d
end{aligned}$
& $begin{aligned}
x & = y \
z & = w
end{aligned}$
& refstepcounter{equation}
(theequation)label{eq:right}
end{tabularx}
end{center}
dots, see eqref{eq:left} and eqref{eq:right} dots
lipsum*[66]
end{document}
Addendum: I figured out how to use my own tags for equations:
documentclass{article}
usepackage{amsmath}
makeatletter
newcommand{leqnomode}{tagsleft@true}
newcommand{reqnomode}{tagsleft@false}
makeatother
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
usepackage{lipsum}
begin{document}
lipsum*[66]
begin{center}
vspace{-baselineskip}
begin{minipage}{0.5linewidth}leqnomode
begin{equation}label{eq:left}
begin{split}
a & = b \
c & = d
end{split}tag{*}
end{equation}
end{minipage}begin{minipage}{0.5linewidth}
begin{equation}label{eq:right}
begin{split}
x & = y \
z & = uvw
end{split}tag{**}
end{equation}
end{minipage}
end{center}
dots, see eqref{eq:left} and eqref{eq:right} dots
lipsum*[66]
end{document}
Like this:
documentclass{article}
usepackage{tabularx}
newcolumntype{C}{>{centeringarraybackslash}X}
usepackage{amsmath}
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
usepackage{lipsum}
begin{document}
lipsum*[66]
begin{center}
begin{tabularx}{linewidth}{@{} lCCr @{}}
refstepcounter{equation}
(theequation)label{eq:left}
& $begin{aligned}
a & = b \
c & = d
end{aligned}$
& $begin{aligned}
x & = y \
z & = w
end{aligned}$
& refstepcounter{equation}
(theequation)label{eq:right}
end{tabularx}
end{center}
dots, see eqref{eq:left} and eqref{eq:right} dots
lipsum*[66]
end{document}
Addendum: I figured out how to use my own tags for equations:
documentclass{article}
usepackage{amsmath}
makeatletter
newcommand{leqnomode}{tagsleft@true}
newcommand{reqnomode}{tagsleft@false}
makeatother
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
usepackage{lipsum}
begin{document}
lipsum*[66]
begin{center}
vspace{-baselineskip}
begin{minipage}{0.5linewidth}leqnomode
begin{equation}label{eq:left}
begin{split}
a & = b \
c & = d
end{split}tag{*}
end{equation}
end{minipage}begin{minipage}{0.5linewidth}
begin{equation}label{eq:right}
begin{split}
x & = y \
z & = uvw
end{split}tag{**}
end{equation}
end{minipage}
end{center}
dots, see eqref{eq:left} and eqref{eq:right} dots
lipsum*[66]
end{document}
edited Dec 30 '18 at 0:03
Peter Mortensen
54536
54536
answered Dec 29 '18 at 14:39
ZarkoZarko
122k865158
122k865158
+1: So there is no pre-defined environment for this kind of equation layout?
– Dr. Manuel Kuehner
Dec 29 '18 at 14:48
Thank you, this works. One more thing I need is: I want to define my own tags, saymyeq1" and
myeq2" to show up in place of (1) and (2). So far I could not figure out where to insert tag{myeq1} and tag{myeq2} without getting an error message from Latex.
– district9
Dec 29 '18 at 14:54
@district9, usingtag{...}
command is not possible here. you can insert in place of thetheequation
the content oftag
, however, tags is not possible to cite in text.
– Zarko
Dec 29 '18 at 15:07
@Zarko: Thank you. Well, in my paper the tag would be essential, and I would even want to use it with hypperref. (If I click on an equation number, then I should be taken to the equation).
– district9
Dec 29 '18 at 15:21
@district9, see edited answer.
– Zarko
Dec 29 '18 at 15:49
|
show 1 more comment
+1: So there is no pre-defined environment for this kind of equation layout?
– Dr. Manuel Kuehner
Dec 29 '18 at 14:48
Thank you, this works. One more thing I need is: I want to define my own tags, saymyeq1" and
myeq2" to show up in place of (1) and (2). So far I could not figure out where to insert tag{myeq1} and tag{myeq2} without getting an error message from Latex.
– district9
Dec 29 '18 at 14:54
@district9, usingtag{...}
command is not possible here. you can insert in place of thetheequation
the content oftag
, however, tags is not possible to cite in text.
– Zarko
Dec 29 '18 at 15:07
@Zarko: Thank you. Well, in my paper the tag would be essential, and I would even want to use it with hypperref. (If I click on an equation number, then I should be taken to the equation).
– district9
Dec 29 '18 at 15:21
@district9, see edited answer.
– Zarko
Dec 29 '18 at 15:49
+1: So there is no pre-defined environment for this kind of equation layout?
– Dr. Manuel Kuehner
Dec 29 '18 at 14:48
+1: So there is no pre-defined environment for this kind of equation layout?
– Dr. Manuel Kuehner
Dec 29 '18 at 14:48
Thank you, this works. One more thing I need is: I want to define my own tags, say
myeq1" and
myeq2" to show up in place of (1) and (2). So far I could not figure out where to insert tag{myeq1} and tag{myeq2} without getting an error message from Latex.– district9
Dec 29 '18 at 14:54
Thank you, this works. One more thing I need is: I want to define my own tags, say
myeq1" and
myeq2" to show up in place of (1) and (2). So far I could not figure out where to insert tag{myeq1} and tag{myeq2} without getting an error message from Latex.– district9
Dec 29 '18 at 14:54
@district9, using
tag{...}
command is not possible here. you can insert in place of the theequation
the content of tag
, however, tags is not possible to cite in text.– Zarko
Dec 29 '18 at 15:07
@district9, using
tag{...}
command is not possible here. you can insert in place of the theequation
the content of tag
, however, tags is not possible to cite in text.– Zarko
Dec 29 '18 at 15:07
@Zarko: Thank you. Well, in my paper the tag would be essential, and I would even want to use it with hypperref. (If I click on an equation number, then I should be taken to the equation).
– district9
Dec 29 '18 at 15:21
@Zarko: Thank you. Well, in my paper the tag would be essential, and I would even want to use it with hypperref. (If I click on an equation number, then I should be taken to the equation).
– district9
Dec 29 '18 at 15:21
@district9, see edited answer.
– Zarko
Dec 29 '18 at 15:49
@district9, see edited answer.
– Zarko
Dec 29 '18 at 15:49
|
show 1 more comment
I'm not sure it is a good idea.
documentclass{article}
usepackage{amsmath}
usepackage{array}
usepackage{lipsum} % for context
newenvironment{doublynumberedequation}[2]
{%
unskip
refstepcounter{equation}label{#1}%
refstepcounter{equation}label{#2}%
defsecondlabel{#2}%
begin{equation*}
begin{tabular*}{displaywidth}{
@{extracolsep{stretch{1}}}
l
>{$displaystyle}c<{$}
@{extracolsep{stretch{2}}}
>{$displaystyle}c<{$}
@{extracolsep{stretch{1}}}
r
@{}
}
eqref{#1} &
}
{& eqref{secondlabel}end{tabular*}end{equation*}}
begin{document}
lipsum*[4]
begin{doublynumberedequation}{left}{right}% use two meaningful labels
begin{aligned}
a&=b \
c&=d \
e&=f
end{aligned}
&
begin{aligned}
x&=y \
y&=z \
u&=v
end{aligned}
end{doublynumberedequation}
lipsum[5]
end{document}
add a comment |
I'm not sure it is a good idea.
documentclass{article}
usepackage{amsmath}
usepackage{array}
usepackage{lipsum} % for context
newenvironment{doublynumberedequation}[2]
{%
unskip
refstepcounter{equation}label{#1}%
refstepcounter{equation}label{#2}%
defsecondlabel{#2}%
begin{equation*}
begin{tabular*}{displaywidth}{
@{extracolsep{stretch{1}}}
l
>{$displaystyle}c<{$}
@{extracolsep{stretch{2}}}
>{$displaystyle}c<{$}
@{extracolsep{stretch{1}}}
r
@{}
}
eqref{#1} &
}
{& eqref{secondlabel}end{tabular*}end{equation*}}
begin{document}
lipsum*[4]
begin{doublynumberedequation}{left}{right}% use two meaningful labels
begin{aligned}
a&=b \
c&=d \
e&=f
end{aligned}
&
begin{aligned}
x&=y \
y&=z \
u&=v
end{aligned}
end{doublynumberedequation}
lipsum[5]
end{document}
add a comment |
I'm not sure it is a good idea.
documentclass{article}
usepackage{amsmath}
usepackage{array}
usepackage{lipsum} % for context
newenvironment{doublynumberedequation}[2]
{%
unskip
refstepcounter{equation}label{#1}%
refstepcounter{equation}label{#2}%
defsecondlabel{#2}%
begin{equation*}
begin{tabular*}{displaywidth}{
@{extracolsep{stretch{1}}}
l
>{$displaystyle}c<{$}
@{extracolsep{stretch{2}}}
>{$displaystyle}c<{$}
@{extracolsep{stretch{1}}}
r
@{}
}
eqref{#1} &
}
{& eqref{secondlabel}end{tabular*}end{equation*}}
begin{document}
lipsum*[4]
begin{doublynumberedequation}{left}{right}% use two meaningful labels
begin{aligned}
a&=b \
c&=d \
e&=f
end{aligned}
&
begin{aligned}
x&=y \
y&=z \
u&=v
end{aligned}
end{doublynumberedequation}
lipsum[5]
end{document}
I'm not sure it is a good idea.
documentclass{article}
usepackage{amsmath}
usepackage{array}
usepackage{lipsum} % for context
newenvironment{doublynumberedequation}[2]
{%
unskip
refstepcounter{equation}label{#1}%
refstepcounter{equation}label{#2}%
defsecondlabel{#2}%
begin{equation*}
begin{tabular*}{displaywidth}{
@{extracolsep{stretch{1}}}
l
>{$displaystyle}c<{$}
@{extracolsep{stretch{2}}}
>{$displaystyle}c<{$}
@{extracolsep{stretch{1}}}
r
@{}
}
eqref{#1} &
}
{& eqref{secondlabel}end{tabular*}end{equation*}}
begin{document}
lipsum*[4]
begin{doublynumberedequation}{left}{right}% use two meaningful labels
begin{aligned}
a&=b \
c&=d \
e&=f
end{aligned}
&
begin{aligned}
x&=y \
y&=z \
u&=v
end{aligned}
end{doublynumberedequation}
lipsum[5]
end{document}
answered Dec 29 '18 at 16:08
egregegreg
712k8618913174
712k8618913174
add a comment |
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%2f467784%2ftwo-equations-on-the-same-line%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
1) Welcome. 2) Please provide a so-called MWE: tex.meta.stackexchange.com/questions/228. 3) Maybe you can provide a link to the close posts that you are referring to. 4) At least I have trouble understanding exactly what you want to achieve. Maybe you can draw an example/illustration by hand and provide the picture. 5) I also enjoyed the movie
District 9
(assuming you are referring to it with your name) :).– Dr. Manuel Kuehner
Dec 29 '18 at 14:00