TikZ: Transitioning from snakes to decorations
up vote
4
down vote
favorite
I'm trying to change a tikz-picture so it does not show a warning upon compilation.
Minimal working example:
documentclass[tikz,border=10pt]{standalone}
usetikzlibrary{snakes}
%usetikzlibrary{decorations.pathmorphing}
begin{document}
begin{tikzpicture}
node[circle,draw] (S) at (0,0) {S};
draw[snake=expanding waves,segment angle=25] (S) -- (3,3);
%draw[decorate,decoration={expanding waves,angle=25}] (S) -- (3,3);
end{tikzpicture}
end{document}
However, when I remove the snakes-code and uncomment the decoration-based code, i get an error saying
Package pgfkeys Error: I do not know the key '/pgf/decoration/pgfkeyscurrentname ' and I am going to ignore it. Perhaps you misspelled it.
Now I checked both the examples from the manual as well as several related answers on this SE, none of which seemed to work for me.
In this question, the only difference is that the decoration is used on a path
command instead of a draw
. I tried that, and it didn't work for me.
Another answer suggests adding the correct sublibrary, which I would identify as decorations.pathmorphing
, and trying this did not help either.
Is there a general way (e.g. reading documentation) to tell which tikz-library or sublibrary has to be added to the document?
I find this problem rather frustrating, since the code that works for me without a visible downside (although I know that the snakes library is deprecated), and the supposedly optimal example code does not work at all. How can I solve this problem?
I noticed another similar question was closed for being too localized. If this should be the case for my question as well, how can I get help for this instead?
tikz-pgf pgfkeys
add a comment |
up vote
4
down vote
favorite
I'm trying to change a tikz-picture so it does not show a warning upon compilation.
Minimal working example:
documentclass[tikz,border=10pt]{standalone}
usetikzlibrary{snakes}
%usetikzlibrary{decorations.pathmorphing}
begin{document}
begin{tikzpicture}
node[circle,draw] (S) at (0,0) {S};
draw[snake=expanding waves,segment angle=25] (S) -- (3,3);
%draw[decorate,decoration={expanding waves,angle=25}] (S) -- (3,3);
end{tikzpicture}
end{document}
However, when I remove the snakes-code and uncomment the decoration-based code, i get an error saying
Package pgfkeys Error: I do not know the key '/pgf/decoration/pgfkeyscurrentname ' and I am going to ignore it. Perhaps you misspelled it.
Now I checked both the examples from the manual as well as several related answers on this SE, none of which seemed to work for me.
In this question, the only difference is that the decoration is used on a path
command instead of a draw
. I tried that, and it didn't work for me.
Another answer suggests adding the correct sublibrary, which I would identify as decorations.pathmorphing
, and trying this did not help either.
Is there a general way (e.g. reading documentation) to tell which tikz-library or sublibrary has to be added to the document?
I find this problem rather frustrating, since the code that works for me without a visible downside (although I know that the snakes library is deprecated), and the supposedly optimal example code does not work at all. How can I solve this problem?
I noticed another similar question was closed for being too localized. If this should be the case for my question as well, how can I get help for this instead?
tikz-pgf pgfkeys
add a comment |
up vote
4
down vote
favorite
up vote
4
down vote
favorite
I'm trying to change a tikz-picture so it does not show a warning upon compilation.
Minimal working example:
documentclass[tikz,border=10pt]{standalone}
usetikzlibrary{snakes}
%usetikzlibrary{decorations.pathmorphing}
begin{document}
begin{tikzpicture}
node[circle,draw] (S) at (0,0) {S};
draw[snake=expanding waves,segment angle=25] (S) -- (3,3);
%draw[decorate,decoration={expanding waves,angle=25}] (S) -- (3,3);
end{tikzpicture}
end{document}
However, when I remove the snakes-code and uncomment the decoration-based code, i get an error saying
Package pgfkeys Error: I do not know the key '/pgf/decoration/pgfkeyscurrentname ' and I am going to ignore it. Perhaps you misspelled it.
Now I checked both the examples from the manual as well as several related answers on this SE, none of which seemed to work for me.
In this question, the only difference is that the decoration is used on a path
command instead of a draw
. I tried that, and it didn't work for me.
Another answer suggests adding the correct sublibrary, which I would identify as decorations.pathmorphing
, and trying this did not help either.
Is there a general way (e.g. reading documentation) to tell which tikz-library or sublibrary has to be added to the document?
I find this problem rather frustrating, since the code that works for me without a visible downside (although I know that the snakes library is deprecated), and the supposedly optimal example code does not work at all. How can I solve this problem?
I noticed another similar question was closed for being too localized. If this should be the case for my question as well, how can I get help for this instead?
tikz-pgf pgfkeys
I'm trying to change a tikz-picture so it does not show a warning upon compilation.
Minimal working example:
documentclass[tikz,border=10pt]{standalone}
usetikzlibrary{snakes}
%usetikzlibrary{decorations.pathmorphing}
begin{document}
begin{tikzpicture}
node[circle,draw] (S) at (0,0) {S};
draw[snake=expanding waves,segment angle=25] (S) -- (3,3);
%draw[decorate,decoration={expanding waves,angle=25}] (S) -- (3,3);
end{tikzpicture}
end{document}
However, when I remove the snakes-code and uncomment the decoration-based code, i get an error saying
Package pgfkeys Error: I do not know the key '/pgf/decoration/pgfkeyscurrentname ' and I am going to ignore it. Perhaps you misspelled it.
Now I checked both the examples from the manual as well as several related answers on this SE, none of which seemed to work for me.
In this question, the only difference is that the decoration is used on a path
command instead of a draw
. I tried that, and it didn't work for me.
Another answer suggests adding the correct sublibrary, which I would identify as decorations.pathmorphing
, and trying this did not help either.
Is there a general way (e.g. reading documentation) to tell which tikz-library or sublibrary has to be added to the document?
I find this problem rather frustrating, since the code that works for me without a visible downside (although I know that the snakes library is deprecated), and the supposedly optimal example code does not work at all. How can I solve this problem?
I noticed another similar question was closed for being too localized. If this should be the case for my question as well, how can I get help for this instead?
tikz-pgf pgfkeys
tikz-pgf pgfkeys
asked 2 hours ago
Jonas Schwarz
1528
1528
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
5
down vote
accepted
The expanding waves are in the pathreplacing library, not pathmorphing, see page 581 of the documentation.
documentclass[tikz,border=10pt]{standalone}
usetikzlibrary{decorations.pathreplacing}
begin{document}
begin{tikzpicture}
node[circle,draw] (S) at (0,0) {S};
draw[decoration={expanding waves,angle=25},decorate] (S) -- (3,3);
end{tikzpicture}
end{document}
Cool, I did not see that! Thank you for answering so fast!
– Jonas Schwarz
1 hour 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',
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%2f466075%2ftikz-transitioning-from-snakes-to-decorations%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
5
down vote
accepted
The expanding waves are in the pathreplacing library, not pathmorphing, see page 581 of the documentation.
documentclass[tikz,border=10pt]{standalone}
usetikzlibrary{decorations.pathreplacing}
begin{document}
begin{tikzpicture}
node[circle,draw] (S) at (0,0) {S};
draw[decoration={expanding waves,angle=25},decorate] (S) -- (3,3);
end{tikzpicture}
end{document}
Cool, I did not see that! Thank you for answering so fast!
– Jonas Schwarz
1 hour ago
add a comment |
up vote
5
down vote
accepted
The expanding waves are in the pathreplacing library, not pathmorphing, see page 581 of the documentation.
documentclass[tikz,border=10pt]{standalone}
usetikzlibrary{decorations.pathreplacing}
begin{document}
begin{tikzpicture}
node[circle,draw] (S) at (0,0) {S};
draw[decoration={expanding waves,angle=25},decorate] (S) -- (3,3);
end{tikzpicture}
end{document}
Cool, I did not see that! Thank you for answering so fast!
– Jonas Schwarz
1 hour ago
add a comment |
up vote
5
down vote
accepted
up vote
5
down vote
accepted
The expanding waves are in the pathreplacing library, not pathmorphing, see page 581 of the documentation.
documentclass[tikz,border=10pt]{standalone}
usetikzlibrary{decorations.pathreplacing}
begin{document}
begin{tikzpicture}
node[circle,draw] (S) at (0,0) {S};
draw[decoration={expanding waves,angle=25},decorate] (S) -- (3,3);
end{tikzpicture}
end{document}
The expanding waves are in the pathreplacing library, not pathmorphing, see page 581 of the documentation.
documentclass[tikz,border=10pt]{standalone}
usetikzlibrary{decorations.pathreplacing}
begin{document}
begin{tikzpicture}
node[circle,draw] (S) at (0,0) {S};
draw[decoration={expanding waves,angle=25},decorate] (S) -- (3,3);
end{tikzpicture}
end{document}
answered 2 hours ago
Ulrike Fischer
185k7289666
185k7289666
Cool, I did not see that! Thank you for answering so fast!
– Jonas Schwarz
1 hour ago
add a comment |
Cool, I did not see that! Thank you for answering so fast!
– Jonas Schwarz
1 hour ago
Cool, I did not see that! Thank you for answering so fast!
– Jonas Schwarz
1 hour ago
Cool, I did not see that! Thank you for answering so fast!
– Jonas Schwarz
1 hour 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f466075%2ftikz-transitioning-from-snakes-to-decorations%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