Tick Marks in Geometry












2














Here is an excerpt from my code:



begin{tikzpicture}[scale=5.5]
coordinate[label=left:$A$] (A) at (0,0);
coordinate[label=right:$B$] (B) at (1,0);
coordinate[label=:$C$] (C) at (0.5,0.866);
draw (A)--(B)--(C)--(A);
end{tikzpicture}


I want to denote AB=BC using the tick mark notation. Also, point C isn't exactly where it should be. How can I fix that? I rounded sqrt(3)/2 to 0.866.










share|improve this question







New contributor




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
















  • 3




    Welcome to TeX.SE! Please show us -- as usual here --an short compilable code resulting in your issue ...
    – Kurt
    2 days ago






  • 3




    It would also be helpful if you could include a sketch of how the output should look like.
    – samcarter
    2 days ago










  • TikZ understands polar coordinates such as coordinate[label=:$C$] (C) at (60:1); It also understands coordinate[label=:$C$] (C) at (0.5,{sqrt(3)/2});.
    – marmot
    2 days ago
















2














Here is an excerpt from my code:



begin{tikzpicture}[scale=5.5]
coordinate[label=left:$A$] (A) at (0,0);
coordinate[label=right:$B$] (B) at (1,0);
coordinate[label=:$C$] (C) at (0.5,0.866);
draw (A)--(B)--(C)--(A);
end{tikzpicture}


I want to denote AB=BC using the tick mark notation. Also, point C isn't exactly where it should be. How can I fix that? I rounded sqrt(3)/2 to 0.866.










share|improve this question







New contributor




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
















  • 3




    Welcome to TeX.SE! Please show us -- as usual here --an short compilable code resulting in your issue ...
    – Kurt
    2 days ago






  • 3




    It would also be helpful if you could include a sketch of how the output should look like.
    – samcarter
    2 days ago










  • TikZ understands polar coordinates such as coordinate[label=:$C$] (C) at (60:1); It also understands coordinate[label=:$C$] (C) at (0.5,{sqrt(3)/2});.
    – marmot
    2 days ago














2












2








2


0





Here is an excerpt from my code:



begin{tikzpicture}[scale=5.5]
coordinate[label=left:$A$] (A) at (0,0);
coordinate[label=right:$B$] (B) at (1,0);
coordinate[label=:$C$] (C) at (0.5,0.866);
draw (A)--(B)--(C)--(A);
end{tikzpicture}


I want to denote AB=BC using the tick mark notation. Also, point C isn't exactly where it should be. How can I fix that? I rounded sqrt(3)/2 to 0.866.










share|improve this question







New contributor




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











Here is an excerpt from my code:



begin{tikzpicture}[scale=5.5]
coordinate[label=left:$A$] (A) at (0,0);
coordinate[label=right:$B$] (B) at (1,0);
coordinate[label=:$C$] (C) at (0.5,0.866);
draw (A)--(B)--(C)--(A);
end{tikzpicture}


I want to denote AB=BC using the tick mark notation. Also, point C isn't exactly where it should be. How can I fix that? I rounded sqrt(3)/2 to 0.866.







graphs






share|improve this question







New contributor




M. C. 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




M. C. 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




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









asked 2 days ago









M. C.M. C.

112




112




New contributor




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





New contributor





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






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








  • 3




    Welcome to TeX.SE! Please show us -- as usual here --an short compilable code resulting in your issue ...
    – Kurt
    2 days ago






  • 3




    It would also be helpful if you could include a sketch of how the output should look like.
    – samcarter
    2 days ago










  • TikZ understands polar coordinates such as coordinate[label=:$C$] (C) at (60:1); It also understands coordinate[label=:$C$] (C) at (0.5,{sqrt(3)/2});.
    – marmot
    2 days ago














  • 3




    Welcome to TeX.SE! Please show us -- as usual here --an short compilable code resulting in your issue ...
    – Kurt
    2 days ago






  • 3




    It would also be helpful if you could include a sketch of how the output should look like.
    – samcarter
    2 days ago










  • TikZ understands polar coordinates such as coordinate[label=:$C$] (C) at (60:1); It also understands coordinate[label=:$C$] (C) at (0.5,{sqrt(3)/2});.
    – marmot
    2 days ago








