Labelling equations with eqnarrayPlace numbering in systeme package to the leftaligning a multiline formula...
Procedurally generate regions on island
Graph problems as integer programs
I hit a pipe with a mower and now it won't turn
How can I write a panicked scene without it feeling like it was written in haste?
Symbol for "not absolutely continuous" in Latex
Ordered list of OR journals
Why do I need two parameters in an HTTP parameter pollution attack?
What is the purpose of putting a capacitor on the primary side of a step-down transformer?
How did researchers find articles before the Internet and the computer era?
Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?
Security Patch SUPEE-11155 - Possible issues?
I'm reinstalling my Linux desktop, how do I keep SSH logins working?
Should I share with a new service provider a bill from its competitor?
Buliding a larger matrix from a smaller one
How to securely dispose of a smartphone?
What does the phrase "building hopping chop" mean here?
How exactly is a normal force exerted, at the molecular level?
How is this practical and very old scene shot?
Is the location of an aircraft spoiler really that vital?
Should I report a leak of confidential HR information?
Can a function nowhere continuous have a connected graph?
Most elegant way to write a one shot IF
Can an editor review manuscript without sending to reviewers?
Is it okay to fade a human face just to create some space to place important content over it?
Labelling equations with eqnarray
Place numbering in systeme package to the leftaligning a multiline formula with the bullet of itemizeHow can I number a few equations togetherAligning several '=' symbols across two linesAlign multiple equations with parts inside rootRight align a line in align-environmentHow can I align equations to the left and to the right?Align different equations on different equal signshorizontally align two minipages with matrizesVertical alignment of different systems of equationsAlign doesn´t align equations at equal sign
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I would like to produce the following output:
To be precise, I would like the two equations to be aligned as produced by eqnarray*
, and the two labels L_1
and L_2
to also be aligned. I could use begin{array}{crcl} L_1& left side & = & right side end{array}
, but then there is too much space before and after the =
sign. I think I could adjust that space with some parameters, but I would like this to work also on a web page with MathJax, and in any case I feel there should be a better way to do it. The way I produced that output works but I don't feel is the right way to do it, here is what I did:
begin{eqnarray*}
L_1: hspace{3.1ex} x+y&=&1\
L_2: hspace{1ex} 2x+2y&=&2
end{eqnarray*}
vertical-alignment align eqnarray
add a comment |
I would like to produce the following output:
To be precise, I would like the two equations to be aligned as produced by eqnarray*
, and the two labels L_1
and L_2
to also be aligned. I could use begin{array}{crcl} L_1& left side & = & right side end{array}
, but then there is too much space before and after the =
sign. I think I could adjust that space with some parameters, but I would like this to work also on a web page with MathJax, and in any case I feel there should be a better way to do it. The way I produced that output works but I don't feel is the right way to do it, here is what I did:
begin{eqnarray*}
L_1: hspace{3.1ex} x+y&=&1\
L_2: hspace{1ex} 2x+2y&=&2
end{eqnarray*}
vertical-alignment align eqnarray
You shouldn't useeqnarray
– the spacing around the=
signs is not good.
– Bernard
9 hours ago
add a comment |
I would like to produce the following output:
To be precise, I would like the two equations to be aligned as produced by eqnarray*
, and the two labels L_1
and L_2
to also be aligned. I could use begin{array}{crcl} L_1& left side & = & right side end{array}
, but then there is too much space before and after the =
sign. I think I could adjust that space with some parameters, but I would like this to work also on a web page with MathJax, and in any case I feel there should be a better way to do it. The way I produced that output works but I don't feel is the right way to do it, here is what I did:
begin{eqnarray*}
L_1: hspace{3.1ex} x+y&=&1\
L_2: hspace{1ex} 2x+2y&=&2
end{eqnarray*}
vertical-alignment align eqnarray
I would like to produce the following output:
To be precise, I would like the two equations to be aligned as produced by eqnarray*
, and the two labels L_1
and L_2
to also be aligned. I could use begin{array}{crcl} L_1& left side & = & right side end{array}
, but then there is too much space before and after the =
sign. I think I could adjust that space with some parameters, but I would like this to work also on a web page with MathJax, and in any case I feel there should be a better way to do it. The way I produced that output works but I don't feel is the right way to do it, here is what I did:
begin{eqnarray*}
L_1: hspace{3.1ex} x+y&=&1\
L_2: hspace{1ex} 2x+2y&=&2
end{eqnarray*}
vertical-alignment align eqnarray
vertical-alignment align eqnarray
edited 6 hours ago
Zarko
138k8 gold badges75 silver badges184 bronze badges
138k8 gold badges75 silver badges184 bronze badges
asked 9 hours ago
Valerio De AngelisValerio De Angelis
334 bronze badges
334 bronze badges
You shouldn't useeqnarray
– the spacing around the=
signs is not good.
– Bernard
9 hours ago
add a comment |
You shouldn't useeqnarray
– the spacing around the=
signs is not good.
– Bernard
9 hours ago
You shouldn't use
eqnarray
– the spacing around the =
signs is not good.– Bernard
9 hours ago
You shouldn't use
eqnarray
– the spacing around the =
signs is not good.– Bernard
9 hours ago
add a comment |
2 Answers
2
active
oldest
votes
The alignat
environment from amsmath
gives you full control on the spacing between columns of equations:
documentclass{article}
usepackage{amsmath}
begin{document}
begin{alignat*}{2}
& L_1: & x+y &=1 \
& L_2: & enspace 2x+2y&=2
end{alignat*}
end{document}
This is just what I was looking for - and it works with MathJax too.
– Valerio De Angelis
3 hours ago
add a comment |
Adapting the @Salim Bou's macro Place numbering in systeme package to the left, using systeme
package, you can obtain, this little MWE with another similar result:
documentclass[a4paper,12pt]{article}
usepackage{systeme,mathtools}
newcommand{rightnum}[1]{syscodeextracol{kern-#1hfill$}{$kern#1}}
newcommand{leftnum}{syscodeextracol{kern1.5em$}{$}}% return to default
begin{document}
sysdelim..
rightnum{7.5em}
[systeme{x+y=1 @{L_1:}, 2x+2y=2 @{L_2:}}]
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%2f497382%2flabelling-equations-with-eqnarray%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
The alignat
environment from amsmath
gives you full control on the spacing between columns of equations:
documentclass{article}
usepackage{amsmath}
begin{document}
begin{alignat*}{2}
& L_1: & x+y &=1 \
& L_2: & enspace 2x+2y&=2
end{alignat*}
end{document}
This is just what I was looking for - and it works with MathJax too.
– Valerio De Angelis
3 hours ago
add a comment |
The alignat
environment from amsmath
gives you full control on the spacing between columns of equations:
documentclass{article}
usepackage{amsmath}
begin{document}
begin{alignat*}{2}
& L_1: & x+y &=1 \
& L_2: & enspace 2x+2y&=2
end{alignat*}
end{document}
This is just what I was looking for - and it works with MathJax too.
– Valerio De Angelis
3 hours ago
add a comment |
The alignat
environment from amsmath
gives you full control on the spacing between columns of equations:
documentclass{article}
usepackage{amsmath}
begin{document}
begin{alignat*}{2}
& L_1: & x+y &=1 \
& L_2: & enspace 2x+2y&=2
end{alignat*}
end{document}
The alignat
environment from amsmath
gives you full control on the spacing between columns of equations:
documentclass{article}
usepackage{amsmath}
begin{document}
begin{alignat*}{2}
& L_1: & x+y &=1 \
& L_2: & enspace 2x+2y&=2
end{alignat*}
end{document}
edited 8 hours ago
answered 9 hours ago
BernardBernard
182k7 gold badges83 silver badges216 bronze badges
182k7 gold badges83 silver badges216 bronze badges
This is just what I was looking for - and it works with MathJax too.
– Valerio De Angelis
3 hours ago
add a comment |
This is just what I was looking for - and it works with MathJax too.
– Valerio De Angelis
3 hours ago
This is just what I was looking for - and it works with MathJax too.
– Valerio De Angelis
3 hours ago
This is just what I was looking for - and it works with MathJax too.
– Valerio De Angelis
3 hours ago
add a comment |
Adapting the @Salim Bou's macro Place numbering in systeme package to the left, using systeme
package, you can obtain, this little MWE with another similar result:
documentclass[a4paper,12pt]{article}
usepackage{systeme,mathtools}
newcommand{rightnum}[1]{syscodeextracol{kern-#1hfill$}{$kern#1}}
newcommand{leftnum}{syscodeextracol{kern1.5em$}{$}}% return to default
begin{document}
sysdelim..
rightnum{7.5em}
[systeme{x+y=1 @{L_1:}, 2x+2y=2 @{L_2:}}]
end{document}
add a comment |
Adapting the @Salim Bou's macro Place numbering in systeme package to the left, using systeme
package, you can obtain, this little MWE with another similar result:
documentclass[a4paper,12pt]{article}
usepackage{systeme,mathtools}
newcommand{rightnum}[1]{syscodeextracol{kern-#1hfill$}{$kern#1}}
newcommand{leftnum}{syscodeextracol{kern1.5em$}{$}}% return to default
begin{document}
sysdelim..
rightnum{7.5em}
[systeme{x+y=1 @{L_1:}, 2x+2y=2 @{L_2:}}]
end{document}
add a comment |
Adapting the @Salim Bou's macro Place numbering in systeme package to the left, using systeme
package, you can obtain, this little MWE with another similar result:
documentclass[a4paper,12pt]{article}
usepackage{systeme,mathtools}
newcommand{rightnum}[1]{syscodeextracol{kern-#1hfill$}{$kern#1}}
newcommand{leftnum}{syscodeextracol{kern1.5em$}{$}}% return to default
begin{document}
sysdelim..
rightnum{7.5em}
[systeme{x+y=1 @{L_1:}, 2x+2y=2 @{L_2:}}]
end{document}
Adapting the @Salim Bou's macro Place numbering in systeme package to the left, using systeme
package, you can obtain, this little MWE with another similar result:
documentclass[a4paper,12pt]{article}
usepackage{systeme,mathtools}
newcommand{rightnum}[1]{syscodeextracol{kern-#1hfill$}{$kern#1}}
newcommand{leftnum}{syscodeextracol{kern1.5em$}{$}}% return to default
begin{document}
sysdelim..
rightnum{7.5em}
[systeme{x+y=1 @{L_1:}, 2x+2y=2 @{L_2:}}]
end{document}
edited 6 hours ago
answered 6 hours ago
SebastianoSebastiano
13.2k5 gold badges25 silver badges71 bronze badges
13.2k5 gold badges25 silver badges71 bronze badges
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%2f497382%2flabelling-equations-with-eqnarray%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
You shouldn't use
eqnarray
– the spacing around the=
signs is not good.– Bernard
9 hours ago