How to change the direction of the arrow (tikz)











up vote
3
down vote

favorite
1












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:
enter image description here



How I repace the direction of the arrow to left to right?



Thank you!










share|improve this question
























  • 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















up vote
3
down vote

favorite
1












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:
enter image description here



How I repace the direction of the arrow to left to right?



Thank you!










share|improve this question
























  • 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













up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





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:
enter image description here



How I repace the direction of the arrow to left to right?



Thank you!










share|improve this question















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:
enter image description here



How I repace the direction of the arrow to left to right?



Thank you!







tikz-pgf tikz-arrows






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • 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










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}


enter image description here






share|improve this answer























  • 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 of loop in tikzlibrarytopaths.code.tex.
    – marmot
    Nov 15 at 17:36











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',
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
});


}
});














 

draft saved


draft discarded


















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

























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}


enter image description here






share|improve this answer























  • 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 of loop in tikzlibrarytopaths.code.tex.
    – marmot
    Nov 15 at 17:36















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}


enter image description here






share|improve this answer























  • 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 of loop in tikzlibrarytopaths.code.tex.
    – marmot
    Nov 15 at 17:36













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}


enter image description here






share|improve this answer














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}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








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 of loop in tikzlibrarytopaths.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






  • 1




    @heblyx Yes, one only needs to look up the definitions of loop in tikzlibrarytopaths.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


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?