Another tkz-euclide issue

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I feel very thankful for marmot for helping me with this problem, but I have another problem. It seems like tkz is actually very hard to understand. I have added the usetkzobjall command and it does actually work, although as I get further in the paper (tkz-euclide) it doesn't work anymore! Here is an example:



documentclassarticle
usepackagetikz
usepackagetkz-euclide
usetkzobjall

begindocument

begintikzpicture[scale=1.5]
tkzInit[xmax=5,ymax=5]tkzGrid[sub]
tkzDefPoint(1,2)A tkzDefPoint(3,4)B
tkzDefPoint(3,2)C tkzDefPoint(3,1)D
tkzDrawSegments(A,B A,C A,D)
tkzDrawPoints[color=red](A,B,C,D) tkzLabelPoints(A,B,C,D)
tkzFindSlope(A,B)SAB tkzFindSlope(A,C)SACtkzFindSlope(A,D)SAD
tkzText[fill=Gold!50,draw=brown](2.5,0)La pente de (AB) est : SAB
tkzText[fill=Gold!50,draw=brown](2.5,-.5)La pente de (AC) est : SAC
tkzText[fill=Gold!50,draw=brown](2.5,-1)La pente de (AD) est : SAD
endtikzpicture

enddocument


Here is the result:



See the xcolor package documentation for explanation.
Type H <return> for immediate help.
...

l.17 ...brown](2.5,0)La pente de (AB) est : SAB

?

Process has been terminated ...


This is what it's supposed to look like:



Grid










share|improve this question







New contributor




