Is it possible to flushright the right-hand side with systeme without hphantom?
up vote
3
down vote
favorite
I typeset some systems of equations, and I really like the format of input (as well as the output) the systeme package provides.
Now, I wonder if there is a way to flushright also the right-hand side of the equation, without using hphantom? In the example below, I get the result as I want in the second system, but not the first. But I do it with a hphantom.
documentclass{minimal}
usepackage{systeme}
begin{document}
[
systeme{x+y=2,x-y=-2}
]
[
systeme{x+y=hphantom{-}2,x-y=-2}
]
end{document}
giving

Update
Just in case someone wonders why on earth one would like to have the right-hand side flushright, here is an image that might explain it better. Without the right-hand side being flushright, the arrows look bad not ending at the same horizontal location.

Also, I can mention that I have read the documentation of the systeme package, and I did not find anything like this (but my french is rusty). I also browsed the source of the package, but that was too complicated for me...
horizontal-alignment systeme
add a comment |
up vote
3
down vote
favorite
I typeset some systems of equations, and I really like the format of input (as well as the output) the systeme package provides.
Now, I wonder if there is a way to flushright also the right-hand side of the equation, without using hphantom? In the example below, I get the result as I want in the second system, but not the first. But I do it with a hphantom.
documentclass{minimal}
usepackage{systeme}
begin{document}
[
systeme{x+y=2,x-y=-2}
]
[
systeme{x+y=hphantom{-}2,x-y=-2}
]
end{document}
giving

Update
Just in case someone wonders why on earth one would like to have the right-hand side flushright, here is an image that might explain it better. Without the right-hand side being flushright, the arrows look bad not ending at the same horizontal location.

Also, I can mention that I have read the documentation of the systeme package, and I did not find anything like this (but my french is rusty). I also browsed the source of the package, but that was too complicated for me...
horizontal-alignment systeme
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I typeset some systems of equations, and I really like the format of input (as well as the output) the systeme package provides.
Now, I wonder if there is a way to flushright also the right-hand side of the equation, without using hphantom? In the example below, I get the result as I want in the second system, but not the first. But I do it with a hphantom.
documentclass{minimal}
usepackage{systeme}
begin{document}
[
systeme{x+y=2,x-y=-2}
]
[
systeme{x+y=hphantom{-}2,x-y=-2}
]
end{document}
giving

Update
Just in case someone wonders why on earth one would like to have the right-hand side flushright, here is an image that might explain it better. Without the right-hand side being flushright, the arrows look bad not ending at the same horizontal location.

Also, I can mention that I have read the documentation of the systeme package, and I did not find anything like this (but my french is rusty). I also browsed the source of the package, but that was too complicated for me...
horizontal-alignment systeme
I typeset some systems of equations, and I really like the format of input (as well as the output) the systeme package provides.
Now, I wonder if there is a way to flushright also the right-hand side of the equation, without using hphantom? In the example below, I get the result as I want in the second system, but not the first. But I do it with a hphantom.
documentclass{minimal}
usepackage{systeme}
begin{document}
[
systeme{x+y=2,x-y=-2}
]
[
systeme{x+y=hphantom{-}2,x-y=-2}
]
end{document}
giving

Update
Just in case someone wonders why on earth one would like to have the right-hand side flushright, here is an image that might explain it better. Without the right-hand side being flushright, the arrows look bad not ending at the same horizontal location.

