Input words within a figure using tikz
up vote
2
down vote
favorite
I want to draw this using tikz package of latex.
I already write down the code for that. But the problem is that how could I input the sentence Happing Now within the picture.
My code is
begin{frame}{Frame Title}
begin{figure}
centering
begin{tikzpicture}
draw[thick][->](0,0) to (4,0);
draw[thick][->](2,1.5) to (4,0.5);
draw[thick][loosely dotted](4,0) to (5,0);
end{tikzpicture}
caption{Timeline}
label{fig:my_label1}
end{figure}
end{frame}
tikz-pgf overleaf
add a comment |
up vote
2
down vote
favorite
I want to draw this using tikz package of latex.
I already write down the code for that. But the problem is that how could I input the sentence Happing Now within the picture.
My code is
begin{frame}{Frame Title}
begin{figure}
centering
begin{tikzpicture}
draw[thick][->](0,0) to (4,0);
draw[thick][->](2,1.5) to (4,0.5);
draw[thick][loosely dotted](4,0) to (5,0);
end{tikzpicture}
caption{Timeline}
label{fig:my_label1}
end{figure}
end{frame}
tikz-pgf overleaf
1
palce anode
at the starting point of the arrow. Read A very minimal introduction to TikZ for more.
– nidhin
5 hours ago
please show us mwe (minimal working example), which produce your arrows.
– Zarko
5 hours ago
draw[thick][->] (2,1.5) node[anchor=east]{Happing Now} to (4,0.5);
– hpekristiansen
5 hours ago
2
Possible duplicate of TikZ Adding Text
– hpekristiansen
5 hours ago
@hpekristiansen: The possible duplicate question is about placing text at arbitrary positions, which would be used in this case as well (but would require specifying the coordinate twice). However, I think that that is different than this case as this is about placing text relative to a particulardraw
.
– Peter Grill
5 hours ago
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I want to draw this using tikz package of latex.
I already write down the code for that. But the problem is that how could I input the sentence Happing Now within the picture.
My code is
begin{frame}{Frame Title}
begin{figure}
centering
begin{tikzpicture}
draw[thick][->](0,0) to (4,0);
draw[thick][->](2,1.5) to (4,0.5);
draw[thick][loosely dotted](4,0) to (5,0);
end{tikzpicture}
caption{Timeline}
label{fig:my_label1}
end{figure}
end{frame}
tikz-pgf overleaf
I want to draw this using tikz package of latex.
I already write down the code for that. But the problem is that how could I input the sentence Happing Now within the picture.
My code is
begin{frame}{Frame Title}
begin{figure}
centering
begin{tikzpicture}
draw[thick][->](0,0) to (4,0);
draw[thick][->](2,1.5) to (4,0.5);
draw[thick][loosely dotted](4,0) to (5,0);
end{tikzpicture}
caption{Timeline}
label{fig:my_label1}
end{figure}
end{frame}
tikz-pgf overleaf
tikz-pgf overleaf
edited 5 hours ago
nidhin
3,014926
3,014926
asked 6 hours ago
Encipher
925
925
1
palce anode
at the starting point of the arrow. Read A very minimal introduction to TikZ for more.
– nidhin
5 hours ago
please show us mwe (minimal working example), which produce your arrows.
– Zarko
5 hours ago
draw[thick][->] (2,1.5) node[anchor=east]{Happing Now} to (4,0.5);
– hpekristiansen
5 hours ago
2
Possible duplicate of TikZ Adding Text
– hpekristiansen
5 hours ago
@hpekristiansen: The possible duplicate question is about placing text at arbitrary positions, which would be used in this case as well (but would require specifying the coordinate twice). However, I think that that is different than this case as this is about placing text relative to a particulardraw
.
– Peter Grill
5 hours ago
add a comment |
1
palce anode
at the starting point of the arrow. Read A very minimal introduction to TikZ for more.
– nidhin
5 hours ago
please show us mwe (minimal working example), which produce your arrows.
– Zarko
5 hours ago
draw[thick][->] (2,1.5) node[anchor=east]{Happing Now} to (4,0.5);
– hpekristiansen
5 hours ago
2
Possible duplicate of TikZ Adding Text
– hpekristiansen
5 hours ago
@hpekristiansen: The possible duplicate question is about placing text at arbitrary positions, which would be used in this case as well (but would require specifying the coordinate twice). However, I think that that is different than this case as this is about placing text relative to a particulardraw
.
– Peter Grill
5 hours ago
1
1
palce a
node
at the starting point of the arrow. Read A very minimal introduction to TikZ for more.– nidhin
5 hours ago
palce a
node
at the starting point of the arrow. Read A very minimal introduction to TikZ for more.– nidhin
5 hours ago
please show us mwe (minimal working example), which produce your arrows.
– Zarko
5 hours ago
please show us mwe (minimal working example), which produce your arrows.
– Zarko
5 hours ago
draw[thick][->] (2,1.5) node[anchor=east]{Happing Now} to (4,0.5);
– hpekristiansen
5 hours ago
draw[thick][->] (2,1.5) node[anchor=east]{Happing Now} to (4,0.5);
– hpekristiansen
5 hours ago
2
2
Possible duplicate of TikZ Adding Text
– hpekristiansen
5 hours ago
Possible duplicate of TikZ Adding Text
– hpekristiansen
5 hours ago
@hpekristiansen: The possible duplicate question is about placing text at arbitrary positions, which would be used in this case as well (but would require specifying the coordinate twice). However, I think that that is different than this case as this is about placing text relative to a particular
draw
.– Peter Grill
5 hours ago
@hpekristiansen: The possible duplicate question is about placing text at arbitrary positions, which would be used in this case as well (but would require specifying the coordinate twice). However, I think that that is different than this case as this is about placing text relative to a particular
draw
.– Peter Grill
5 hours ago
add a comment |
5 Answers
5
active
oldest
votes
up vote
4
down vote
accepted
You can place a node at the appropriate point, if you replace the to
syntax with a --
:
Notes:
- You don't need to use
for each option.
Code:
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}
draw[thick, ->] (0,0) to (4,0);
draw[thick, ->] (2,1.5) -- (4,0.5) node [pos=0, anchor=east] {Happening Now};
draw[thick, loosely dotted] (4,0) to (5,0);
end{tikzpicture}
end{document}
add a comment |
up vote
3
down vote
You can put a node at the beginning of the upper arrow.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}
draw[thick, ->] (0,0) to (4,0) ;
draw[thick, ->] (2,1.5) node [anchor=east] {Happing Now} to (4,0.5);
draw[thick, loosely dotted](4,0) to (5,0);
end{tikzpicture}
end{document}
add a comment |
up vote
2
down vote
As suggested by @nidhin:
documentclass[tikz,border=0.5cm]{standalone}
begin{document}
begin{tikzpicture}
draw[thick][->](0,0) to (4,0);
draw[thick][->](2,1.5)node[left]{Happing now} to (4,0.5);
draw[thick][loosely dotted](4,0) to (5,0);
end{tikzpicture}
end{document}
add a comment |
up vote
2
down vote
Using one command as my previous answer. Don't use a to
path if you don't have different angles for in
and out
, just --
or edge
.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[thick]
path[->] (0,0) edge (4,0) (2,1.5)node[label=left:Happening Now]{} edge (4,0.5) (4,0) edge[loosely dotted,-] (5,0);
end{tikzpicture}
end{document}
add a comment |
up vote
2
down vote
based on answer on the your previous question:
documentclass[12pt,a4paper]{article}
usepackage{tikz}
begin{document}
begin{figure}
centering
begin{tikzpicture}[thick]
draw[->] (0,0) edge (4,0)
(2,3) node[left] {Happing Now} -- (4,1);
draw[thick][loosely dotted] (4,0) -- (5,0);
end{tikzpicture}
caption{Timeline}
label{fig:my_label1}
end{figure}
end{document}
I think you spelled "Happening Now" wrong? :-). There is a a reference to[![enter image description here][1]][1]
in the answer. I think you intended to delete that?
– Peter Grill
5 hours ago
@PeterGrill, thank you to pointing me on this mistake. I still have problems with new interface for loading images ... i delete it, hopefully now is all correct.
– Zarko
4 hours ago
add a comment |
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
You can place a node at the appropriate point, if you replace the to
syntax with a --
:
Notes:
- You don't need to use
for each option.
Code:
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}
draw[thick, ->] (0,0) to (4,0);
draw[thick, ->] (2,1.5) -- (4,0.5) node [pos=0, anchor=east] {Happening Now};
draw[thick, loosely dotted] (4,0) to (5,0);
end{tikzpicture}
end{document}
add a comment |
up vote
4
down vote
accepted
You can place a node at the appropriate point, if you replace the to
syntax with a --
:
Notes:
- You don't need to use
for each option.
Code:
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}
draw[thick, ->] (0,0) to (4,0);
draw[thick, ->] (2,1.5) -- (4,0.5) node [pos=0, anchor=east] {Happening Now};
draw[thick, loosely dotted] (4,0) to (5,0);
end{tikzpicture}
end{document}
add a comment |
up vote
4
down vote
accepted
up vote
4
down vote
accepted
You can place a node at the appropriate point, if you replace the to
syntax with a --
:
Notes:
- You don't need to use
for each option.
Code:
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}
draw[thick, ->] (0,0) to (4,0);
draw[thick, ->] (2,1.5) -- (4,0.5) node [pos=0, anchor=east] {Happening Now};
draw[thick, loosely dotted] (4,0) to (5,0);
end{tikzpicture}
end{document}
You can place a node at the appropriate point, if you replace the to
syntax with a --
:
Notes:
- You don't need to use
for each option.
Code:
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}
draw[thick, ->] (0,0) to (4,0);
draw[thick, ->] (2,1.5) -- (4,0.5) node [pos=0, anchor=east] {Happening Now};
draw[thick, loosely dotted] (4,0) to (5,0);
end{tikzpicture}
end{document}
answered 5 hours ago
Peter Grill
163k24432744
163k24432744
add a comment |
add a comment |
up vote
3
down vote
You can put a node at the beginning of the upper arrow.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}
draw[thick, ->] (0,0) to (4,0) ;
draw[thick, ->] (2,1.5) node [anchor=east] {Happing Now} to (4,0.5);
draw[thick, loosely dotted](4,0) to (5,0);
end{tikzpicture}
end{document}
add a comment |
up vote
3
down vote
You can put a node at the beginning of the upper arrow.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}
draw[thick, ->] (0,0) to (4,0) ;
draw[thick, ->] (2,1.5) node [anchor=east] {Happing Now} to (4,0.5);
draw[thick, loosely dotted](4,0) to (5,0);
end{tikzpicture}
end{document}
add a comment |
up vote
3
down vote
up vote
3
down vote
You can put a node at the beginning of the upper arrow.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}
draw[thick, ->] (0,0) to (4,0) ;
draw[thick, ->] (2,1.5) node [anchor=east] {Happing Now} to (4,0.5);
draw[thick, loosely dotted](4,0) to (5,0);
end{tikzpicture}
end{document}
You can put a node at the beginning of the upper arrow.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}
draw[thick, ->] (0,0) to (4,0) ;
draw[thick, ->] (2,1.5) node [anchor=east] {Happing Now} to (4,0.5);
draw[thick, loosely dotted](4,0) to (5,0);
end{tikzpicture}
end{document}
answered 5 hours ago
javadr
1,428313
1,428313
add a comment |
add a comment |
up vote
2
down vote
As suggested by @nidhin:
documentclass[tikz,border=0.5cm]{standalone}
begin{document}
begin{tikzpicture}
draw[thick][->](0,0) to (4,0);
draw[thick][->](2,1.5)node[left]{Happing now} to (4,0.5);
draw[thick][loosely dotted](4,0) to (5,0);
end{tikzpicture}
end{document}
add a comment |
up vote
2
down vote
As suggested by @nidhin:
documentclass[tikz,border=0.5cm]{standalone}
begin{document}
begin{tikzpicture}
draw[thick][->](0,0) to (4,0);
draw[thick][->](2,1.5)node[left]{Happing now} to (4,0.5);
draw[thick][loosely dotted](4,0) to (5,0);
end{tikzpicture}
end{document}
add a comment |
up vote
2
down vote
up vote
2
down vote
As suggested by @nidhin:
documentclass[tikz,border=0.5cm]{standalone}
begin{document}
begin{tikzpicture}
draw[thick][->](0,0) to (4,0);
draw[thick][->](2,1.5)node[left]{Happing now} to (4,0.5);
draw[thick][loosely dotted](4,0) to (5,0);
end{tikzpicture}
end{document}
As suggested by @nidhin:
documentclass[tikz,border=0.5cm]{standalone}
begin{document}
begin{tikzpicture}
draw[thick][->](0,0) to (4,0);
draw[thick][->](2,1.5)node[left]{Happing now} to (4,0.5);
draw[thick][loosely dotted](4,0) to (5,0);
end{tikzpicture}
end{document}
answered 5 hours ago
Hafid Boukhoulda
1,023515
1,023515
add a comment |
add a comment |
up vote
2
down vote
Using one command as my previous answer. Don't use a to
path if you don't have different angles for in
and out
, just --
or edge
.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[thick]
path[->] (0,0) edge (4,0) (2,1.5)node[label=left:Happening Now]{} edge (4,0.5) (4,0) edge[loosely dotted,-] (5,0);
end{tikzpicture}
end{document}
add a comment |
up vote
2
down vote
Using one command as my previous answer. Don't use a to
path if you don't have different angles for in
and out
, just --
or edge
.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[thick]
path[->] (0,0) edge (4,0) (2,1.5)node[label=left:Happening Now]{} edge (4,0.5) (4,0) edge[loosely dotted,-] (5,0);
end{tikzpicture}
end{document}
add a comment |
up vote
2
down vote
up vote
2
down vote
Using one command as my previous answer. Don't use a to
path if you don't have different angles for in
and out
, just --
or edge
.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[thick]
path[->] (0,0) edge (4,0) (2,1.5)node[label=left:Happening Now]{} edge (4,0.5) (4,0) edge[loosely dotted,-] (5,0);
end{tikzpicture}
end{document}
Using one command as my previous answer. Don't use a to
path if you don't have different angles for in
and out
, just --
or edge
.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[thick]
path[->] (0,0) edge (4,0) (2,1.5)node[label=left:Happening Now]{} edge (4,0.5) (4,0) edge[loosely dotted,-] (5,0);
end{tikzpicture}
end{document}
answered 5 hours ago
AboAmmar
32k22781
32k22781
add a comment |
add a comment |
up vote
2
down vote
based on answer on the your previous question:
documentclass[12pt,a4paper]{article}
usepackage{tikz}
begin{document}
begin{figure}
centering
begin{tikzpicture}[thick]
draw[->] (0,0) edge (4,0)
(2,3) node[left] {Happing Now} -- (4,1);
draw[thick][loosely dotted] (4,0) -- (5,0);
end{tikzpicture}
caption{Timeline}
label{fig:my_label1}
end{figure}
end{document}
I think you spelled "Happening Now" wrong? :-). There is a a reference to[![enter image description here][1]][1]
in the answer. I think you intended to delete that?
– Peter Grill
5 hours ago
@PeterGrill, thank you to pointing me on this mistake. I still have problems with new interface for loading images ... i delete it, hopefully now is all correct.
– Zarko
4 hours ago
add a comment |
up vote
2
down vote
based on answer on the your previous question:
documentclass[12pt,a4paper]{article}
usepackage{tikz}
begin{document}
begin{figure}
centering
begin{tikzpicture}[thick]
draw[->] (0,0) edge (4,0)
(2,3) node[left] {Happing Now} -- (4,1);
draw[thick][loosely dotted] (4,0) -- (5,0);
end{tikzpicture}
caption{Timeline}
label{fig:my_label1}
end{figure}
end{document}
I think you spelled "Happening Now" wrong? :-). There is a a reference to[![enter image description here][1]][1]
in the answer. I think you intended to delete that?
– Peter Grill
5 hours ago
@PeterGrill, thank you to pointing me on this mistake. I still have problems with new interface for loading images ... i delete it, hopefully now is all correct.
– Zarko
4 hours ago
add a comment |
up vote
2
down vote
up vote
2
down vote
based on answer on the your previous question:
documentclass[12pt,a4paper]{article}
usepackage{tikz}
begin{document}
begin{figure}
centering
begin{tikzpicture}[thick]
draw[->] (0,0) edge (4,0)
(2,3) node[left] {Happing Now} -- (4,1);
draw[thick][loosely dotted] (4,0) -- (5,0);
end{tikzpicture}
caption{Timeline}
label{fig:my_label1}
end{figure}
end{document}
based on answer on the your previous question:
documentclass[12pt,a4paper]{article}
usepackage{tikz}
begin{document}
begin{figure}
centering
begin{tikzpicture}[thick]
draw[->] (0,0) edge (4,0)
(2,3) node[left] {Happing Now} -- (4,1);
draw[thick][loosely dotted] (4,0) -- (5,0);
end{tikzpicture}
caption{Timeline}
label{fig:my_label1}
end{figure}
end{document}
edited 4 hours ago
answered 5 hours ago
Zarko
118k865155
118k865155
I think you spelled "Happening Now" wrong? :-). There is a a reference to[![enter image description here][1]][1]
in the answer. I think you intended to delete that?
– Peter Grill
5 hours ago
@PeterGrill, thank you to pointing me on this mistake. I still have problems with new interface for loading images ... i delete it, hopefully now is all correct.
– Zarko
4 hours ago
add a comment |
I think you spelled "Happening Now" wrong? :-). There is a a reference to[![enter image description here][1]][1]
in the answer. I think you intended to delete that?
– Peter Grill
5 hours ago
@PeterGrill, thank you to pointing me on this mistake. I still have problems with new interface for loading images ... i delete it, hopefully now is all correct.
– Zarko
4 hours ago
I think you spelled "Happening Now" wrong? :-). There is a a reference to
[![enter image description here][1]][1]
in the answer. I think you intended to delete that?– Peter Grill
5 hours ago
I think you spelled "Happening Now" wrong? :-). There is a a reference to
[![enter image description here][1]][1]
in the answer. I think you intended to delete that?– Peter Grill
5 hours ago
@PeterGrill, thank you to pointing me on this mistake. I still have problems with new interface for loading images ... i delete it, hopefully now is all correct.
– Zarko
4 hours ago
@PeterGrill, thank you to pointing me on this mistake. I still have problems with new interface for loading images ... i delete it, hopefully now is all correct.
– Zarko
4 hours 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%2f464572%2finput-words-within-a-figure-using-tikz%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
palce a
node
at the starting point of the arrow. Read A very minimal introduction to TikZ for more.– nidhin
5 hours ago
please show us mwe (minimal working example), which produce your arrows.
– Zarko
5 hours ago
draw[thick][->] (2,1.5) node[anchor=east]{Happing Now} to (4,0.5);
– hpekristiansen
5 hours ago
2
Possible duplicate of TikZ Adding Text
– hpekristiansen
5 hours ago
@hpekristiansen: The possible duplicate question is about placing text at arbitrary positions, which would be used in this case as well (but would require specifying the coordinate twice). However, I think that that is different than this case as this is about placing text relative to a particular
draw
.– Peter Grill
5 hours ago