signalflowdiagram does not draw anything with `matrix`











up vote
0
down vote

favorite












I am using signalflowdiagram from here: http://www.texample.net/tikz/examples/signal-flow-building-blocks/. Then I installed it in my texmf-local folder. The tree looks like this:



/usr/local/texlive/texmf-local
tex
├── latex
│   ├── local
│   ├── signalflowlibrary
│   │   ├── macros.sty
│   │   ├── signalflowdiagram.sty
│   │   ├── tikzlibrarysignalflowarrows.code.tex
│   │   ├── tikzlibrarysignalflowblocks.code.tex
│   │   ├── tikzlibrarysignalflowdiagram.code.tex
│   │   └── tikzlibrarysignalflowoperators.code.tex
...


After copying the necessary files to the tree as shown above, I ran $ mktexlsr to make sure LaTeX can find the new custom package.



I can confirm that it works properly because this code:



documentclass[crop,tikz]{standalone}
usepackage{signalflowdiagram}

begin{document}
begin{signalflow}{Block diagram}
begin{scope}
node[input] (in) {$R(s)$};
node[filter] (plant) [right from=in] {$G(s)$};
path[r>] (in) -- (plant);
end{scope}
end{signalflow}
end{document}


produces this picture:



enter image description here



The problem



Now I want to position the nodes using matrix. First, I will show that I can get matrix to work, nothing fancy:



documentclass[crop,tikz]{standalone}
usepackage{tikz}
%usepackage{signalflowdiagram}
usetikzlibrary{matrix}

begin{document}
begin{tikzpicture}
matrix (m) [matrix of nodes]
{%
1 & 2 & 3 \
4 & 5 & 6 \
};
end{tikzpicture}
end{document}


So I get this:



enter image description here



This time, I want to use the predefined blocks in signalflowdiagram, so I uncomment the line that says usepackage{signalflowdiagram}. My code now looks like this. Notice the use of signalflow and scope environments as shown in the first example above.



documentclass[crop,tikz]{standalone}
usepackage{tikz}
usepackage{signalflowdiagram}
usetikzlibrary{matrix}

begin{document}
begin{signalflow}{Block diagram}
begin{scope}
matrix (m) [matrix of nodes]
{%
1 & 2 & 3 \
4 & 5 & 6 \
};
end{scope}
end{signalflow}
end{document}


Nothing appears :o I have not even started using the predefined blocks in signalflowdiagram.



enter image description here



Even using an ordinary tikzpicture draws nothing:



documentclass[crop,tikz]{standalone}
usepackage{tikz}
usepackage{signalflowdiagram}
usetikzlibrary{matrix}

begin{document}
begin{tikzpicture}
matrix (m) [matrix of nodes]
{%
1 & 2 & 3 \
4 & 5 & 6 \
};
end{tikzpicture}
end{document}


The common denominator



As long as usepackage{signalflowdiagram} is present, all matrix disappear.



Is there a way to get signalflowdiagram to work with matrix? I did try hacking into the signalflowdiagram code files, disabling definition of new environments, etc., to no avail.