Also, I can mention that I have read the documentation of the systeme package, and I did not find anything like this (but my french is rusty). I also browsed the source of the package, but that was too complicated for me...
horizontal-alignment systeme
horizontal-alignment systeme
edited May 26 '15 at 19:27
asked May 26 '15 at 19:01
mickep
1,138815
1,138815
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
4
down vote
accepted
It's a choice of the package to have the last column aligned left and, as far as I can see, there's no provision for changing it by setting an option.
You can change it by redefining the command SYS@makesyspreamble@i that's responsible for setting the alignment in columns; the simplest way is to use regexpatch:
documentclass{article}
usepackage{systeme}
usepackage{regexpatch}
makeatletter
xpatchcmd{SYS@makesyspreamble@i}
{$##$hfilnull}% left alignment
{hfil$##$null}% right alignment
{}{}
makeatother
begin{document}
[
systeme{x+y=2,x-y=-2}
]
end{document}

Should you need to switch between left and right alignment, here's how to do it.
documentclass{article}
usepackage{systeme}
usepackage{regexpatch}
makeatletter
xpatchcmd{SYS@makesyspreamble@i}
{$##$hfilnull}
{spanSYSX@afterequalalignmentnull}
{}{}
newcommand{SYSX@afterequalalignmentleft}{$##$hfil}% default
newcommand{SYSX@afterequalalignmentright}{hfil$##$}% default
newcommand{rightalignafterequal}{%
letSYSX@afterequalalignmentSYSX@afterequalalignmentright
}
newcommand{leftalignafterequal}{%
letSYSX@afterequalalignmentSYSX@afterequalalignmentleft
}
leftalignafterequal % default
makeatother
begin{document}
[
systeme{x+y=2,x-y=-2}
]
[
rightalignafterequal
systeme{x+y=2,x-y=-2}
]
end{document}
The rightalignafterequal declaration obeys the usual scoping rules, so you can issue it in the preamble if you want all systems to have right alignment.

Wonderful! This does exactly what I want (I will wait a while before accepting the answer, since I've been told to do so).
– mickep
May 26 '15 at 20:20
Thanks for that update as well! I don't think I will need it, but maybe someone else who stumbles upon this question will. I will mark your answer as accepted, since it really solved my problem. Thanks again!
– mickep
May 27 '15 at 7:18
add a comment |
up vote
0
down vote
How to make these arrows in the systeme?
New contributor
Eitor Bernardes de Paiva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
this is not an answer. if you have new question, ask it as question, not as answer. for arrows see, iftikzmarkcan help you.
– Zarko
7 mins ago
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
It's a choice of the package to have the last column aligned left and, as far as I can see, there's no provision for changing it by setting an option.
You can change it by redefining the command SYS@makesyspreamble@i that's responsible for setting the alignment in columns; the simplest way is to use regexpatch:
documentclass{article}
usepackage{systeme}
usepackage{regexpatch}
makeatletter
xpatchcmd{SYS@makesyspreamble@i}
{$##$hfilnull}% left alignment
{hfil$##$null}% right alignment
{}{}
makeatother
begin{document}
[
systeme{x+y=2,x-y=-2}
]
end{document}

Should you need to switch between left and right alignment, here's how to do it.
documentclass{article}
usepackage{systeme}
usepackage{regexpatch}
makeatletter
xpatchcmd{SYS@makesyspreamble@i}
{$##$hfilnull}
{spanSYSX@afterequalalignmentnull}
{}{}
newcommand{SYSX@afterequalalignmentleft}{$##$hfil}% default
newcommand{SYSX@afterequalalignmentright}{hfil$##$}% default
newcommand{rightalignafterequal}{%
letSYSX@afterequalalignmentSYSX@afterequalalignmentright
}
newcommand{leftalignafterequal}{%
letSYSX@afterequalalignmentSYSX@afterequalalignmentleft
}
leftalignafterequal % default
makeatother
begin{document}
[
systeme{x+y=2,x-y=-2}
]
[
rightalignafterequal
systeme{x+y=2,x-y=-2}
]
end{document}
The rightalignafterequal declaration obeys the usual scoping rules, so you can issue it in the preamble if you want all systems to have right alignment.

Wonderful! This does exactly what I want (I will wait a while before accepting the answer, since I've been told to do so).
– mickep
May 26 '15 at 20:20
Thanks for that update as well! I don't think I will need it, but maybe someone else who stumbles upon this question will. I will mark your answer as accepted, since it really solved my problem. Thanks again!
– mickep
May 27 '15 at 7:18
add a comment |
up vote
4
down vote
accepted
It's a choice of the package to have the last column aligned left and, as far as I can see, there's no provision for changing it by setting an option.
You can change it by redefining the command SYS@makesyspreamble@i that's responsible for setting the alignment in columns; the simplest way is to use regexpatch:
documentclass{article}
usepackage{systeme}
usepackage{regexpatch}
makeatletter
xpatchcmd{SYS@makesyspreamble@i}
{$##$hfilnull}% left alignment
{hfil$##$null}% right alignment
{}{}
makeatother
begin{document}
[
systeme{x+y=2,x-y=-2}
]
end{document}

Should you need to switch between left and right alignment, here's how to do it.
documentclass{article}
usepackage{systeme}
usepackage{regexpatch}
makeatletter
xpatchcmd{SYS@makesyspreamble@i}
{$##$hfilnull}
{spanSYSX@afterequalalignmentnull}
{}{}
newcommand{SYSX@afterequalalignmentleft}{$##$hfil}% default
newcommand{SYSX@afterequalalignmentright}{hfil$##$}% default
newcommand{rightalignafterequal}{%
letSYSX@afterequalalignmentSYSX@afterequalalignmentright
}
newcommand{leftalignafterequal}{%
letSYSX@afterequalalignmentSYSX@afterequalalignmentleft
}
leftalignafterequal % default
makeatother
begin{document}
[
systeme{x+y=2,x-y=-2}
]
[
rightalignafterequal
systeme{x+y=2,x-y=-2}
]
end{document}
The rightalignafterequal declaration obeys the usual scoping rules, so you can issue it in the preamble if you want all systems to have right alignment.

Wonderful! This does exactly what I want (I will wait a while before accepting the answer, since I've been told to do so).
– mickep
May 26 '15 at 20:20
Thanks for that update as well! I don't think I will need it, but maybe someone else who stumbles upon this question will. I will mark your answer as accepted, since it really solved my problem. Thanks again!
– mickep
May 27 '15 at 7:18
add a comment |
up vote
4
down vote
accepted
up vote
4
down vote
accepted
It's a choice of the package to have the last column aligned left and, as far as I can see, there's no provision for changing it by setting an option.
You can change it by redefining the command SYS@makesyspreamble@i that's responsible for setting the alignment in columns; the simplest way is to use regexpatch:
documentclass{article}
usepackage{systeme}
usepackage{regexpatch}
makeatletter
xpatchcmd{SYS@makesyspreamble@i}
{$##$hfilnull}% left alignment
{hfil$##$null}% right alignment
{}{}
makeatother
begin{document}
[
systeme{x+y=2,x-y=-2}
]
end{document}

Should you need to switch between left and right alignment, here's how to do it.
documentclass{article}
usepackage{systeme}
usepackage{regexpatch}
makeatletter
xpatchcmd{SYS@makesyspreamble@i}
{$##$hfilnull}
{spanSYSX@afterequalalignmentnull}
{}{}
newcommand{SYSX@afterequalalignmentleft}{$##$hfil}% default
newcommand{SYSX@afterequalalignmentright}{hfil$##$}% default
newcommand{rightalignafterequal}{%
letSYSX@afterequalalignmentSYSX@afterequalalignmentright
}
newcommand{leftalignafterequal}{%
letSYSX@afterequalalignmentSYSX@afterequalalignmentleft
}
leftalignafterequal % default
makeatother
begin{document}
[
systeme{x+y=2,x-y=-2}
]
[
rightalignafterequal
systeme{x+y=2,x-y=-2}
]
end{document}
The rightalignafterequal declaration obeys the usual scoping rules, so you can issue it in the preamble if you want all systems to have right alignment.

It's a choice of the package to have the last column aligned left and, as far as I can see, there's no provision for changing it by setting an option.
You can change it by redefining the command SYS@makesyspreamble@i that's responsible for setting the alignment in columns; the simplest way is to use regexpatch:
documentclass{article}
usepackage{systeme}
usepackage{regexpatch}
makeatletter
xpatchcmd{SYS@makesyspreamble@i}
{$##$hfilnull}% left alignment
{hfil$##$null}% right alignment
{}{}
makeatother
begin{document}
[
systeme{x+y=2,x-y=-2}
]
end{document}

Should you need to switch between left and right alignment, here's how to do it.
documentclass{article}
usepackage{systeme}
usepackage{regexpatch}
makeatletter
xpatchcmd{SYS@makesyspreamble@i}
{$##$hfilnull}
{spanSYSX@afterequalalignmentnull}
{}{}
newcommand{SYSX@afterequalalignmentleft}{$##$hfil}% default
newcommand{SYSX@afterequalalignmentright}{hfil$##$}% default
newcommand{rightalignafterequal}{%
letSYSX@afterequalalignmentSYSX@afterequalalignmentright
}
newcommand{leftalignafterequal}{%
letSYSX@afterequalalignmentSYSX@afterequalalignmentleft
}
leftalignafterequal % default
makeatother
begin{document}
[
systeme{x+y=2,x-y=-2}
]
[
rightalignafterequal
systeme{x+y=2,x-y=-2}
]
end{document}
The rightalignafterequal declaration obeys the usual scoping rules, so you can issue it in the preamble if you want all systems to have right alignment.

edited May 26 '15 at 20:22
answered May 26 '15 at 20:12
egreg
703k8618733148
703k8618733148
Wonderful! This does exactly what I want (I will wait a while before accepting the answer, since I've been told to do so).
– mickep
May 26 '15 at 20:20
Thanks for that update as well! I don't think I will need it, but maybe someone else who stumbles upon this question will. I will mark your answer as accepted, since it really solved my problem. Thanks again!
– mickep
May 27 '15 at 7:18
add a comment |
Wonderful! This does exactly what I want (I will wait a while before accepting the answer, since I've been told to do so).
– mickep
May 26 '15 at 20:20
Thanks for that update as well! I don't think I will need it, but maybe someone else who stumbles upon this question will. I will mark your answer as accepted, since it really solved my problem. Thanks again!
– mickep
May 27 '15 at 7:18
Wonderful! This does exactly what I want (I will wait a while before accepting the answer, since I've been told to do so).
– mickep
May 26 '15 at 20:20
Wonderful! This does exactly what I want (I will wait a while before accepting the answer, since I've been told to do so).
– mickep
May 26 '15 at 20:20
Thanks for that update as well! I don't think I will need it, but maybe someone else who stumbles upon this question will. I will mark your answer as accepted, since it really solved my problem. Thanks again!
– mickep
May 27 '15 at 7:18
Thanks for that update as well! I don't think I will need it, but maybe someone else who stumbles upon this question will. I will mark your answer as accepted, since it really solved my problem. Thanks again!
– mickep
May 27 '15 at 7:18
add a comment |
up vote
0
down vote
How to make these arrows in the systeme?
New contributor
Eitor Bernardes de Paiva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
this is not an answer. if you have new question, ask it as question, not as answer. for arrows see, iftikzmarkcan help you.
– Zarko
7 mins ago
add a comment |
up vote
0
down vote
How to make these arrows in the systeme?
New contributor
Eitor Bernardes de Paiva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
this is not an answer. if you have new question, ask it as question, not as answer. for arrows see, iftikzmarkcan help you.
– Zarko
7 mins ago
add a comment |
up vote
0
down vote
up vote
0
down vote
How to make these arrows in the systeme?
New contributor
Eitor Bernardes de Paiva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
How to make these arrows in the systeme?
New contributor
Eitor Bernardes de Paiva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Eitor Bernardes de Paiva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 25 mins ago
Eitor Bernardes de Paiva
1
1
New contributor
Eitor Bernardes de Paiva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Eitor Bernardes de Paiva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Eitor Bernardes de Paiva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
this is not an answer. if you have new question, ask it as question, not as answer. for arrows see, iftikzmarkcan help you.
– Zarko
7 mins ago
add a comment |
this is not an answer. if you have new question, ask it as question, not as answer. for arrows see, iftikzmarkcan help you.
– Zarko
7 mins ago
this is not an answer. if you have new question, ask it as question, not as answer. for arrows see, if
tikzmark can help you.– Zarko
7 mins ago
this is not an answer. if you have new question, ask it as question, not as answer. for arrows see, if
tikzmark can help you.– Zarko
7 mins ago
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f247070%2fis-it-possible-to-flushright-the-right-hand-side-with-systeme-without-hphantom%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