Tikz oriented simplex
I want to draw a triangle with orientation but I am not able to get it done. Please help me out.
I also want to insert a circular arrow in the center.
documentclass{standalone}
usepackage{pgf,tikz,pgfplots,bm,tikz-cd}
pgfplotsset{compat=1.15}
usepackage{mathrsfs}
usetikzlibrary{arrows,shapes.geometric,decorations.markings, calc, fadings, decorations.pathreplacing, patterns, decorations.pathmorphing, positioning}
newcommand{midarrow}{tikz draw[-triangle 90] (0,0) -- +(.2a5,0);}
pagestyle{empty}
begin{document}
begin{tikzpicture}
draw [black,line width=1.5pt] (0,0) -- (1.5,2.6) -- (3,0) -- cycle;
draw [thick] (0,0) -- node {midarrow} (3,0);
draw [thick] (1.5,2.6) -- node {midarrow} (3,0);
draw [thick] (1.5,2.6) -- node {midarrow} (0,0);
filldraw[black] (0,0) circle (3 pt);
filldraw[black] (3,0) circle (3 pt);
filldraw[black] (1.5,2.6) circle (3 pt);
node [below left] at (0,0) {textbf{a}};
node [above] at (1.5,2.6) {textbf{b}};
node [below right] at (3,0) {textbf{c}};
end{tikzpicture}
end{document}
tikz-pgf tikz-arrows
add a comment |
I want to draw a triangle with orientation but I am not able to get it done. Please help me out.
I also want to insert a circular arrow in the center.
documentclass{standalone}
usepackage{pgf,tikz,pgfplots,bm,tikz-cd}
pgfplotsset{compat=1.15}
usepackage{mathrsfs}
usetikzlibrary{arrows,shapes.geometric,decorations.markings, calc, fadings, decorations.pathreplacing, patterns, decorations.pathmorphing, positioning}
newcommand{midarrow}{tikz draw[-triangle 90] (0,0) -- +(.2a5,0);}
pagestyle{empty}
begin{document}
begin{tikzpicture}
draw [black,line width=1.5pt] (0,0) -- (1.5,2.6) -- (3,0) -- cycle;
draw [thick] (0,0) -- node {midarrow} (3,0);
draw [thick] (1.5,2.6) -- node {midarrow} (3,0);
draw [thick] (1.5,2.6) -- node {midarrow} (0,0);
filldraw[black] (0,0) circle (3 pt);
filldraw[black] (3,0) circle (3 pt);
filldraw[black] (1.5,2.6) circle (3 pt);
node [below left] at (0,0) {textbf{a}};
node [above] at (1.5,2.6) {textbf{b}};
node [below right] at (3,0) {textbf{c}};
end{tikzpicture}
end{document}
tikz-pgf tikz-arrows
add a comment |
I want to draw a triangle with orientation but I am not able to get it done. Please help me out.
I also want to insert a circular arrow in the center.
documentclass{standalone}
usepackage{pgf,tikz,pgfplots,bm,tikz-cd}
pgfplotsset{compat=1.15}
usepackage{mathrsfs}
usetikzlibrary{arrows,shapes.geometric,decorations.markings, calc, fadings, decorations.pathreplacing, patterns, decorations.pathmorphing, positioning}
newcommand{midarrow}{tikz draw[-triangle 90] (0,0) -- +(.2a5,0);}
pagestyle{empty}
begin{document}
begin{tikzpicture}
draw [black,line width=1.5pt] (0,0) -- (1.5,2.6) -- (3,0) -- cycle;
draw [thick] (0,0) -- node {midarrow} (3,0);
draw [thick] (1.5,2.6) -- node {midarrow} (3,0);
draw [thick] (1.5,2.6) -- node {midarrow} (0,0);
filldraw[black] (0,0) circle (3 pt);
filldraw[black] (3,0) circle (3 pt);
filldraw[black] (1.5,2.6) circle (3 pt);
node [below left] at (0,0) {textbf{a}};
node [above] at (1.5,2.6) {textbf{b}};
node [below right] at (3,0) {textbf{c}};
end{tikzpicture}
end{document}
tikz-pgf tikz-arrows
I want to draw a triangle with orientation but I am not able to get it done. Please help me out.
I also want to insert a circular arrow in the center.
documentclass{standalone}
usepackage{pgf,tikz,pgfplots,bm,tikz-cd}
pgfplotsset{compat=1.15}
usepackage{mathrsfs}
usetikzlibrary{arrows,shapes.geometric,decorations.markings, calc, fadings, decorations.pathreplacing, patterns, decorations.pathmorphing, positioning}
newcommand{midarrow}{tikz draw[-triangle 90] (0,0) -- +(.2a5,0);}
pagestyle{empty}
begin{document}
begin{tikzpicture}
draw [black,line width=1.5pt] (0,0) -- (1.5,2.6) -- (3,0) -- cycle;
draw [thick] (0,0) -- node {midarrow} (3,0);
draw [thick] (1.5,2.6) -- node {midarrow} (3,0);
draw [thick] (1.5,2.6) -- node {midarrow} (0,0);
filldraw[black] (0,0) circle (3 pt);
filldraw[black] (3,0) circle (3 pt);
filldraw[black] (1.5,2.6) circle (3 pt);
node [below left] at (0,0) {textbf{a}};
node [above] at (1.5,2.6) {textbf{b}};
node [below right] at (3,0) {textbf{c}};
end{tikzpicture}
end{document}
tikz-pgf tikz-arrows
tikz-pgf tikz-arrows
asked 3 hours ago
user473334user473334
395
395
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Something like this? The arrows in the middle are taken from this answer and the /.list
key allows one to draw several of those, and using nodes and labels allows us to pack everything into one path. I also removed packages and libraries that are not needed for this triangle.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{decorations.markings,arrows.meta,bending}
tikzset{->-/.style={decoration={markings, % https://tex.stackexchange.com/a/39282/121799
mark=at position #1 with {arrow[line width=2pt]{>}}},postaction={decorate}}}
pagestyle{empty}
begin{document}
begin{tikzpicture}[bullet/.style={circle,fill,inner
sep=3pt,label={[font=bfseries]#1}},>=latex]
draw [black,line width=1.5pt,->-/.list={1/6,1/2,5/6}]
(210:3) node[bullet={below left:a}] (a) {}
-- (90:3) node[bullet={above:b}] (b) {}
-- (-30:3) node[bullet={below right:c}] (c) {}
-- cycle;
draw[line width=1.5pt,-{Latex[bend]}] (240:0.5) arc(240:-60:0.5);
end{tikzpicture}
end{document}
Can the arrows be bigger? And what about the circular arrow?
– user473334
3 hours ago
@user473334 Sure. I updated the answer. If you want a full circle arrow use e.g.draw[line width=1.5pt,-{Latex[bend]}] (270:0.5) arc(270:-120:0.5);
– marmot
3 hours ago
1
+1 Cute use of list:)
– Andrew
3 hours ago
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
});
}
});
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%2f488171%2ftikz-oriented-simplex%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
Something like this? The arrows in the middle are taken from this answer and the /.list
key allows one to draw several of those, and using nodes and labels allows us to pack everything into one path. I also removed packages and libraries that are not needed for this triangle.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{decorations.markings,arrows.meta,bending}
tikzset{->-/.style={decoration={markings, % https://tex.stackexchange.com/a/39282/121799
mark=at position #1 with {arrow[line width=2pt]{>}}},postaction={decorate}}}
pagestyle{empty}
begin{document}
begin{tikzpicture}[bullet/.style={circle,fill,inner
sep=3pt,label={[font=bfseries]#1}},>=latex]
draw [black,line width=1.5pt,->-/.list={1/6,1/2,5/6}]
(210:3) node[bullet={below left:a}] (a) {}
-- (90:3) node[bullet={above:b}] (b) {}
-- (-30:3) node[bullet={below right:c}] (c) {}
-- cycle;
draw[line width=1.5pt,-{Latex[bend]}] (240:0.5) arc(240:-60:0.5);
end{tikzpicture}
end{document}
Can the arrows be bigger? And what about the circular arrow?
– user473334
3 hours ago
@user473334 Sure. I updated the answer. If you want a full circle arrow use e.g.draw[line width=1.5pt,-{Latex[bend]}] (270:0.5) arc(270:-120:0.5);
– marmot
3 hours ago
1
+1 Cute use of list:)
– Andrew
3 hours ago
add a comment |
Something like this? The arrows in the middle are taken from this answer and the /.list
key allows one to draw several of those, and using nodes and labels allows us to pack everything into one path. I also removed packages and libraries that are not needed for this triangle.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{decorations.markings,arrows.meta,bending}
tikzset{->-/.style={decoration={markings, % https://tex.stackexchange.com/a/39282/121799
mark=at position #1 with {arrow[line width=2pt]{>}}},postaction={decorate}}}
pagestyle{empty}
begin{document}
begin{tikzpicture}[bullet/.style={circle,fill,inner
sep=3pt,label={[font=bfseries]#1}},>=latex]
draw [black,line width=1.5pt,->-/.list={1/6,1/2,5/6}]
(210:3) node[bullet={below left:a}] (a) {}
-- (90:3) node[bullet={above:b}] (b) {}
-- (-30:3) node[bullet={below right:c}] (c) {}
-- cycle;
draw[line width=1.5pt,-{Latex[bend]}] (240:0.5) arc(240:-60:0.5);
end{tikzpicture}
end{document}
Can the arrows be bigger? And what about the circular arrow?
– user473334
3 hours ago
@user473334 Sure. I updated the answer. If you want a full circle arrow use e.g.draw[line width=1.5pt,-{Latex[bend]}] (270:0.5) arc(270:-120:0.5);
– marmot
3 hours ago
1
+1 Cute use of list:)
– Andrew
3 hours ago
add a comment |
Something like this? The arrows in the middle are taken from this answer and the /.list
key allows one to draw several of those, and using nodes and labels allows us to pack everything into one path. I also removed packages and libraries that are not needed for this triangle.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{decorations.markings,arrows.meta,bending}
tikzset{->-/.style={decoration={markings, % https://tex.stackexchange.com/a/39282/121799
mark=at position #1 with {arrow[line width=2pt]{>}}},postaction={decorate}}}
pagestyle{empty}
begin{document}
begin{tikzpicture}[bullet/.style={circle,fill,inner
sep=3pt,label={[font=bfseries]#1}},>=latex]
draw [black,line width=1.5pt,->-/.list={1/6,1/2,5/6}]
(210:3) node[bullet={below left:a}] (a) {}
-- (90:3) node[bullet={above:b}] (b) {}
-- (-30:3) node[bullet={below right:c}] (c) {}
-- cycle;
draw[line width=1.5pt,-{Latex[bend]}] (240:0.5) arc(240:-60:0.5);
end{tikzpicture}
end{document}
Something like this? The arrows in the middle are taken from this answer and the /.list
key allows one to draw several of those, and using nodes and labels allows us to pack everything into one path. I also removed packages and libraries that are not needed for this triangle.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{decorations.markings,arrows.meta,bending}
tikzset{->-/.style={decoration={markings, % https://tex.stackexchange.com/a/39282/121799
mark=at position #1 with {arrow[line width=2pt]{>}}},postaction={decorate}}}
pagestyle{empty}
begin{document}
begin{tikzpicture}[bullet/.style={circle,fill,inner
sep=3pt,label={[font=bfseries]#1}},>=latex]
draw [black,line width=1.5pt,->-/.list={1/6,1/2,5/6}]
(210:3) node[bullet={below left:a}] (a) {}
-- (90:3) node[bullet={above:b}] (b) {}
-- (-30:3) node[bullet={below right:c}] (c) {}
-- cycle;
draw[line width=1.5pt,-{Latex[bend]}] (240:0.5) arc(240:-60:0.5);
end{tikzpicture}
end{document}
edited 3 hours ago
answered 3 hours ago
marmotmarmot
122k6160300
122k6160300
Can the arrows be bigger? And what about the circular arrow?
– user473334
3 hours ago
@user473334 Sure. I updated the answer. If you want a full circle arrow use e.g.draw[line width=1.5pt,-{Latex[bend]}] (270:0.5) arc(270:-120:0.5);
– marmot
3 hours ago
1
+1 Cute use of list:)
– Andrew
3 hours ago
add a comment |
Can the arrows be bigger? And what about the circular arrow?
– user473334
3 hours ago
@user473334 Sure. I updated the answer. If you want a full circle arrow use e.g.draw[line width=1.5pt,-{Latex[bend]}] (270:0.5) arc(270:-120:0.5);
– marmot
3 hours ago
1
+1 Cute use of list:)
– Andrew
3 hours ago
Can the arrows be bigger? And what about the circular arrow?
– user473334
3 hours ago
Can the arrows be bigger? And what about the circular arrow?
– user473334
3 hours ago
@user473334 Sure. I updated the answer. If you want a full circle arrow use e.g.
draw[line width=1.5pt,-{Latex[bend]}] (270:0.5) arc(270:-120:0.5);
– marmot
3 hours ago
@user473334 Sure. I updated the answer. If you want a full circle arrow use e.g.
draw[line width=1.5pt,-{Latex[bend]}] (270:0.5) arc(270:-120:0.5);
– marmot
3 hours ago
1
1
+1 Cute use of list:)
– Andrew
3 hours ago
+1 Cute use of list:)
– Andrew
3 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.
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%2f488171%2ftikz-oriented-simplex%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