Arrow between lines in the align environment
I want to add some texts between lines in the align* environment like this:
I tried the following code:
begin{align*}
abc &= def + def + def + def tikzmark{a}\
&= ghi + ghi tikzmark{b}\
&= jkltikzmark{c}\
&= mno + mnotikzmark{d}
end{align*}
begin{tikzpicture}[remember picture, overlay]
draw[->] ([xshift=2mm] pic cs:a)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize defitnition}
([xshift=2mm] pic cs:b);
draw[->] ([xshift=2mm] pic cs:c)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize blablabla}
([xshift=2mm] pic cs:d);
end{tikzpicture}
but it only gives
There are two problems:
(i) I want to make every arrow aligned vertically
(ii) As I am going to use this arrow very frequently, I want to define it as a sort of newcommand thing.
What can I do?
tikz-pgf align arrows
New contributor
add a comment |
I want to add some texts between lines in the align* environment like this:
I tried the following code:
begin{align*}
abc &= def + def + def + def tikzmark{a}\
&= ghi + ghi tikzmark{b}\
&= jkltikzmark{c}\
&= mno + mnotikzmark{d}
end{align*}
begin{tikzpicture}[remember picture, overlay]
draw[->] ([xshift=2mm] pic cs:a)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize defitnition}
([xshift=2mm] pic cs:b);
draw[->] ([xshift=2mm] pic cs:c)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize blablabla}
([xshift=2mm] pic cs:d);
end{tikzpicture}
but it only gives
There are two problems:
(i) I want to make every arrow aligned vertically
(ii) As I am going to use this arrow very frequently, I want to define it as a sort of newcommand thing.
What can I do?
tikz-pgf align arrows
New contributor
1
Welcome to TeX.SE! Can you please show us what you have tried so far?
– Kurt
4 hours ago
add a comment |
I want to add some texts between lines in the align* environment like this:
I tried the following code:
begin{align*}
abc &= def + def + def + def tikzmark{a}\
&= ghi + ghi tikzmark{b}\
&= jkltikzmark{c}\
&= mno + mnotikzmark{d}
end{align*}
begin{tikzpicture}[remember picture, overlay]
draw[->] ([xshift=2mm] pic cs:a)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize defitnition}
([xshift=2mm] pic cs:b);
draw[->] ([xshift=2mm] pic cs:c)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize blablabla}
([xshift=2mm] pic cs:d);
end{tikzpicture}
but it only gives
There are two problems:
(i) I want to make every arrow aligned vertically
(ii) As I am going to use this arrow very frequently, I want to define it as a sort of newcommand thing.
What can I do?
tikz-pgf align arrows
New contributor
I want to add some texts between lines in the align* environment like this:
I tried the following code:
begin{align*}
abc &= def + def + def + def tikzmark{a}\
&= ghi + ghi tikzmark{b}\
&= jkltikzmark{c}\
&= mno + mnotikzmark{d}
end{align*}
begin{tikzpicture}[remember picture, overlay]
draw[->] ([xshift=2mm] pic cs:a)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize defitnition}
([xshift=2mm] pic cs:b);
draw[->] ([xshift=2mm] pic cs:c)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize blablabla}
([xshift=2mm] pic cs:d);
end{tikzpicture}
but it only gives
There are two problems:
(i) I want to make every arrow aligned vertically
(ii) As I am going to use this arrow very frequently, I want to define it as a sort of newcommand thing.
What can I do?
tikz-pgf align arrows
tikz-pgf align arrows
New contributor
New contributor
edited 2 hours ago
Sandy G
2,6671321
2,6671321
New contributor
asked 4 hours ago
user182849user182849
183
183
New contributor
New contributor
1
Welcome to TeX.SE! Can you please show us what you have tried so far?
– Kurt
4 hours ago
add a comment |
1
Welcome to TeX.SE! Can you please show us what you have tried so far?
– Kurt
4 hours ago
1
1
Welcome to TeX.SE! Can you please show us what you have tried so far?
– Kurt
4 hours ago
Welcome to TeX.SE! Can you please show us what you have tried so far?
– Kurt
4 hours ago
add a comment |
2 Answers
2
active
oldest
votes
This can be done using the witharrows
package.
Here is the code:
documentclass{article}
usepackage{witharrows}
begin{document}
[
begin{WithArrows}
abc &= def+def+def+def Arrow[tikz={font={mdseries}}]{definition} \
&= hgi+hgi\
&= jklArrow[tikz={font={mdseries}}]{blablabla}\
&=mno+mno
end{WithArrows}
]
end{document}
Note that you may have to compile twice when using witharrows
.
Go to the package documentation at CTAN to see the many options for usage including fonts, arrowheads, curvature, color, etc.
This's exactly what I want. Thanks!
– user182849
2 hours ago
1
My pleasure, @user182849. It may seem strange, but we typically don't thank posters in comments. Thanks are expressed by voting up (when you have sufficient reputation) and by accepting the answer you find best resolves your question. Welcome to TeX.SX!
– Sandy G
2 hours ago
Thank you for introducing me to this wonderful packagewitharrows
: -)
– AndréC
1 hour ago
add a comment |
Just for completeness: with tikzmark
, which you are using, there is no problem in completing the code to give
documentclass{article}
usepackage{amsmath}
usepackage{tikz}
usetikzlibrary{tikzmark}
begin{document}
begin{align*}
abc &= def + def + def + def tikzmarknode{a}{}\
&= ghi + ghi tikzmarknode{b}{}\
&= jkltikzmarknode{c}{}\
&= mno + mnotikzmarknode{d}{}
end{align*}
begin{tikzpicture}[remember picture, overlay,font=footnotesize]
draw[-latex] ([xshift=2mm]a.east) coordinate (r)
to [out=0,in=0,looseness=2]
node[midway,anchor=west,xshift=3mm] {definition}
(b -| r);
draw[-latex] (c-|r)
to [out=0,in=0,looseness=2]
node[midway,anchor=west,xshift=3mm] {blablabla}
(d-|r);
end{tikzpicture}
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
});
}
});
user182849 is a new contributor. Be nice, and check out our Code of Conduct.
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%2f477956%2farrow-between-lines-in-the-align-environment%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
This can be done using the witharrows
package.
Here is the code:
documentclass{article}
usepackage{witharrows}
begin{document}
[
begin{WithArrows}
abc &= def+def+def+def Arrow[tikz={font={mdseries}}]{definition} \
&= hgi+hgi\
&= jklArrow[tikz={font={mdseries}}]{blablabla}\
&=mno+mno
end{WithArrows}
]
end{document}
Note that you may have to compile twice when using witharrows
.
Go to the package documentation at CTAN to see the many options for usage including fonts, arrowheads, curvature, color, etc.
This's exactly what I want. Thanks!
– user182849
2 hours ago
1
My pleasure, @user182849. It may seem strange, but we typically don't thank posters in comments. Thanks are expressed by voting up (when you have sufficient reputation) and by accepting the answer you find best resolves your question. Welcome to TeX.SX!
– Sandy G
2 hours ago
Thank you for introducing me to this wonderful packagewitharrows
: -)
– AndréC
1 hour ago
add a comment |
This can be done using the witharrows
package.
Here is the code:
documentclass{article}
usepackage{witharrows}
begin{document}
[
begin{WithArrows}
abc &= def+def+def+def Arrow[tikz={font={mdseries}}]{definition} \
&= hgi+hgi\
&= jklArrow[tikz={font={mdseries}}]{blablabla}\
&=mno+mno
end{WithArrows}
]
end{document}
Note that you may have to compile twice when using witharrows
.
Go to the package documentation at CTAN to see the many options for usage including fonts, arrowheads, curvature, color, etc.
This's exactly what I want. Thanks!
– user182849
2 hours ago
1
My pleasure, @user182849. It may seem strange, but we typically don't thank posters in comments. Thanks are expressed by voting up (when you have sufficient reputation) and by accepting the answer you find best resolves your question. Welcome to TeX.SX!
– Sandy G
2 hours ago
Thank you for introducing me to this wonderful packagewitharrows
: -)
– AndréC
1 hour ago
add a comment |
This can be done using the witharrows
package.
Here is the code:
documentclass{article}
usepackage{witharrows}
begin{document}
[
begin{WithArrows}
abc &= def+def+def+def Arrow[tikz={font={mdseries}}]{definition} \
&= hgi+hgi\
&= jklArrow[tikz={font={mdseries}}]{blablabla}\
&=mno+mno
end{WithArrows}
]
end{document}
Note that you may have to compile twice when using witharrows
.
Go to the package documentation at CTAN to see the many options for usage including fonts, arrowheads, curvature, color, etc.
This can be done using the witharrows
package.
Here is the code:
documentclass{article}
usepackage{witharrows}
begin{document}
[
begin{WithArrows}
abc &= def+def+def+def Arrow[tikz={font={mdseries}}]{definition} \
&= hgi+hgi\
&= jklArrow[tikz={font={mdseries}}]{blablabla}\
&=mno+mno
end{WithArrows}
]
end{document}
Note that you may have to compile twice when using witharrows
.
Go to the package documentation at CTAN to see the many options for usage including fonts, arrowheads, curvature, color, etc.
answered 2 hours ago
Sandy GSandy G
2,6671321
2,6671321
This's exactly what I want. Thanks!
– user182849
2 hours ago
1
My pleasure, @user182849. It may seem strange, but we typically don't thank posters in comments. Thanks are expressed by voting up (when you have sufficient reputation) and by accepting the answer you find best resolves your question. Welcome to TeX.SX!
– Sandy G
2 hours ago
Thank you for introducing me to this wonderful packagewitharrows
: -)
– AndréC
1 hour ago
add a comment |
This's exactly what I want. Thanks!
– user182849
2 hours ago
1
My pleasure, @user182849. It may seem strange, but we typically don't thank posters in comments. Thanks are expressed by voting up (when you have sufficient reputation) and by accepting the answer you find best resolves your question. Welcome to TeX.SX!
– Sandy G
2 hours ago
Thank you for introducing me to this wonderful packagewitharrows
: -)
– AndréC
1 hour ago
This's exactly what I want. Thanks!
– user182849
2 hours ago
This's exactly what I want. Thanks!
– user182849
2 hours ago
1
1
My pleasure, @user182849. It may seem strange, but we typically don't thank posters in comments. Thanks are expressed by voting up (when you have sufficient reputation) and by accepting the answer you find best resolves your question. Welcome to TeX.SX!
– Sandy G
2 hours ago
My pleasure, @user182849. It may seem strange, but we typically don't thank posters in comments. Thanks are expressed by voting up (when you have sufficient reputation) and by accepting the answer you find best resolves your question. Welcome to TeX.SX!
– Sandy G
2 hours ago
Thank you for introducing me to this wonderful package
witharrows
: -)– AndréC
1 hour ago
Thank you for introducing me to this wonderful package
witharrows
: -)– AndréC
1 hour ago
add a comment |
Just for completeness: with tikzmark
, which you are using, there is no problem in completing the code to give
documentclass{article}
usepackage{amsmath}
usepackage{tikz}
usetikzlibrary{tikzmark}
begin{document}
begin{align*}
abc &= def + def + def + def tikzmarknode{a}{}\
&= ghi + ghi tikzmarknode{b}{}\
&= jkltikzmarknode{c}{}\
&= mno + mnotikzmarknode{d}{}
end{align*}
begin{tikzpicture}[remember picture, overlay,font=footnotesize]
draw[-latex] ([xshift=2mm]a.east) coordinate (r)
to [out=0,in=0,looseness=2]
node[midway,anchor=west,xshift=3mm] {definition}
(b -| r);
draw[-latex] (c-|r)
to [out=0,in=0,looseness=2]
node[midway,anchor=west,xshift=3mm] {blablabla}
(d-|r);
end{tikzpicture}
end{document}
add a comment |
Just for completeness: with tikzmark
, which you are using, there is no problem in completing the code to give
documentclass{article}
usepackage{amsmath}
usepackage{tikz}
usetikzlibrary{tikzmark}
begin{document}
begin{align*}
abc &= def + def + def + def tikzmarknode{a}{}\
&= ghi + ghi tikzmarknode{b}{}\
&= jkltikzmarknode{c}{}\
&= mno + mnotikzmarknode{d}{}
end{align*}
begin{tikzpicture}[remember picture, overlay,font=footnotesize]
draw[-latex] ([xshift=2mm]a.east) coordinate (r)
to [out=0,in=0,looseness=2]
node[midway,anchor=west,xshift=3mm] {definition}
(b -| r);
draw[-latex] (c-|r)
to [out=0,in=0,looseness=2]
node[midway,anchor=west,xshift=3mm] {blablabla}
(d-|r);
end{tikzpicture}
end{document}
add a comment |
Just for completeness: with tikzmark
, which you are using, there is no problem in completing the code to give
documentclass{article}
usepackage{amsmath}
usepackage{tikz}
usetikzlibrary{tikzmark}
begin{document}
begin{align*}
abc &= def + def + def + def tikzmarknode{a}{}\
&= ghi + ghi tikzmarknode{b}{}\
&= jkltikzmarknode{c}{}\
&= mno + mnotikzmarknode{d}{}
end{align*}
begin{tikzpicture}[remember picture, overlay,font=footnotesize]
draw[-latex] ([xshift=2mm]a.east) coordinate (r)
to [out=0,in=0,looseness=2]
node[midway,anchor=west,xshift=3mm] {definition}
(b -| r);
draw[-latex] (c-|r)
to [out=0,in=0,looseness=2]
node[midway,anchor=west,xshift=3mm] {blablabla}
(d-|r);
end{tikzpicture}
end{document}
Just for completeness: with tikzmark
, which you are using, there is no problem in completing the code to give
documentclass{article}
usepackage{amsmath}
usepackage{tikz}
usetikzlibrary{tikzmark}
begin{document}
begin{align*}
abc &= def + def + def + def tikzmarknode{a}{}\
&= ghi + ghi tikzmarknode{b}{}\
&= jkltikzmarknode{c}{}\
&= mno + mnotikzmarknode{d}{}
end{align*}
begin{tikzpicture}[remember picture, overlay,font=footnotesize]
draw[-latex] ([xshift=2mm]a.east) coordinate (r)
to [out=0,in=0,looseness=2]
node[midway,anchor=west,xshift=3mm] {definition}
(b -| r);
draw[-latex] (c-|r)
to [out=0,in=0,looseness=2]
node[midway,anchor=west,xshift=3mm] {blablabla}
(d-|r);
end{tikzpicture}
end{document}
answered 51 mins ago
marmotmarmot
106k4127242
106k4127242
add a comment |
add a comment |
user182849 is a new contributor. Be nice, and check out our Code of Conduct.
user182849 is a new contributor. Be nice, and check out our Code of Conduct.
user182849 is a new contributor. Be nice, and check out our Code of Conduct.
user182849 is a new contributor. Be nice, and check out our Code of Conduct.
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%2f477956%2farrow-between-lines-in-the-align-environment%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 to TeX.SE! Can you please show us what you have tried so far?
– Kurt
4 hours ago