Overhead brace in tikz
I wish to use the overhead brace, bracing over the three items 8, 3, 11 from the bottom of 2.
Here is a template:
documentclass[11pt,urlcolor=blue, linkcolor=blue]{article}
usepackage{sseq}
usepackage[all,cmtip]{xy}
usepackage{tikz-cd}
usepackage{tikz}
usetikzlibrary{matrix}
usetikzlibrary{decorations.markings}
begin{document}
begin{figure}[!h]
begin{center}
begin{tikzpicture}[scale=0.8]
node at (0,5) {1};
node at (0,4.5) {2};
node at (0,4) {3};
draw[->] (0,3.5) -- (0,2.5);
node[right] at (0,3) {};
node at (0,2) {4};
node at (0,1.5) {};
node at (0,1) {5};
node at (0,0.5) {6};
draw[->] (-0.5,3.5) -- (-3.5,2.5);
node at (-2,3) {};
node at (-3.5,2) {7};
node at (-4,4) {8};
draw[->] (-4,3.5) -- (-4,2.5);
node[left] at (-4,3) {};
node at (-4.5,2) {9};
node at (-4,1.5) {};
node at (-4,1) {10};
node at (4,4) {11};
draw[->] (4,3.5) -- (4,2.5);
node[right] at (4,3) {};
node at (4,2) {12};
node at (4,1.5) {};
node at (4,1) {13};
end{tikzpicture}
end{center}
end{figure}
end{document}
tikz-pgf horizontal-alignment vertical-alignment braces overbrace
add a comment |
I wish to use the overhead brace, bracing over the three items 8, 3, 11 from the bottom of 2.
Here is a template:
documentclass[11pt,urlcolor=blue, linkcolor=blue]{article}
usepackage{sseq}
usepackage[all,cmtip]{xy}
usepackage{tikz-cd}
usepackage{tikz}
usetikzlibrary{matrix}
usetikzlibrary{decorations.markings}
begin{document}
begin{figure}[!h]
begin{center}
begin{tikzpicture}[scale=0.8]
node at (0,5) {1};
node at (0,4.5) {2};
node at (0,4) {3};
draw[->] (0,3.5) -- (0,2.5);
node[right] at (0,3) {};
node at (0,2) {4};
node at (0,1.5) {};
node at (0,1) {5};
node at (0,0.5) {6};
draw[->] (-0.5,3.5) -- (-3.5,2.5);
node at (-2,3) {};
node at (-3.5,2) {7};
node at (-4,4) {8};
draw[->] (-4,3.5) -- (-4,2.5);
node[left] at (-4,3) {};
node at (-4.5,2) {9};
node at (-4,1.5) {};
node at (-4,1) {10};
node at (4,4) {11};
draw[->] (4,3.5) -- (4,2.5);
node[right] at (4,3) {};
node at (4,2) {12};
node at (4,1.5) {};
node at (4,1) {13};
end{tikzpicture}
end{center}
end{figure}
end{document}
tikz-pgf horizontal-alignment vertical-alignment braces overbrace
add a comment |
I wish to use the overhead brace, bracing over the three items 8, 3, 11 from the bottom of 2.
Here is a template:
documentclass[11pt,urlcolor=blue, linkcolor=blue]{article}
usepackage{sseq}
usepackage[all,cmtip]{xy}
usepackage{tikz-cd}
usepackage{tikz}
usetikzlibrary{matrix}
usetikzlibrary{decorations.markings}
begin{document}
begin{figure}[!h]
begin{center}
begin{tikzpicture}[scale=0.8]
node at (0,5) {1};
node at (0,4.5) {2};
node at (0,4) {3};
draw[->] (0,3.5) -- (0,2.5);
node[right] at (0,3) {};
node at (0,2) {4};
node at (0,1.5) {};
node at (0,1) {5};
node at (0,0.5) {6};
draw[->] (-0.5,3.5) -- (-3.5,2.5);
node at (-2,3) {};
node at (-3.5,2) {7};
node at (-4,4) {8};
draw[->] (-4,3.5) -- (-4,2.5);
node[left] at (-4,3) {};
node at (-4.5,2) {9};
node at (-4,1.5) {};
node at (-4,1) {10};
node at (4,4) {11};
draw[->] (4,3.5) -- (4,2.5);
node[right] at (4,3) {};
node at (4,2) {12};
node at (4,1.5) {};
node at (4,1) {13};
end{tikzpicture}
end{center}
end{figure}
end{document}
tikz-pgf horizontal-alignment vertical-alignment braces overbrace
I wish to use the overhead brace, bracing over the three items 8, 3, 11 from the bottom of 2.
Here is a template:
documentclass[11pt,urlcolor=blue, linkcolor=blue]{article}
usepackage{sseq}
usepackage[all,cmtip]{xy}
usepackage{tikz-cd}
usepackage{tikz}
usetikzlibrary{matrix}
usetikzlibrary{decorations.markings}
begin{document}
begin{figure}[!h]
begin{center}
begin{tikzpicture}[scale=0.8]
node at (0,5) {1};
node at (0,4.5) {2};
node at (0,4) {3};
draw[->] (0,3.5) -- (0,2.5);
node[right] at (0,3) {};
node at (0,2) {4};
node at (0,1.5) {};
node at (0,1) {5};
node at (0,0.5) {6};
draw[->] (-0.5,3.5) -- (-3.5,2.5);
node at (-2,3) {};
node at (-3.5,2) {7};
node at (-4,4) {8};
draw[->] (-4,3.5) -- (-4,2.5);
node[left] at (-4,3) {};
node at (-4.5,2) {9};
node at (-4,1.5) {};
node at (-4,1) {10};
node at (4,4) {11};
draw[->] (4,3.5) -- (4,2.5);
node[right] at (4,3) {};
node at (4,2) {12};
node at (4,1.5) {};
node at (4,1) {13};
end{tikzpicture}
end{center}
end{figure}
end{document}
tikz-pgf horizontal-alignment vertical-alignment braces overbrace
tikz-pgf horizontal-alignment vertical-alignment braces overbrace
asked Dec 17 '18 at 4:50
wonderichwonderich
730618
730618
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I have not simplified your code which can be simplified in several different ways. I used the positioning
library (page 229 of the manual 3.0.1a) to position nodes 2
and 1
relative to node 3
.
I named a few nodes by their value.
To use the braces, I used the decorations.pathreplacing
library. (page 581 of manual 3.0.1a)
documentclass[11pt,urlcolor=blue, linkcolor=blue]{article}
% usepackage{sseq}
% usepackage[all,cmtip]{xy}
% usepackage{tikz-cd}
usepackage{tikz}
% usetikzlibrary{matrix}
% usetikzlibrary{decorations.markings}
usetikzlibrary{positioning,decorations.pathreplacing}
begin{document}
begin{figure}[!h]
begin{center}
begin{tikzpicture}[scale=0.8]
node at (0,4)(3) {3};
node[above =of 3] {1};
node[above=5mm of 3]{2};
node at (-4,4)(8) {8};
node at (4,4)(11) {11};
draw[decorate, decoration={brace,raise=2pt,amplitude=10pt}](8.north west)--(11.north east);
draw[->] (0,3.5) -- (0,2.5);
node[right] at (0,3) {};
node at (0,2) {4};
node at (0,1.5) {};
node at (0,1) {5};
node at (0,0.5) {6};
draw[->] (-0.5,3.5) -- (-3.5,2.5);
node at (-2,3) {};
node at (-3.5,2) {7};
draw[->] (-4,3.5) -- (-4,2.5);
node[left] at (-4,3) {};
node at (-4.5,2) {9};
node at (-4,1.5) {};
node at (-4,1) {10};
draw[->] (4,3.5) -- (4,2.5);
node[right] at (4,3) {};
node at (4,2) {12};
node at (4,1.5) {};
node at (4,1) {13};
end{tikzpicture}
end{center}
end{figure}
end{document}
that is basically what I wanted! thanks! (other ways you suggest to simplify can be posted as a separate answer. Please dont overwrite what you had!)
– wonderich
Dec 17 '18 at 5:12
You can use thegraphs
library in several different ways to make this graph (see page 257)
– AndréC
Dec 17 '18 at 5:14
2
@wonderich I suggest marking AndréC's answer as "Accepted" by clicking the tick below the up/down vote buttons, if the answer solves your problem.
– JouleV
Dec 17 '18 at 6:45
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%2f466157%2foverhead-brace-in-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
I have not simplified your code which can be simplified in several different ways. I used the positioning
library (page 229 of the manual 3.0.1a) to position nodes 2
and 1
relative to node 3
.
I named a few nodes by their value.
To use the braces, I used the decorations.pathreplacing
library. (page 581 of manual 3.0.1a)
documentclass[11pt,urlcolor=blue, linkcolor=blue]{article}
% usepackage{sseq}
% usepackage[all,cmtip]{xy}
% usepackage{tikz-cd}
usepackage{tikz}
% usetikzlibrary{matrix}
% usetikzlibrary{decorations.markings}
usetikzlibrary{positioning,decorations.pathreplacing}
begin{document}
begin{figure}[!h]
begin{center}
begin{tikzpicture}[scale=0.8]
node at (0,4)(3) {3};
node[above =of 3] {1};
node[above=5mm of 3]{2};
node at (-4,4)(8) {8};
node at (4,4)(11) {11};
draw[decorate, decoration={brace,raise=2pt,amplitude=10pt}](8.north west)--(11.north east);
draw[->] (0,3.5) -- (0,2.5);
node[right] at (0,3) {};
node at (0,2) {4};
node at (0,1.5) {};
node at (0,1) {5};
node at (0,0.5) {6};
draw[->] (-0.5,3.5) -- (-3.5,2.5);
node at (-2,3) {};
node at (-3.5,2) {7};
draw[->] (-4,3.5) -- (-4,2.5);
node[left] at (-4,3) {};
node at (-4.5,2) {9};
node at (-4,1.5) {};
node at (-4,1) {10};
draw[->] (4,3.5) -- (4,2.5);
node[right] at (4,3) {};
node at (4,2) {12};
node at (4,1.5) {};
node at (4,1) {13};
end{tikzpicture}
end{center}
end{figure}
end{document}
that is basically what I wanted! thanks! (other ways you suggest to simplify can be posted as a separate answer. Please dont overwrite what you had!)
– wonderich
Dec 17 '18 at 5:12
You can use thegraphs
library in several different ways to make this graph (see page 257)
– AndréC
Dec 17 '18 at 5:14
2
@wonderich I suggest marking AndréC's answer as "Accepted" by clicking the tick below the up/down vote buttons, if the answer solves your problem.
– JouleV
Dec 17 '18 at 6:45
add a comment |
I have not simplified your code which can be simplified in several different ways. I used the positioning
library (page 229 of the manual 3.0.1a) to position nodes 2
and 1
relative to node 3
.
I named a few nodes by their value.
To use the braces, I used the decorations.pathreplacing
library. (page 581 of manual 3.0.1a)
documentclass[11pt,urlcolor=blue, linkcolor=blue]{article}
% usepackage{sseq}
% usepackage[all,cmtip]{xy}
% usepackage{tikz-cd}
usepackage{tikz}
% usetikzlibrary{matrix}
% usetikzlibrary{decorations.markings}
usetikzlibrary{positioning,decorations.pathreplacing}
begin{document}
begin{figure}[!h]
begin{center}
begin{tikzpicture}[scale=0.8]
node at (0,4)(3) {3};
node[above =of 3] {1};
node[above=5mm of 3]{2};
node at (-4,4)(8) {8};
node at (4,4)(11) {11};
draw[decorate, decoration={brace,raise=2pt,amplitude=10pt}](8.north west)--(11.north east);
draw[->] (0,3.5) -- (0,2.5);
node[right] at (0,3) {};
node at (0,2) {4};
node at (0,1.5) {};
node at (0,1) {5};
node at (0,0.5) {6};
draw[->] (-0.5,3.5) -- (-3.5,2.5);
node at (-2,3) {};
node at (-3.5,2) {7};
draw[->] (-4,3.5) -- (-4,2.5);
node[left] at (-4,3) {};
node at (-4.5,2) {9};
node at (-4,1.5) {};
node at (-4,1) {10};
draw[->] (4,3.5) -- (4,2.5);
node[right] at (4,3) {};
node at (4,2) {12};
node at (4,1.5) {};
node at (4,1) {13};
end{tikzpicture}
end{center}
end{figure}
end{document}
that is basically what I wanted! thanks! (other ways you suggest to simplify can be posted as a separate answer. Please dont overwrite what you had!)
– wonderich
Dec 17 '18 at 5:12
You can use thegraphs
library in several different ways to make this graph (see page 257)
– AndréC
Dec 17 '18 at 5:14
2
@wonderich I suggest marking AndréC's answer as "Accepted" by clicking the tick below the up/down vote buttons, if the answer solves your problem.
– JouleV
Dec 17 '18 at 6:45
add a comment |
I have not simplified your code which can be simplified in several different ways. I used the positioning
library (page 229 of the manual 3.0.1a) to position nodes 2
and 1
relative to node 3
.
I named a few nodes by their value.
To use the braces, I used the decorations.pathreplacing
library. (page 581 of manual 3.0.1a)
documentclass[11pt,urlcolor=blue, linkcolor=blue]{article}
% usepackage{sseq}
% usepackage[all,cmtip]{xy}
% usepackage{tikz-cd}
usepackage{tikz}
% usetikzlibrary{matrix}
% usetikzlibrary{decorations.markings}
usetikzlibrary{positioning,decorations.pathreplacing}
begin{document}
begin{figure}[!h]
begin{center}
begin{tikzpicture}[scale=0.8]
node at (0,4)(3) {3};
node[above =of 3] {1};
node[above=5mm of 3]{2};
node at (-4,4)(8) {8};
node at (4,4)(11) {11};
draw[decorate, decoration={brace,raise=2pt,amplitude=10pt}](8.north west)--(11.north east);
draw[->] (0,3.5) -- (0,2.5);
node[right] at (0,3) {};
node at (0,2) {4};
node at (0,1.5) {};
node at (0,1) {5};
node at (0,0.5) {6};
draw[->] (-0.5,3.5) -- (-3.5,2.5);
node at (-2,3) {};
node at (-3.5,2) {7};
draw[->] (-4,3.5) -- (-4,2.5);
node[left] at (-4,3) {};
node at (-4.5,2) {9};
node at (-4,1.5) {};
node at (-4,1) {10};
draw[->] (4,3.5) -- (4,2.5);
node[right] at (4,3) {};
node at (4,2) {12};
node at (4,1.5) {};
node at (4,1) {13};
end{tikzpicture}
end{center}
end{figure}
end{document}
I have not simplified your code which can be simplified in several different ways. I used the positioning
library (page 229 of the manual 3.0.1a) to position nodes 2
and 1
relative to node 3
.
I named a few nodes by their value.
To use the braces, I used the decorations.pathreplacing
library. (page 581 of manual 3.0.1a)
documentclass[11pt,urlcolor=blue, linkcolor=blue]{article}
% usepackage{sseq}
% usepackage[all,cmtip]{xy}
% usepackage{tikz-cd}
usepackage{tikz}
% usetikzlibrary{matrix}
% usetikzlibrary{decorations.markings}
usetikzlibrary{positioning,decorations.pathreplacing}
begin{document}
begin{figure}[!h]
begin{center}
begin{tikzpicture}[scale=0.8]
node at (0,4)(3) {3};
node[above =of 3] {1};
node[above=5mm of 3]{2};
node at (-4,4)(8) {8};
node at (4,4)(11) {11};
draw[decorate, decoration={brace,raise=2pt,amplitude=10pt}](8.north west)--(11.north east);
draw[->] (0,3.5) -- (0,2.5);
node[right] at (0,3) {};
node at (0,2) {4};
node at (0,1.5) {};
node at (0,1) {5};
node at (0,0.5) {6};
draw[->] (-0.5,3.5) -- (-3.5,2.5);
node at (-2,3) {};
node at (-3.5,2) {7};
draw[->] (-4,3.5) -- (-4,2.5);
node[left] at (-4,3) {};
node at (-4.5,2) {9};
node at (-4,1.5) {};
node at (-4,1) {10};
draw[->] (4,3.5) -- (4,2.5);
node[right] at (4,3) {};
node at (4,2) {12};
node at (4,1.5) {};
node at (4,1) {13};
end{tikzpicture}
end{center}
end{figure}
end{document}
edited Dec 17 '18 at 5:12
answered Dec 17 '18 at 5:09
AndréCAndréC
8,47411446
8,47411446
that is basically what I wanted! thanks! (other ways you suggest to simplify can be posted as a separate answer. Please dont overwrite what you had!)
– wonderich
Dec 17 '18 at 5:12
You can use thegraphs
library in several different ways to make this graph (see page 257)
– AndréC
Dec 17 '18 at 5:14
2
@wonderich I suggest marking AndréC's answer as "Accepted" by clicking the tick below the up/down vote buttons, if the answer solves your problem.
– JouleV
Dec 17 '18 at 6:45
add a comment |
that is basically what I wanted! thanks! (other ways you suggest to simplify can be posted as a separate answer. Please dont overwrite what you had!)
– wonderich
Dec 17 '18 at 5:12
You can use thegraphs
library in several different ways to make this graph (see page 257)
– AndréC
Dec 17 '18 at 5:14
2
@wonderich I suggest marking AndréC's answer as "Accepted" by clicking the tick below the up/down vote buttons, if the answer solves your problem.
– JouleV
Dec 17 '18 at 6:45
that is basically what I wanted! thanks! (other ways you suggest to simplify can be posted as a separate answer. Please dont overwrite what you had!)
– wonderich
Dec 17 '18 at 5:12
that is basically what I wanted! thanks! (other ways you suggest to simplify can be posted as a separate answer. Please dont overwrite what you had!)
– wonderich
Dec 17 '18 at 5:12
You can use the
graphs
library in several different ways to make this graph (see page 257)– AndréC
Dec 17 '18 at 5:14
You can use the
graphs
library in several different ways to make this graph (see page 257)– AndréC
Dec 17 '18 at 5:14
2
2
@wonderich I suggest marking AndréC's answer as "Accepted" by clicking the tick below the up/down vote buttons, if the answer solves your problem.
– JouleV
Dec 17 '18 at 6:45
@wonderich I suggest marking AndréC's answer as "Accepted" by clicking the tick below the up/down vote buttons, if the answer solves your problem.
– JouleV
Dec 17 '18 at 6:45
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%2f466157%2foverhead-brace-in-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