share|improve this question


























    up vote
    0
    down vote

    favorite












    I am using signalflowdiagram from here: http://www.texample.net/tikz/examples/signal-flow-building-blocks/. Then I installed it in my texmf-local folder. The tree looks like this:



    /usr/local/texlive/texmf-local
    tex
    ├── latex
    │   ├── local
    │   ├── signalflowlibrary
    │   │   ├── macros.sty
    │   │   ├── signalflowdiagram.sty
    │   │   ├── tikzlibrarysignalflowarrows.code.tex
    │   │   ├── tikzlibrarysignalflowblocks.code.tex
    │   │   ├── tikzlibrarysignalflowdiagram.code.tex
    │   │   └── tikzlibrarysignalflowoperators.code.tex
    ...


    After copying the necessary files to the tree as shown above, I ran $ mktexlsr to make sure LaTeX can find the new custom package.



    I can confirm that it works properly because this code:



    documentclass[crop,tikz]{standalone}
    usepackage{signalflowdiagram}

    begin{document}
    begin{signalflow}{Block diagram}
    begin{scope}
    node[input] (in) {$R(s)$};
    node[filter] (plant) [right from=in] {$G(s)$};
    path[r>] (in) -- (plant);
    end{scope}
    end{signalflow}
    end{document}


    produces this picture:



    enter image description here



    The problem



    Now I want to position the nodes using matrix. First, I will show that I can get matrix to work, nothing fancy:



    documentclass[crop,tikz]{standalone}
    usepackage{tikz}
    %usepackage{signalflowdiagram}
    usetikzlibrary{matrix}

    begin{document}
    begin{tikzpicture}
    matrix (m) [matrix of nodes]
    {%
    1 & 2 & 3 \
    4 & 5 & 6 \
    };
    end{tikzpicture}
    end{document}


    So I get this:



    enter image description here



    This time, I want to use the predefined blocks in signalflowdiagram, so I uncomment the line that says usepackage{signalflowdiagram}. My code now looks like this. Notice the use of signalflow and scope environments as shown in the first example above.



    documentclass[crop,tikz]{standalone}
    usepackage{tikz}
    usepackage{signalflowdiagram}
    usetikzlibrary{matrix}

    begin{document}
    begin{signalflow}{Block diagram}
    begin{scope}
    matrix (m) [matrix of nodes]
    {%
    1 & 2 & 3 \
    4 & 5 & 6 \
    };
    end{scope}
    end{signalflow}
    end{document}


    Nothing appears :o I have not even started using the predefined blocks in signalflowdiagram.



    enter image description here



    Even using an ordinary tikzpicture draws nothing:



    documentclass[crop,tikz]{standalone}
    usepackage{tikz}
    usepackage{signalflowdiagram}
    usetikzlibrary{matrix}

    begin{document}
    begin{tikzpicture}
    matrix (m) [matrix of nodes]
    {%
    1 & 2 & 3 \
    4 & 5 & 6 \
    };
    end{tikzpicture}
    end{document}


    The common denominator



    As long as usepackage{signalflowdiagram} is present, all matrix disappear.



    Is there a way to get signalflowdiagram to work with matrix? I did try hacking into the signalflowdiagram code files, disabling definition of new environments, etc., to no avail.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am using signalflowdiagram from here: http://www.texample.net/tikz/examples/signal-flow-building-blocks/. Then I installed it in my texmf-local folder. The tree looks like this:



      /usr/local/texlive/texmf-local
      tex
      ├── latex
      │   ├── local
      │   ├── signalflowlibrary
      │   │   ├── macros.sty
      │   │   ├── signalflowdiagram.sty
      │   │   ├── tikzlibrarysignalflowarrows.code.tex
      │   │   ├── tikzlibrarysignalflowblocks.code.tex
      │   │   ├── tikzlibrarysignalflowdiagram.code.tex
      │   │   └── tikzlibrarysignalflowoperators.code.tex
      ...


      After copying the necessary files to the tree as shown above, I ran $ mktexlsr to make sure LaTeX can find the new custom package.



      I can confirm that it works properly because this code:



      documentclass[crop,tikz]{standalone}
      usepackage{signalflowdiagram}

      begin{document}
      begin{signalflow}{Block diagram}
      begin{scope}
      node[input] (in) {$R(s)$};
      node[filter] (plant) [right from=in] {$G(s)$};
      path[r>] (in) -- (plant);
      end{scope}
      end{signalflow}
      end{document}


      produces this picture:



      enter image description here



      The problem



      Now I want to position the nodes using matrix. First, I will show that I can get matrix to work, nothing fancy:



      documentclass[crop,tikz]{standalone}
      usepackage{tikz}
      %usepackage{signalflowdiagram}
      usetikzlibrary{matrix}

      begin{document}
      begin{tikzpicture}
      matrix (m) [matrix of nodes]
      {%
      1 & 2 & 3 \
      4 & 5 & 6 \
      };
      end{tikzpicture}
      end{document}


      So I get this:



      enter image description here



      This time, I want to use the predefined blocks in signalflowdiagram, so I uncomment the line that says usepackage{signalflowdiagram}. My code now looks like this. Notice the use of signalflow and scope environments as shown in the first example above.



      documentclass[crop,tikz]{standalone}
      usepackage{tikz}
      usepackage{signalflowdiagram}
      usetikzlibrary{matrix}

      begin{document}
      begin{signalflow}{Block diagram}
      begin{scope}
      matrix (m) [matrix of nodes]
      {%
      1 & 2 & 3 \
      4 & 5 & 6 \
      };
      end{scope}
      end{signalflow}
      end{document}


      Nothing appears :o I have not even started using the predefined blocks in signalflowdiagram.



      enter image description here



      Even using an ordinary tikzpicture draws nothing:



      documentclass[crop,tikz]{standalone}
      usepackage{tikz}
      usepackage{signalflowdiagram}
      usetikzlibrary{matrix}

      begin{document}
      begin{tikzpicture}
      matrix (m) [matrix of nodes]
      {%
      1 & 2 & 3 \
      4 & 5 & 6 \
      };
      end{tikzpicture}
      end{document}


      The common denominator



      As long as usepackage{signalflowdiagram} is present, all matrix disappear.



      Is there a way to get signalflowdiagram to work with matrix? I did try hacking into the signalflowdiagram code files, disabling definition of new environments, etc., to no avail.










      share|improve this question













      I am using signalflowdiagram from here: http://www.texample.net/tikz/examples/signal-flow-building-blocks/. Then I installed it in my texmf-local folder. The tree looks like this:



      /usr/local/texlive/texmf-local
      tex
      ├── latex
      │   ├── local
      │   ├── signalflowlibrary
      │   │   ├── macros.sty
      │   │   ├── signalflowdiagram.sty
      │   │   ├── tikzlibrarysignalflowarrows.code.tex
      │   │   ├── tikzlibrarysignalflowblocks.code.tex
      │   │   ├── tikzlibrarysignalflowdiagram.code.tex
      │   │   └── tikzlibrarysignalflowoperators.code.tex
      ...


      After copying the necessary files to the tree as shown above, I ran $ mktexlsr to make sure LaTeX can find the new custom package.



      I can confirm that it works properly because this code:



      documentclass[crop,tikz]{standalone}
      usepackage{signalflowdiagram}

      begin{document}
      begin{signalflow}{Block diagram}
      begin{scope}
      node[input] (in) {$R(s)$};
      node[filter] (plant) [right from=in] {$G(s)$};
      path[r>] (in) -- (plant);
      end{scope}
      end{signalflow}
      end{document}


      produces this picture:



      enter image description here



      The problem



      Now I want to position the nodes using matrix. First, I will show that I can get matrix to work, nothing fancy:



      documentclass[crop,tikz]{standalone}
      usepackage{tikz}
      %usepackage{signalflowdiagram}
      usetikzlibrary{matrix}

      begin{document}
      begin{tikzpicture}
      matrix (m) [matrix of nodes]
      {%
      1 & 2 & 3 \
      4 & 5 & 6 \
      };
      end{tikzpicture}
      end{document}


      So I get this:



      enter image description here



      This time, I want to use the predefined blocks in signalflowdiagram, so I uncomment the line that says usepackage{signalflowdiagram}. My code now looks like this. Notice the use of signalflow and scope environments as shown in the first example above.



      documentclass[crop,tikz]{standalone}
      usepackage{tikz}
      usepackage{signalflowdiagram}
      usetikzlibrary{matrix}

      begin{document}
      begin{signalflow}{Block diagram}
      begin{scope}
      matrix (m) [matrix of nodes]
      {%
      1 & 2 & 3 \
      4 & 5 & 6 \
      };
      end{scope}
      end{signalflow}
      end{document}


      Nothing appears :o I have not even started using the predefined blocks in signalflowdiagram.



      enter image description here



      Even using an ordinary tikzpicture draws nothing:



      documentclass[crop,tikz]{standalone}
      usepackage{tikz}
      usepackage{signalflowdiagram}
      usetikzlibrary{matrix}

      begin{document}
      begin{tikzpicture}
      matrix (m) [matrix of nodes]
      {%
      1 & 2 & 3 \
      4 & 5 & 6 \
      };
      end{tikzpicture}
      end{document}


      The common denominator



      As long as usepackage{signalflowdiagram} is present, all matrix disappear.



      Is there a way to get signalflowdiagram to work with matrix? I did try hacking into the signalflowdiagram code files, disabling definition of new environments, etc., to no avail.







      tikz-pgf tikz-matrix tikzlibrary






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 12 mins ago









      Kit

      7,4501958103




      7,4501958103



























          active

          oldest

          votes











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


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462786%2fsignalflowdiagram-does-not-draw-anything-with-matrix%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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.





          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462786%2fsignalflowdiagram-does-not-draw-anything-with-matrix%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

          サソリ

          広島県道265号伴広島線

          Setup Asymptote in Texstudio