TikZ: Transitioning from snakes to decorations












4















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?










share|improve this question



























    4















    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?










    share|improve this question

























      4












      4








      4


      0






      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?










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 16 '18 at 13:11









      Jonas SchwarzJonas Schwarz

      1528




      1528






















          1 Answer
          1






          active

          oldest

          votes


















          7














          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}


          enter image description here






          share|improve this answer
























          • Cool, I did not see that! Thank you for answering so fast!

            – Jonas Schwarz
            Dec 16 '18 at 14:52











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


          }
          });














          draft saved

          draft discarded


















          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









          7














          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}


          enter image description here






          share|improve this answer
























          • Cool, I did not see that! Thank you for answering so fast!

            – Jonas Schwarz
            Dec 16 '18 at 14:52
















          7














          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}


          enter image description here






          share|improve this answer
























          • Cool, I did not see that! Thank you for answering so fast!

            – Jonas Schwarz
            Dec 16 '18 at 14:52














          7












          7








          7







          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}


          enter image description here






          share|improve this answer













          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}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 16 '18 at 13:28









          Ulrike FischerUlrike Fischer

          188k7294673




          188k7294673













          • Cool, I did not see that! Thank you for answering so fast!

            – Jonas Schwarz
            Dec 16 '18 at 14:52



















          • Cool, I did not see that! Thank you for answering so fast!

            – Jonas Schwarz
            Dec 16 '18 at 14:52

















          Cool, I did not see that! Thank you for answering so fast!

          – Jonas Schwarz
          Dec 16 '18 at 14:52





          Cool, I did not see that! Thank you for answering so fast!

          – Jonas Schwarz
          Dec 16 '18 at 14:52


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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

          Сан-Квентин

          Алькесар

          Josef Freinademetz