Arrow with text near forest tree
up vote
4
down vote
favorite
Hello! I am trying to insert an arrow with text parallel to the tree. Thanks!
documentclass[11pt,titlepage,oneside,openany]{book}
usepackage{forest}
begin{document}
begin{forest}
[A, name=a[B][C[D][E ,name=e[F][G]]]]
end{forest}
end{document}
arrows forest
add a comment |
up vote
4
down vote
favorite
Hello! I am trying to insert an arrow with text parallel to the tree. Thanks!
documentclass[11pt,titlepage,oneside,openany]{book}
usepackage{forest}
begin{document}
begin{forest}
[A, name=a[B][C[D][E ,name=e[F][G]]]]
end{forest}
end{document}
arrows forest
Instead of just posting an image, post the code for your tree in a minimal compilable document that people can work with.
– Alan Munn
Nov 12 at 21:39
add a comment |
up vote
4
down vote
favorite
up vote
4
down vote
favorite
Hello! I am trying to insert an arrow with text parallel to the tree. Thanks!
documentclass[11pt,titlepage,oneside,openany]{book}
usepackage{forest}
begin{document}
begin{forest}
[A, name=a[B][C[D][E ,name=e[F][G]]]]
end{forest}
end{document}
arrows forest
Hello! I am trying to insert an arrow with text parallel to the tree. Thanks!
documentclass[11pt,titlepage,oneside,openany]{book}
usepackage{forest}
begin{document}
begin{forest}
[A, name=a[B][C[D][E ,name=e[F][G]]]]
end{forest}
end{document}
arrows forest
arrows forest
edited Nov 12 at 23:03
asked Nov 12 at 20:49
Margarita
845
845
Instead of just posting an image, post the code for your tree in a minimal compilable document that people can work with.
– Alan Munn
Nov 12 at 21:39
add a comment |
Instead of just posting an image, post the code for your tree in a minimal compilable document that people can work with.
– Alan Munn
Nov 12 at 21:39
Instead of just posting an image, post the code for your tree in a minimal compilable document that people can work with.
– Alan Munn
Nov 12 at 21:39
Instead of just posting an image, post the code for your tree in a minimal compilable document that people can work with.
– Alan Munn
Nov 12 at 21:39
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
You did almost everything yourself, even naming the nodes. I only had to add one simple TikZ command.
documentclass[11pt,titlepage,oneside,openany]{book}
usepackage{forest}
begin{document}
begin{forest}
[A,name=a
[B]
[C
[D]
[E ,name=e
[F]
[G]
]
]
]
draw[thick,-latex] ([xshift=1cm]a.north east) -- ([xshift=1cm]e.south east)
node[midway,sloped,above]{text on arrow};
end{forest}
end{document}
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
You did almost everything yourself, even naming the nodes. I only had to add one simple TikZ command.
documentclass[11pt,titlepage,oneside,openany]{book}
usepackage{forest}
begin{document}
begin{forest}
[A,name=a
[B]
[C
[D]
[E ,name=e
[F]
[G]
]
]
]
draw[thick,-latex] ([xshift=1cm]a.north east) -- ([xshift=1cm]e.south east)
node[midway,sloped,above]{text on arrow};
end{forest}
end{document}
add a comment |
up vote
3
down vote
accepted
You did almost everything yourself, even naming the nodes. I only had to add one simple TikZ command.
documentclass[11pt,titlepage,oneside,openany]{book}
usepackage{forest}
begin{document}
begin{forest}
[A,name=a
[B]
[C
[D]
[E ,name=e
[F]
[G]
]
]
]
draw[thick,-latex] ([xshift=1cm]a.north east) -- ([xshift=1cm]e.south east)
node[midway,sloped,above]{text on arrow};
end{forest}
end{document}
add a comment |
up vote
3
down vote
accepted
up vote
3
down vote
accepted
You did almost everything yourself, even naming the nodes. I only had to add one simple TikZ command.
documentclass[11pt,titlepage,oneside,openany]{book}
usepackage{forest}
begin{document}
begin{forest}
[A,name=a
[B]
[C
[D]
[E ,name=e
[F]
[G]
]
]
]
draw[thick,-latex] ([xshift=1cm]a.north east) -- ([xshift=1cm]e.south east)
node[midway,sloped,above]{text on arrow};
end{forest}
end{document}
You did almost everything yourself, even naming the nodes. I only had to add one simple TikZ command.
documentclass[11pt,titlepage,oneside,openany]{book}
usepackage{forest}
begin{document}
begin{forest}
[A,name=a
[B]
[C
[D]
[E ,name=e
[F]
[G]
]
]
]
draw[thick,-latex] ([xshift=1cm]a.north east) -- ([xshift=1cm]e.south east)
node[midway,sloped,above]{text on arrow};
end{forest}
end{document}
answered Nov 12 at 23:39
marmot
75.4k485159
75.4k485159
add a comment |
add a comment |
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%2f459684%2farrow-with-text-near-forest-tree%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
Instead of just posting an image, post the code for your tree in a minimal compilable document that people can work with.
– Alan Munn
Nov 12 at 21:39