How to change the direction of the arrow (tikz)
up vote
3
down vote
favorite
When I write this code:
% Preview source code
%% LyX 2.3.1-1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
pdfpageheightpaperheight
pdfpagewidthpaperwidth
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands
usepackage{tikz}
usetikzlibrary{automata}
makeatother
usepackage{polyglossia}
setdefaultlanguage{hebrew}
setotherlanguage{english}
begin{document}
begin{tikzpicture}
node[state] (1) {$1$};
path[->](1) edge [loop] ();
end{tikzpicture}
end{document}
What I get is this:
How I repace the direction of the arrow to left to right?
Thank you!
tikz-pgf tikz-arrows
add a comment |
up vote
3
down vote
favorite
When I write this code:
% Preview source code
%% LyX 2.3.1-1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
pdfpageheightpaperheight
pdfpagewidthpaperwidth
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands
usepackage{tikz}
usetikzlibrary{automata}
makeatother
usepackage{polyglossia}
setdefaultlanguage{hebrew}
setotherlanguage{english}
begin{document}
begin{tikzpicture}
node[state] (1) {$1$};
path[->](1) edge [loop] ();
end{tikzpicture}
end{document}
What I get is this:
How I repace the direction of the arrow to left to right?
Thank you!
tikz-pgf tikz-arrows
path(1) edge [in=60,out=120,loop] ();and please clean up your code, i.e. remove all unnecessary packages.
– marmot
Nov 15 at 17:15
I edit my code :-) It's still no the same... :-( I get other shape
– heblyx
Nov 15 at 17:20
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
When I write this code:
% Preview source code
%% LyX 2.3.1-1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
pdfpageheightpaperheight
pdfpagewidthpaperwidth
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands
usepackage{tikz}
usetikzlibrary{automata}
makeatother
usepackage{polyglossia}
setdefaultlanguage{hebrew}
setotherlanguage{english}
begin{document}
begin{tikzpicture}
node[state] (1) {$1$};
path[->](1) edge [loop] ();
end{tikzpicture}
end{document}
What I get is this:
How I repace the direction of the arrow to left to right?
Thank you!
tikz-pgf tikz-arrows
When I write this code:
% Preview source code
%% LyX 2.3.1-1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
pdfpageheightpaperheight
pdfpagewidthpaperwidth
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands
usepackage{tikz}
usetikzlibrary{automata}
makeatother
usepackage{polyglossia}
setdefaultlanguage{hebrew}
setotherlanguage{english}
begin{document}
begin{tikzpicture}
node[state] (1) {$1$};
path[->](1) edge [loop] ();
end{tikzpicture}
end{document}
What I get is this:
How I repace the direction of the arrow to left to right?
Thank you!
tikz-pgf tikz-arrows
tikz-pgf tikz-arrows
edited Nov 15 at 17:17
asked Nov 15 at 16:51
heblyx
776818
776818
path(1) edge [in=60,out=120,loop] ();and please clean up your code, i.e. remove all unnecessary packages.
– marmot
Nov 15 at 17:15
I edit my code :-) It's still no the same... :-( I get other shape
– heblyx
Nov 15 at 17:20
add a comment |
path(1) edge [in=60,out=120,loop] ();and please clean up your code, i.e. remove all unnecessary packages.
– marmot
Nov 15 at 17:15
I edit my code :-) It's still no the same... :-( I get other shape
– heblyx
Nov 15 at 17:20
path(1) edge [in=60,out=120,loop] (); and please clean up your code, i.e. remove all unnecessary packages.– marmot
Nov 15 at 17:15
path(1) edge [in=60,out=120,loop] (); and please clean up your code, i.e. remove all unnecessary packages.– marmot
Nov 15 at 17:15
I edit my code :-) It's still no the same... :-( I get other shape
– heblyx
Nov 15 at 17:20
I edit my code :-) It's still no the same... :-( I get other shape
– heblyx
Nov 15 at 17:20
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{automata}
begin{document}
begin{tikzpicture}
node[state] (1) {$1$};
path(1) edge [in=45,out=135,looseness=8,loop] ();
node[state] (2) at (2,0) {$2$};
path(2) edge [loop] ();
end{tikzpicture}
end{document}

You can do that it will be at the same shape (like at example)?
– heblyx
Nov 15 at 17:26
1
@heblyx Yes, one only needs to look up the definitions ofloopintikzlibrarytopaths.code.tex.
– marmot
Nov 15 at 17:36
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
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{automata}
begin{document}
begin{tikzpicture}
node[state] (1) {$1$};
path(1) edge [in=45,out=135,looseness=8,loop] ();
node[state] (2) at (2,0) {$2$};
path(2) edge [loop] ();
end{tikzpicture}
end{document}

You can do that it will be at the same shape (like at example)?
– heblyx
Nov 15 at 17:26
1
@heblyx Yes, one only needs to look up the definitions ofloopintikzlibrarytopaths.code.tex.
– marmot
Nov 15 at 17:36
add a comment |
up vote
3
down vote
accepted
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{automata}
begin{document}
begin{tikzpicture}
node[state] (1) {$1$};
path(1) edge [in=45,out=135,looseness=8,loop] ();
node[state] (2) at (2,0) {$2$};
path(2) edge [loop] ();
end{tikzpicture}
end{document}

You can do that it will be at the same shape (like at example)?
– heblyx
Nov 15 at 17:26
1
@heblyx Yes, one only needs to look up the definitions ofloopintikzlibrarytopaths.code.tex.
– marmot
Nov 15 at 17:36
add a comment |
up vote
3
down vote
accepted
up vote
3
down vote
accepted
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{automata}
begin{document}
begin{tikzpicture}
node[state] (1) {$1$};
path(1) edge [in=45,out=135,looseness=8,loop] ();
node[state] (2) at (2,0) {$2$};
path(2) edge [loop] ();
end{tikzpicture}
end{document}

documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{automata}
begin{document}
begin{tikzpicture}
node[state] (1) {$1$};
path(1) edge [in=45,out=135,looseness=8,loop] ();
node[state] (2) at (2,0) {$2$};
path(2) edge [loop] ();
end{tikzpicture}
end{document}

edited Nov 15 at 17:35
answered Nov 15 at 17:22
marmot
76.8k487161
76.8k487161
You can do that it will be at the same shape (like at example)?
– heblyx
Nov 15 at 17:26
1
@heblyx Yes, one only needs to look up the definitions ofloopintikzlibrarytopaths.code.tex.
– marmot
Nov 15 at 17:36
add a comment |
You can do that it will be at the same shape (like at example)?
– heblyx
Nov 15 at 17:26
1
@heblyx Yes, one only needs to look up the definitions ofloopintikzlibrarytopaths.code.tex.
– marmot
Nov 15 at 17:36
You can do that it will be at the same shape (like at example)?
– heblyx
Nov 15 at 17:26
You can do that it will be at the same shape (like at example)?
– heblyx
Nov 15 at 17:26
1
1
@heblyx Yes, one only needs to look up the definitions of
loop in tikzlibrarytopaths.code.tex.– marmot
Nov 15 at 17:36
@heblyx Yes, one only needs to look up the definitions of
loop in tikzlibrarytopaths.code.tex.– marmot
Nov 15 at 17:36
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%2f460164%2fhow-to-change-the-direction-of-the-arrow-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
path(1) edge [in=60,out=120,loop] ();and please clean up your code, i.e. remove all unnecessary packages.– marmot
Nov 15 at 17:15
I edit my code :-) It's still no the same... :-( I get other shape
– heblyx
Nov 15 at 17:20