Placing a symbol with Tikz
I would like to use the tree symbol from the tikzsymbols
package. I am using the Summertree[3.38];
function in the Tikz environement (the 3.38 is the scale making the heigh of the tree equal to 1). But Tikz places the tree in a funny way and using Summertree[3.38];
, the basis of the tree is in x=0.58 and in y=0...
I would like to creat a arbre
command, so that my tree would have a heigh H, and its basis is at (x0,y0). Hence, in the preamble I wrote :
newcommand{arbre}[4] %x0 y0 H alpha
{
begin{scope}[rotate=#4,xshift=#1-0.587*#3,yshift=#2]
Summertree[3.38*#3];
end{scope}
}
In the Tikz environement I write arbre{0}{0}{1}{0};
wich gives exactly the smae output as Summertree[3.38];
, ignoring the shifts I requested. He the result of my plot (the bullet is at (0,0) where I want my tree to be planted.. I mean plotted).
tikz-pgf tikz-trees
add a comment |
I would like to use the tree symbol from the tikzsymbols
package. I am using the Summertree[3.38];
function in the Tikz environement (the 3.38 is the scale making the heigh of the tree equal to 1). But Tikz places the tree in a funny way and using Summertree[3.38];
, the basis of the tree is in x=0.58 and in y=0...
I would like to creat a arbre
command, so that my tree would have a heigh H, and its basis is at (x0,y0). Hence, in the preamble I wrote :
newcommand{arbre}[4] %x0 y0 H alpha
{
begin{scope}[rotate=#4,xshift=#1-0.587*#3,yshift=#2]
Summertree[3.38*#3];
end{scope}
}
In the Tikz environement I write arbre{0}{0}{1}{0};
wich gives exactly the smae output as Summertree[3.38];
, ignoring the shifts I requested. He the result of my plot (the bullet is at (0,0) where I want my tree to be planted.. I mean plotted).
tikz-pgf tikz-trees
add a comment |
I would like to use the tree symbol from the tikzsymbols
package. I am using the Summertree[3.38];
function in the Tikz environement (the 3.38 is the scale making the heigh of the tree equal to 1). But Tikz places the tree in a funny way and using Summertree[3.38];
, the basis of the tree is in x=0.58 and in y=0...
I would like to creat a arbre
command, so that my tree would have a heigh H, and its basis is at (x0,y0). Hence, in the preamble I wrote :
newcommand{arbre}[4] %x0 y0 H alpha
{
begin{scope}[rotate=#4,xshift=#1-0.587*#3,yshift=#2]
Summertree[3.38*#3];
end{scope}
}
In the Tikz environement I write arbre{0}{0}{1}{0};
wich gives exactly the smae output as Summertree[3.38];
, ignoring the shifts I requested. He the result of my plot (the bullet is at (0,0) where I want my tree to be planted.. I mean plotted).
tikz-pgf tikz-trees
I would like to use the tree symbol from the tikzsymbols
package. I am using the Summertree[3.38];
function in the Tikz environement (the 3.38 is the scale making the heigh of the tree equal to 1). But Tikz places the tree in a funny way and using Summertree[3.38];
, the basis of the tree is in x=0.58 and in y=0...
I would like to creat a arbre
command, so that my tree would have a heigh H, and its basis is at (x0,y0). Hence, in the preamble I wrote :
newcommand{arbre}[4] %x0 y0 H alpha
{
begin{scope}[rotate=#4,xshift=#1-0.587*#3,yshift=#2]
Summertree[3.38*#3];
end{scope}
}
In the Tikz environement I write arbre{0}{0}{1}{0};
wich gives exactly the smae output as Summertree[3.38];
, ignoring the shifts I requested. He the result of my plot (the bullet is at (0,0) where I want my tree to be planted.. I mean plotted).
tikz-pgf tikz-trees
tikz-pgf tikz-trees
edited 11 hours ago
JouleV
10.3k22558
10.3k22558
asked 11 hours ago
JohnJohn
453
453
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Summertree
actually output something like a character, so to use it properly in TikZ, you should use node
.
documentclass{standalone}
usepackage{tikz}
usepackage{tikzsymbols}
begin{document}
begin{tikzpicture}
draw[gray,help lines] (-2,-2) grid (2,2);
path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
end{tikzpicture}
end{document}
Starting from this, we can easily have your command arbre
as follows
documentclass{standalone}
usepackage{tikz}
usepackage{tikzsymbols}
newcommandarbre[4]{%
path (#1,#2) node[rotate=#4,inner sep=0pt,above] {Summertree[3.38*#3]};}
begin{document}
begin{tikzpicture}
draw[gray,help lines] (-2,-2) grid (2,2);
%path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
arbre{1}{-1}{1}{20}
end{tikzpicture}
end{document}
Thank you very much for your help. I search for the tree documentation but I couldn't find an example of use, so I just put I like that... But another question, why are you using path ?
– John
6 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%2f483013%2fplacing-a-symbol-with-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
Summertree
actually output something like a character, so to use it properly in TikZ, you should use node
.
documentclass{standalone}
usepackage{tikz}
usepackage{tikzsymbols}
begin{document}
begin{tikzpicture}
draw[gray,help lines] (-2,-2) grid (2,2);
path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
end{tikzpicture}
end{document}
Starting from this, we can easily have your command arbre
as follows
documentclass{standalone}
usepackage{tikz}
usepackage{tikzsymbols}
newcommandarbre[4]{%
path (#1,#2) node[rotate=#4,inner sep=0pt,above] {Summertree[3.38*#3]};}
begin{document}
begin{tikzpicture}
draw[gray,help lines] (-2,-2) grid (2,2);
%path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
arbre{1}{-1}{1}{20}
end{tikzpicture}
end{document}
Thank you very much for your help. I search for the tree documentation but I couldn't find an example of use, so I just put I like that... But another question, why are you using path ?
– John
6 hours ago
add a comment |
Summertree
actually output something like a character, so to use it properly in TikZ, you should use node
.
documentclass{standalone}
usepackage{tikz}
usepackage{tikzsymbols}
begin{document}
begin{tikzpicture}
draw[gray,help lines] (-2,-2) grid (2,2);
path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
end{tikzpicture}
end{document}
Starting from this, we can easily have your command arbre
as follows
documentclass{standalone}
usepackage{tikz}
usepackage{tikzsymbols}
newcommandarbre[4]{%
path (#1,#2) node[rotate=#4,inner sep=0pt,above] {Summertree[3.38*#3]};}
begin{document}
begin{tikzpicture}
draw[gray,help lines] (-2,-2) grid (2,2);
%path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
arbre{1}{-1}{1}{20}
end{tikzpicture}
end{document}
Thank you very much for your help. I search for the tree documentation but I couldn't find an example of use, so I just put I like that... But another question, why are you using path ?
– John
6 hours ago
add a comment |
Summertree
actually output something like a character, so to use it properly in TikZ, you should use node
.
documentclass{standalone}
usepackage{tikz}
usepackage{tikzsymbols}
begin{document}
begin{tikzpicture}
draw[gray,help lines] (-2,-2) grid (2,2);
path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
end{tikzpicture}
end{document}
Starting from this, we can easily have your command arbre
as follows
documentclass{standalone}
usepackage{tikz}
usepackage{tikzsymbols}
newcommandarbre[4]{%
path (#1,#2) node[rotate=#4,inner sep=0pt,above] {Summertree[3.38*#3]};}
begin{document}
begin{tikzpicture}
draw[gray,help lines] (-2,-2) grid (2,2);
%path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
arbre{1}{-1}{1}{20}
end{tikzpicture}
end{document}
Summertree
actually output something like a character, so to use it properly in TikZ, you should use node
.
documentclass{standalone}
usepackage{tikz}
usepackage{tikzsymbols}
begin{document}
begin{tikzpicture}
draw[gray,help lines] (-2,-2) grid (2,2);
path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
end{tikzpicture}
end{document}
Starting from this, we can easily have your command arbre
as follows
documentclass{standalone}
usepackage{tikz}
usepackage{tikzsymbols}
newcommandarbre[4]{%
path (#1,#2) node[rotate=#4,inner sep=0pt,above] {Summertree[3.38*#3]};}
begin{document}
begin{tikzpicture}
draw[gray,help lines] (-2,-2) grid (2,2);
%path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
arbre{1}{-1}{1}{20}
end{tikzpicture}
end{document}
answered 10 hours ago
JouleVJouleV
10.3k22558
10.3k22558
Thank you very much for your help. I search for the tree documentation but I couldn't find an example of use, so I just put I like that... But another question, why are you using path ?
– John
6 hours ago
add a comment |
Thank you very much for your help. I search for the tree documentation but I couldn't find an example of use, so I just put I like that... But another question, why are you using path ?
– John
6 hours ago
Thank you very much for your help. I search for the tree documentation but I couldn't find an example of use, so I just put I like that... But another question, why are you using path ?
– John
6 hours ago
Thank you very much for your help. I search for the tree documentation but I couldn't find an example of use, so I just put I like that... But another question, why are you using path ?
– John
6 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%2f483013%2fplacing-a-symbol-with-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