3




3




Welcome to TeX.SE! Please show us -- as usual here --an short compilable code resulting in your issue ...
– Kurt
2 days ago




Welcome to TeX.SE! Please show us -- as usual here --an short compilable code resulting in your issue ...
– Kurt
2 days ago




3




3




It would also be helpful if you could include a sketch of how the output should look like.
– samcarter
2 days ago




It would also be helpful if you could include a sketch of how the output should look like.
– samcarter
2 days ago












TikZ understands polar coordinates such as coordinate[label=:$C$] (C) at (60:1); It also understands coordinate[label=:$C$] (C) at (0.5,{sqrt(3)/2});.
– marmot
2 days ago




TikZ understands polar coordinates such as coordinate[label=:$C$] (C) at (60:1); It also understands coordinate[label=:$C$] (C) at (0.5,{sqrt(3)/2});.
– marmot
2 days ago










3 Answers
3






active

oldest

votes


















3














A PSTricks solution just for fun purposes.



documentclass[pstricks,12pt,border=1cm]{standalone}
usepackage{pst-eucl}
begin{document}
pspicture[MarkAngle=90](-4,4)
pstTriangle(4;150){C}(-4,0){A}(0,0){B}
pstSegmentMark{A}{B}
pstSegmentMark{B}{C}
endpspicture
end{document}


enter image description here



Bonus



documentclass[pstricks,12pt,border=1cm]{standalone}
usepackage{pst-eucl}
begin{document}
foreach i in {90,100,...,170}{%
pspicture[MarkAngle=90](-4,4)
pstTriangle(4;i){C}(-4,0){A}(0,0){B}
pstSegmentMark{A}{B}
pstSegmentMark{B}{C}
endpspicture}
end{document}


enter image description here