CuriousEinstein is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    1
    down vote

    favorite












    I feel very thankful for marmot for helping me with this problem, but I have another problem. It seems like tkz is actually very hard to understand. I have added the usetkzobjall command and it does actually work, although as I get further in the paper (tkz-euclide) it doesn't work anymore! Here is an example:



    documentclassarticle
    usepackagetikz
    usepackagetkz-euclide
    usetkzobjall

    begindocument

    begintikzpicture[scale=1.5]
    tkzInit[xmax=5,ymax=5]tkzGrid[sub]
    tkzDefPoint(1,2)A tkzDefPoint(3,4)B
    tkzDefPoint(3,2)C tkzDefPoint(3,1)D
    tkzDrawSegments(A,B A,C A,D)
    tkzDrawPoints[color=red](A,B,C,D) tkzLabelPoints(A,B,C,D)
    tkzFindSlope(A,B)SAB tkzFindSlope(A,C)SACtkzFindSlope(A,D)SAD
    tkzText[fill=Gold!50,draw=brown](2.5,0)La pente de (AB) est : SAB
    tkzText[fill=Gold!50,draw=brown](2.5,-.5)La pente de (AC) est : SAC
    tkzText[fill=Gold!50,draw=brown](2.5,-1)La pente de (AD) est : SAD
    endtikzpicture

    enddocument


    Here is the result:



    See the xcolor package documentation for explanation.
    Type H <return> for immediate help.
    ...

    l.17 ...brown](2.5,0)La pente de (AB) est : SAB

    ?

    Process has been terminated ...


    This is what it's supposed to look like:



    Grid










    share|improve this question







    New contributor




    CuriousEinstein is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I feel very thankful for marmot for helping me with this problem, but I have another problem. It seems like tkz is actually very hard to understand. I have added the usetkzobjall command and it does actually work, although as I get further in the paper (tkz-euclide) it doesn't work anymore! Here is an example:



      documentclassarticle
      usepackagetikz
      usepackagetkz-euclide
      usetkzobjall

      begindocument

      begintikzpicture[scale=1.5]
      tkzInit[xmax=5,ymax=5]tkzGrid[sub]
      tkzDefPoint(1,2)A tkzDefPoint(3,4)B
      tkzDefPoint(3,2)C tkzDefPoint(3,1)D
      tkzDrawSegments(A,B A,C A,D)
      tkzDrawPoints[color=red](A,B,C,D) tkzLabelPoints(A,B,C,D)
      tkzFindSlope(A,B)SAB tkzFindSlope(A,C)SACtkzFindSlope(A,D)SAD
      tkzText[fill=Gold!50,draw=brown](2.5,0)La pente de (AB) est : SAB
      tkzText[fill=Gold!50,draw=brown](2.5,-.5)La pente de (AC) est : SAC
      tkzText[fill=Gold!50,draw=brown](2.5,-1)La pente de (AD) est : SAD
      endtikzpicture

      enddocument


      Here is the result:



      See the xcolor package documentation for explanation.
      Type H <return> for immediate help.
      ...

      l.17 ...brown](2.5,0)La pente de (AB) est : SAB

      ?

      Process has been terminated ...


      This is what it's supposed to look like:



      Grid










      share|improve this question







      New contributor




      CuriousEinstein is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I feel very thankful for marmot for helping me with this problem, but I have another problem. It seems like tkz is actually very hard to understand. I have added the usetkzobjall command and it does actually work, although as I get further in the paper (tkz-euclide) it doesn't work anymore! Here is an example:



      documentclassarticle
      usepackagetikz
      usepackagetkz-euclide
      usetkzobjall

      begindocument

      begintikzpicture[scale=1.5]
      tkzInit[xmax=5,ymax=5]tkzGrid[sub]
      tkzDefPoint(1,2)A tkzDefPoint(3,4)B
      tkzDefPoint(3,2)C tkzDefPoint(3,1)D
      tkzDrawSegments(A,B A,C A,D)
      tkzDrawPoints[color=red](A,B,C,D) tkzLabelPoints(A,B,C,D)
      tkzFindSlope(A,B)SAB tkzFindSlope(A,C)SACtkzFindSlope(A,D)SAD
      tkzText[fill=Gold!50,draw=brown](2.5,0)La pente de (AB) est : SAB
      tkzText[fill=Gold!50,draw=brown](2.5,-.5)La pente de (AC) est : SAC
      tkzText[fill=Gold!50,draw=brown](2.5,-1)La pente de (AD) est : SAD
      endtikzpicture

      enddocument


      Here is the result:



      See the xcolor package documentation for explanation.
      Type H <return> for immediate help.
      ...

      l.17 ...brown](2.5,0)La pente de (AB) est : SAB

      ?

      Process has been terminated ...


      This is what it's supposed to look like:



      Grid







      tkz-euclide






      share|improve this question







      New contributor




      CuriousEinstein is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      CuriousEinstein is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      CuriousEinstein is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 1 hour ago









      CuriousEinstein

      204




      204




      New contributor




      CuriousEinstein is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      CuriousEinstein is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      CuriousEinstein is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          You haven't shown the whole error message. It says



          ! Package xcolor Error: Undefined color `Gold'.

          See the xcolor package documentation for explanation.
          Type H <return> for immediate help.
          ...

          l.16 ...own](2.5,-.5)La pente de (AC) est : SAC

          Try typing <return> to proceed.
          If that doesn't work, type X <return> to quit


          The key part being the first line.



          xcolor does have a lot of predefined colors, but they are not loaded by default. For Gold, you need to load xcolor with the svgnames option. Of course, you're not loading xcolor explicitly, that's done by TikZ, but you could do



          documentclass[svgnames]article


          which will pass svgnames to xcolor when it's loaded. With that modification your code runs without error.






          share|improve this answer




















          • Thanks! I really didn't know that xcolor didn't load all the colors!
            – CuriousEinstein
            1 hour ago










          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: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          CuriousEinstein is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f456008%2fanother-tkz-euclide-issue%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote



          accepted










          You haven't shown the whole error message. It says



          ! Package xcolor Error: Undefined color `Gold'.

          See the xcolor package documentation for explanation.
          Type H <return> for immediate help.
          ...

          l.16 ...own](2.5,-.5)La pente de (AC) est : SAC

          Try typing <return> to proceed.
          If that doesn't work, type X <return> to quit


          The key part being the first line.



          xcolor does have a lot of predefined colors, but they are not loaded by default. For Gold, you need to load xcolor with the svgnames option. Of course, you're not loading xcolor explicitly, that's done by TikZ, but you could do



          documentclass[svgnames]article


          which will pass svgnames to xcolor when it's loaded. With that modification your code runs without error.






          share|improve this answer




















          • Thanks! I really didn't know that xcolor didn't load all the colors!
            – CuriousEinstein
            1 hour ago














          up vote
          3
          down vote



          accepted










          You haven't shown the whole error message. It says



          ! Package xcolor Error: Undefined color `Gold'.

          See the xcolor package documentation for explanation.
          Type H <return> for immediate help.
          ...

          l.16 ...own](2.5,-.5)La pente de (AC) est : SAC

          Try typing <return> to proceed.
          If that doesn't work, type X <return> to quit


          The key part being the first line.



          xcolor does have a lot of predefined colors, but they are not loaded by default. For Gold, you need to load xcolor with the svgnames option. Of course, you're not loading xcolor explicitly, that's done by TikZ, but you could do



          documentclass[svgnames]article


          which will pass svgnames to xcolor when it's loaded. With that modification your code runs without error.






          share|improve this answer




















          • Thanks! I really didn't know that xcolor didn't load all the colors!
            – CuriousEinstein
            1 hour ago












          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          You haven't shown the whole error message. It says



          ! Package xcolor Error: Undefined color `Gold'.

          See the xcolor package documentation for explanation.
          Type H <return> for immediate help.
          ...

          l.16 ...own](2.5,-.5)La pente de (AC) est : SAC

          Try typing <return> to proceed.
          If that doesn't work, type X <return> to quit


          The key part being the first line.



          xcolor does have a lot of predefined colors, but they are not loaded by default. For Gold, you need to load xcolor with the svgnames option. Of course, you're not loading xcolor explicitly, that's done by TikZ, but you could do



          documentclass[svgnames]article


          which will pass svgnames to xcolor when it's loaded. With that modification your code runs without error.






          share|improve this answer












          You haven't shown the whole error message. It says



          ! Package xcolor Error: Undefined color `Gold'.

          See the xcolor package documentation for explanation.
          Type H <return> for immediate help.
          ...

          l.16 ...own](2.5,-.5)La pente de (AC) est : SAC

          Try typing <return> to proceed.
          If that doesn't work, type X <return> to quit


          The key part being the first line.



          xcolor does have a lot of predefined colors, but they are not loaded by default. For Gold, you need to load xcolor with the svgnames option. Of course, you're not loading xcolor explicitly, that's done by TikZ, but you could do



          documentclass[svgnames]article


          which will pass svgnames to xcolor when it's loaded. With that modification your code runs without error.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 1 hour ago









          Torbjørn T.

          152k13244428




          152k13244428











          • Thanks! I really didn't know that xcolor didn't load all the colors!
            – CuriousEinstein
            1 hour ago
















          • Thanks! I really didn't know that xcolor didn't load all the colors!
            – CuriousEinstein
            1 hour ago















          Thanks! I really didn't know that xcolor didn't load all the colors!
          – CuriousEinstein
          1 hour ago




          Thanks! I really didn't know that xcolor didn't load all the colors!
          – CuriousEinstein
          1 hour ago










          CuriousEinstein is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          CuriousEinstein is a new contributor. Be nice, and check out our Code of Conduct.












          CuriousEinstein is a new contributor. Be nice, and check out our Code of Conduct.











          CuriousEinstein is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f456008%2fanother-tkz-euclide-issue%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          Long meetings (6-7 hours a day): Being “babysat” by supervisor

          Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

          Confectionery