share|improve this answer































    3














    one more tikz solution. for marks are used math symbol | in nodes with option sloped placed on lines:



    documentclass[tikz,border=3.141592mm]{standalone}

    begin{document}
    begin{tikzpicture}[scale=5.5]
    coordinate[label=left:$A$] (A) at (0,0);
    coordinate[label=right:$B$] (B) at (1,0);
    coordinate[label=$C$] (C) at (0.5,0.866);
    draw (A) -- node {$|$} (B) -- node[sloped] {$|$} (C) -- (A);
    end{tikzpicture}
    end{document}


    now tikz version 3.1 in miktex works ...



    enter image description here






    share|improve this answer























    • The mark on BC is not perpendicular I think ( I compile with my heart).
      – God Must Be Crazy
      yesterday






    • 1




      @GodMustBeCrazy, of course not, i forgot to add option sloped ... i correct this.
      – Zarko
      yesterday



















    2














    Welcome to TeX.SE! You can add these marks with decorations.markings. Since you want two of them, it is shorter to use the .list key for that. Further, TikZ understands polar coordinates, and it also understands (0.5,{sqrt(3)/2}), so there is no need to unbury your calculator. ;-)



    documentclass[tikz,border=3.14mm]{standalone}
    usetikzlibrary{decorations.markings}
    begin{document}
    begin{tikzpicture}[scale=5.5,equal mark/.style={postaction={decorate,
    decoration={markings,mark=at position #1 with {draw (-2pt,-4pt) -- (-2pt,4pt);
    draw (2pt,-4pt) -- (2pt,4pt);}}}}]
    coordinate[label=left:$A$] (A) at (0,0);
    coordinate[label=right:$B$] (B) at (1,0);
    coordinate[label=:$C$] (C) at (60:1);
    draw[equal mark/.list={1/6,1/2}] (A)--(B)--(C)--cycle;
    end{tikzpicture}
    end{document}


    enter image description here



    As you can see, this code starts with documentclass and ends with end{document}, and is compilable. Kurt asked you in his comment to add such a code.



    And you may simplify/shorten the code using a foreach loop.



    documentclass[tikz,border=3.14mm]{standalone}
    usetikzlibrary{decorations.markings}
    begin{document}
    begin{tikzpicture}[scale=5.5,equal mark/.style={postaction={decorate,
    decoration={markings,mark=at position #1 with {draw (-2pt,-4pt) -- (-2pt,4pt);
    draw (2pt,-4pt) -- (2pt,4pt);}}}}]
    foreach X/Y in {210/A,-30/B,90/C}
    {coordinate[label=X:$Y$] (Y) at (X:{1/sqrt(3)});}
    draw[equal mark/.list={1/6,1/2,5/6}] (A)--(B)--(C)--cycle;
    end{tikzpicture}
    end{document}





    share|improve this answer























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


      }
      });






      M. C. 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%2f469057%2ftick-marks-in-geometry%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3














      A PSTricks solution just for fun purposes.



      documentclass[pstricks,12pt,border=1cm]{standalone}
      usepackage{pst-eucl}
      begin{document}
      pspicture[MarkAngle=90](-4,4)
      pstTriangle(4;150){C}(-4,0){A}(0,0){B}
      pstSegmentMark{A}{B}
      pstSegmentMark{B}{C}
      endpspicture
      end{document}


      enter image description here



      Bonus



      documentclass[pstricks,12pt,border=1cm]{standalone}
      usepackage{pst-eucl}
      begin{document}
      foreach i in {90,100,...,170}{%
      pspicture[MarkAngle=90](-4,4)
      pstTriangle(4;i){C}(-4,0){A}(0,0){B}
      pstSegmentMark{A}{B}
      pstSegmentMark{B}{C}
      endpspicture}
      end{document}


      enter image description here






      share|improve this answer




























        3














        A PSTricks solution just for fun purposes.



        documentclass[pstricks,12pt,border=1cm]{standalone}
        usepackage{pst-eucl}
        begin{document}
        pspicture[MarkAngle=90](-4,4)
        pstTriangle(4;150){C}(-4,0){A}(0,0){B}
        pstSegmentMark{A}{B}
        pstSegmentMark{B}{C}
        endpspicture
        end{document}


        enter image description here



        Bonus



        documentclass[pstricks,12pt,border=1cm]{standalone}
        usepackage{pst-eucl}
        begin{document}
        foreach i in {90,100,...,170}{%
        pspicture[MarkAngle=90](-4,4)
        pstTriangle(4;i){C}(-4,0){A}(0,0){B}
        pstSegmentMark{A}{B}
        pstSegmentMark{B}{C}
        endpspicture}
        end{document}


        enter image description here






        share|improve this answer


























          3












          3








          3






          A PSTricks solution just for fun purposes.



          documentclass[pstricks,12pt,border=1cm]{standalone}
          usepackage{pst-eucl}
          begin{document}
          pspicture[MarkAngle=90](-4,4)
          pstTriangle(4;150){C}(-4,0){A}(0,0){B}
          pstSegmentMark{A}{B}
          pstSegmentMark{B}{C}
          endpspicture
          end{document}


          enter image description here



          Bonus



          documentclass[pstricks,12pt,border=1cm]{standalone}
          usepackage{pst-eucl}
          begin{document}
          foreach i in {90,100,...,170}{%
          pspicture[MarkAngle=90](-4,4)
          pstTriangle(4;i){C}(-4,0){A}(0,0){B}
          pstSegmentMark{A}{B}
          pstSegmentMark{B}{C}
          endpspicture}
          end{document}


          enter image description here






          share|improve this answer














          A PSTricks solution just for fun purposes.



          documentclass[pstricks,12pt,border=1cm]{standalone}
          usepackage{pst-eucl}
          begin{document}
          pspicture[MarkAngle=90](-4,4)
          pstTriangle(4;150){C}(-4,0){A}(0,0){B}
          pstSegmentMark{A}{B}
          pstSegmentMark{B}{C}
          endpspicture
          end{document}


          enter image description here



          Bonus



          documentclass[pstricks,12pt,border=1cm]{standalone}
          usepackage{pst-eucl}
          begin{document}
          foreach i in {90,100,...,170}{%
          pspicture[MarkAngle=90](-4,4)
          pstTriangle(4;i){C}(-4,0){A}(0,0){B}
          pstSegmentMark{A}{B}
          pstSegmentMark{B}{C}
          endpspicture}
          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited yesterday

























          answered yesterday









          God Must Be CrazyGod Must Be Crazy

          6,00511039




          6,00511039























              3














              one more tikz solution. for marks are used math symbol | in nodes with option sloped placed on lines:



              documentclass[tikz,border=3.141592mm]{standalone}

              begin{document}
              begin{tikzpicture}[scale=5.5]
              coordinate[label=left:$A$] (A) at (0,0);
              coordinate[label=right:$B$] (B) at (1,0);
              coordinate[label=$C$] (C) at (0.5,0.866);
              draw (A) -- node {$|$} (B) -- node[sloped] {$|$} (C) -- (A);
              end{tikzpicture}
              end{document}


              now tikz version 3.1 in miktex works ...



              enter image description here






              share|improve this answer























              • The mark on BC is not perpendicular I think ( I compile with my heart).
                – God Must Be Crazy
                yesterday






              • 1




                @GodMustBeCrazy, of course not, i forgot to add option sloped ... i correct this.
                – Zarko
                yesterday
















              3














              one more tikz solution. for marks are used math symbol | in nodes with option sloped placed on lines:



              documentclass[tikz,border=3.141592mm]{standalone}

              begin{document}
              begin{tikzpicture}[scale=5.5]
              coordinate[label=left:$A$] (A) at (0,0);
              coordinate[label=right:$B$] (B) at (1,0);
              coordinate[label=$C$] (C) at (0.5,0.866);
              draw (A) -- node {$|$} (B) -- node[sloped] {$|$} (C) -- (A);
              end{tikzpicture}
              end{document}


              now tikz version 3.1 in miktex works ...



              enter image description here






              share|improve this answer























              • The mark on BC is not perpendicular I think ( I compile with my heart).
                – God Must Be Crazy
                yesterday






              • 1




                @GodMustBeCrazy, of course not, i forgot to add option sloped ... i correct this.
                – Zarko
                yesterday














              3












              3








              3






              one more tikz solution. for marks are used math symbol | in nodes with option sloped placed on lines:



              documentclass[tikz,border=3.141592mm]{standalone}

              begin{document}
              begin{tikzpicture}[scale=5.5]
              coordinate[label=left:$A$] (A) at (0,0);
              coordinate[label=right:$B$] (B) at (1,0);
              coordinate[label=$C$] (C) at (0.5,0.866);
              draw (A) -- node {$|$} (B) -- node[sloped] {$|$} (C) -- (A);
              end{tikzpicture}
              end{document}


              now tikz version 3.1 in miktex works ...



              enter image description here






              share|improve this answer














              one more tikz solution. for marks are used math symbol | in nodes with option sloped placed on lines:



              documentclass[tikz,border=3.141592mm]{standalone}

              begin{document}
              begin{tikzpicture}[scale=5.5]
              coordinate[label=left:$A$] (A) at (0,0);
              coordinate[label=right:$B$] (B) at (1,0);
              coordinate[label=$C$] (C) at (0.5,0.866);
              draw (A) -- node {$|$} (B) -- node[sloped] {$|$} (C) -- (A);
              end{tikzpicture}
              end{document}


              now tikz version 3.1 in miktex works ...



              enter image description here







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited yesterday

























              answered yesterday









              ZarkoZarko

              122k865158




              122k865158












              • The mark on BC is not perpendicular I think ( I compile with my heart).
                – God Must Be Crazy
                yesterday






              • 1




                @GodMustBeCrazy, of course not, i forgot to add option sloped ... i correct this.
                – Zarko
                yesterday


















              • The mark on BC is not perpendicular I think ( I compile with my heart).
                – God Must Be Crazy
                yesterday






              • 1




                @GodMustBeCrazy, of course not, i forgot to add option sloped ... i correct this.
                – Zarko
                yesterday
















              The mark on BC is not perpendicular I think ( I compile with my heart).
              – God Must Be Crazy
              yesterday




              The mark on BC is not perpendicular I think ( I compile with my heart).
              – God Must Be Crazy
              yesterday




              1




              1




              @GodMustBeCrazy, of course not, i forgot to add option sloped ... i correct this.
              – Zarko
              yesterday




              @GodMustBeCrazy, of course not, i forgot to add option sloped ... i correct this.
              – Zarko
              yesterday











              2














              Welcome to TeX.SE! You can add these marks with decorations.markings. Since you want two of them, it is shorter to use the .list key for that. Further, TikZ understands polar coordinates, and it also understands (0.5,{sqrt(3)/2}), so there is no need to unbury your calculator. ;-)



              documentclass[tikz,border=3.14mm]{standalone}
              usetikzlibrary{decorations.markings}
              begin{document}
              begin{tikzpicture}[scale=5.5,equal mark/.style={postaction={decorate,
              decoration={markings,mark=at position #1 with {draw (-2pt,-4pt) -- (-2pt,4pt);
              draw (2pt,-4pt) -- (2pt,4pt);}}}}]
              coordinate[label=left:$A$] (A) at (0,0);
              coordinate[label=right:$B$] (B) at (1,0);
              coordinate[label=:$C$] (C) at (60:1);
              draw[equal mark/.list={1/6,1/2}] (A)--(B)--(C)--cycle;
              end{tikzpicture}
              end{document}


              enter image description here



              As you can see, this code starts with documentclass and ends with end{document}, and is compilable. Kurt asked you in his comment to add such a code.



              And you may simplify/shorten the code using a foreach loop.



              documentclass[tikz,border=3.14mm]{standalone}
              usetikzlibrary{decorations.markings}
              begin{document}
              begin{tikzpicture}[scale=5.5,equal mark/.style={postaction={decorate,
              decoration={markings,mark=at position #1 with {draw (-2pt,-4pt) -- (-2pt,4pt);
              draw (2pt,-4pt) -- (2pt,4pt);}}}}]
              foreach X/Y in {210/A,-30/B,90/C}
              {coordinate[label=X:$Y$] (Y) at (X:{1/sqrt(3)});}
              draw[equal mark/.list={1/6,1/2,5/6}] (A)--(B)--(C)--cycle;
              end{tikzpicture}
              end{document}





              share|improve this answer




























                2














                Welcome to TeX.SE! You can add these marks with decorations.markings. Since you want two of them, it is shorter to use the .list key for that. Further, TikZ understands polar coordinates, and it also understands (0.5,{sqrt(3)/2}), so there is no need to unbury your calculator. ;-)



                documentclass[tikz,border=3.14mm]{standalone}
                usetikzlibrary{decorations.markings}
                begin{document}
                begin{tikzpicture}[scale=5.5,equal mark/.style={postaction={decorate,
                decoration={markings,mark=at position #1 with {draw (-2pt,-4pt) -- (-2pt,4pt);
                draw (2pt,-4pt) -- (2pt,4pt);}}}}]
                coordinate[label=left:$A$] (A) at (0,0);
                coordinate[label=right:$B$] (B) at (1,0);
                coordinate[label=:$C$] (C) at (60:1);
                draw[equal mark/.list={1/6,1/2}] (A)--(B)--(C)--cycle;
                end{tikzpicture}
                end{document}


                enter image description here



                As you can see, this code starts with documentclass and ends with end{document}, and is compilable. Kurt asked you in his comment to add such a code.



                And you may simplify/shorten the code using a foreach loop.



                documentclass[tikz,border=3.14mm]{standalone}
                usetikzlibrary{decorations.markings}
                begin{document}
                begin{tikzpicture}[scale=5.5,equal mark/.style={postaction={decorate,
                decoration={markings,mark=at position #1 with {draw (-2pt,-4pt) -- (-2pt,4pt);
                draw (2pt,-4pt) -- (2pt,4pt);}}}}]
                foreach X/Y in {210/A,-30/B,90/C}
                {coordinate[label=X:$Y$] (Y) at (X:{1/sqrt(3)});}
                draw[equal mark/.list={1/6,1/2,5/6}] (A)--(B)--(C)--cycle;
                end{tikzpicture}
                end{document}





                share|improve this answer


























                  2












                  2








                  2






                  Welcome to TeX.SE! You can add these marks with decorations.markings. Since you want two of them, it is shorter to use the .list key for that. Further, TikZ understands polar coordinates, and it also understands (0.5,{sqrt(3)/2}), so there is no need to unbury your calculator. ;-)



                  documentclass[tikz,border=3.14mm]{standalone}
                  usetikzlibrary{decorations.markings}
                  begin{document}
                  begin{tikzpicture}[scale=5.5,equal mark/.style={postaction={decorate,
                  decoration={markings,mark=at position #1 with {draw (-2pt,-4pt) -- (-2pt,4pt);
                  draw (2pt,-4pt) -- (2pt,4pt);}}}}]
                  coordinate[label=left:$A$] (A) at (0,0);
                  coordinate[label=right:$B$] (B) at (1,0);
                  coordinate[label=:$C$] (C) at (60:1);
                  draw[equal mark/.list={1/6,1/2}] (A)--(B)--(C)--cycle;
                  end{tikzpicture}
                  end{document}


                  enter image description here



                  As you can see, this code starts with documentclass and ends with end{document}, and is compilable. Kurt asked you in his comment to add such a code.



                  And you may simplify/shorten the code using a foreach loop.



                  documentclass[tikz,border=3.14mm]{standalone}
                  usetikzlibrary{decorations.markings}
                  begin{document}
                  begin{tikzpicture}[scale=5.5,equal mark/.style={postaction={decorate,
                  decoration={markings,mark=at position #1 with {draw (-2pt,-4pt) -- (-2pt,4pt);
                  draw (2pt,-4pt) -- (2pt,4pt);}}}}]
                  foreach X/Y in {210/A,-30/B,90/C}
                  {coordinate[label=X:$Y$] (Y) at (X:{1/sqrt(3)});}
                  draw[equal mark/.list={1/6,1/2,5/6}] (A)--(B)--(C)--cycle;
                  end{tikzpicture}
                  end{document}





                  share|improve this answer














                  Welcome to TeX.SE! You can add these marks with decorations.markings. Since you want two of them, it is shorter to use the .list key for that. Further, TikZ understands polar coordinates, and it also understands (0.5,{sqrt(3)/2}), so there is no need to unbury your calculator. ;-)



                  documentclass[tikz,border=3.14mm]{standalone}
                  usetikzlibrary{decorations.markings}
                  begin{document}
                  begin{tikzpicture}[scale=5.5,equal mark/.style={postaction={decorate,
                  decoration={markings,mark=at position #1 with {draw (-2pt,-4pt) -- (-2pt,4pt);
                  draw (2pt,-4pt) -- (2pt,4pt);}}}}]
                  coordinate[label=left:$A$] (A) at (0,0);
                  coordinate[label=right:$B$] (B) at (1,0);
                  coordinate[label=:$C$] (C) at (60:1);
                  draw[equal mark/.list={1/6,1/2}] (A)--(B)--(C)--cycle;
                  end{tikzpicture}
                  end{document}


                  enter image description here



                  As you can see, this code starts with documentclass and ends with end{document}, and is compilable. Kurt asked you in his comment to add such a code.



                  And you may simplify/shorten the code using a foreach loop.



                  documentclass[tikz,border=3.14mm]{standalone}
                  usetikzlibrary{decorations.markings}
                  begin{document}
                  begin{tikzpicture}[scale=5.5,equal mark/.style={postaction={decorate,
                  decoration={markings,mark=at position #1 with {draw (-2pt,-4pt) -- (-2pt,4pt);
                  draw (2pt,-4pt) -- (2pt,4pt);}}}}]
                  foreach X/Y in {210/A,-30/B,90/C}
                  {coordinate[label=X:$Y$] (Y) at (X:{1/sqrt(3)});}
                  draw[equal mark/.list={1/6,1/2,5/6}] (A)--(B)--(C)--cycle;
                  end{tikzpicture}
                  end{document}






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited yesterday

























                  answered yesterday









                  marmotmarmot

                  89.9k4104195




                  89.9k4104195






















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










                      draft saved

                      draft discarded


















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













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












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
















                      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%2f469057%2ftick-marks-in-geometry%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

                      1300-talet

                      1300-talet

                      Display a custom attribute below product name in the front-end Magento 1.9.3.8