How to fill a right-angle mark with a color?












3















I fails to fill the right-angle mark with green color as follows.



documentclass[12pt]{standalone}
usepackage{pst-eucl,pst-calculate}
begin{document}
begin{pspicture}(-.6,-1)(4.85,4)
defb{3}
pstGeonode[PosAngle={-135,135,-45}](0,0){A}(0,b){B}(pscalculate{b*sqrt(2)},0){D}
pstTranslation[PosAngle=45]{A}{D}{B}[C]
pstMiddleAB{B}{C}{M}
pstInterLL[PointName=none]{A}{C}{M}{D}{E}
pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C}
psline(A)(B)(C)(D)(A)(C)(M)(D)
end{pspicture}
end{document}


enter image description here



How to fill a right-angle mark with a color?










share|improve this question





























    3















    I fails to fill the right-angle mark with green color as follows.



    documentclass[12pt]{standalone}
    usepackage{pst-eucl,pst-calculate}
    begin{document}
    begin{pspicture}(-.6,-1)(4.85,4)
    defb{3}
    pstGeonode[PosAngle={-135,135,-45}](0,0){A}(0,b){B}(pscalculate{b*sqrt(2)},0){D}
    pstTranslation[PosAngle=45]{A}{D}{B}[C]
    pstMiddleAB{B}{C}{M}
    pstInterLL[PointName=none]{A}{C}{M}{D}{E}
    pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C}
    psline(A)(B)(C)(D)(A)(C)(M)(D)
    end{pspicture}
    end{document}


    enter image description here



    How to fill a right-angle mark with a color?










    share|improve this question



























      3












      3








      3








      I fails to fill the right-angle mark with green color as follows.



      documentclass[12pt]{standalone}
      usepackage{pst-eucl,pst-calculate}
      begin{document}
      begin{pspicture}(-.6,-1)(4.85,4)
      defb{3}
      pstGeonode[PosAngle={-135,135,-45}](0,0){A}(0,b){B}(pscalculate{b*sqrt(2)},0){D}
      pstTranslation[PosAngle=45]{A}{D}{B}[C]
      pstMiddleAB{B}{C}{M}
      pstInterLL[PointName=none]{A}{C}{M}{D}{E}
      pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C}
      psline(A)(B)(C)(D)(A)(C)(M)(D)
      end{pspicture}
      end{document}


      enter image description here



      How to fill a right-angle mark with a color?










      share|improve this question
















      I fails to fill the right-angle mark with green color as follows.



      documentclass[12pt]{standalone}
      usepackage{pst-eucl,pst-calculate}
      begin{document}
      begin{pspicture}(-.6,-1)(4.85,4)
      defb{3}
      pstGeonode[PosAngle={-135,135,-45}](0,0){A}(0,b){B}(pscalculate{b*sqrt(2)},0){D}
      pstTranslation[PosAngle=45]{A}{D}{B}[C]
      pstMiddleAB{B}{C}{M}
      pstInterLL[PointName=none]{A}{C}{M}{D}{E}
      pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C}
      psline(A)(B)(C)(D)(A)(C)(M)(D)
      end{pspicture}
      end{document}


      enter image description here



      How to fill a right-angle mark with a color?







      color pstricks fill pst-eucl






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 12 at 15:16









      God Must Be Crazy

      5,09011039




      5,09011039










      asked Jan 12 at 6:28









      chishimotojichishimotoji

      644318




      644318






















          3 Answers
          3






          active

          oldest

          votes


















          3














          If node A is not the origin, then use the coordinate pair {AD,CD} which is {(4,3)} instead of {(C)} for the rotation of rput



          documentclass[12pt]{standalone}

          usepackage{pst-eucl,pst-calculate}
          begin{document}
          begin{pspicture}(-.6,-1)(4.85,4)
          defb{3}
          pstGeonode[PosAngle={-135,135,-45}](0,0){A}(0,b){B}(pscalculate{b*sqrt(2)},0){D}
          pstTranslation[PosAngle=45]{A}{D}{B}[C]
          pstMiddleAB{B}{C}{M}
          pstInterLL[PointName=none]{A}{C}{M}{D}{E}
          rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%
          psline(A)(B)(C)(D)(A)(C)(M)(D)
          end{pspicture}
          end{document}


          enter image description here



          With pst-eucl.tex from http://archiv.dante.de/~herbert/TeXnik/tex/generic/pst-eucl/ you can use:



          pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C}





          share|improve this answer


























          • Please tell me know why the command pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C} does not get the same result as rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)} by default.

            – chishimotoji
            Jan 13 at 11:08













          • it's not supported. That's all... Maybe I'll change it or maybe not ..

            – Herbert
            Jan 13 at 11:12













          • " added fillstyle for angles " from up-to-date of pst-eucl.tex .... But the command pstMarkAngle[fillstyle=solid,fillcolor=red!50]{B}{C}{A}{$theta$} does not work ...

            – chishimotoji
            Jan 14 at 0:42











          • And I replaced it by the command psGetAngleABC[WedgeOpacity=1.2,WedgeColor=yellow,LabelSep=0.5](B)(C)(A){$beta$}. How do you think ?

            – chishimotoji
            Jan 14 at 0:52








          • 1





            3D angles will not be supported by pst-eucl. You have to write your own macro. Or use pst-3dplot

            – Herbert
            Jan 15 at 9:39



















          4














          documentclass[pstricks,12pt]{standalone}
          usepackage{pst-eucl}
          defb{3 }
          begin{document}
          begin{pspicture}(-.6,-1)(4.85,4)
          pstGeonode[PosAngle={-135,135,-45,45}](0,0){A}(!0 b){B}(!b 2 sqrt mul 0){D}(D|B){C}
          pstMiddleAB{B}{C}{M}
          pstInterLL[PointName=none]{A}{C}{M}{D}{E}
          pspolygon[fillstyle=solid,fillcolor=green](E)([nodesep=6pt]{C}E)([offset=6pt,nodesep=6pt]{C}E)([offset=6pt]{C}E)
          psline(A)(B)(C)(D)(A)(C)(M)(D)
          end{pspicture}
          end{document}


          enter image description here






          share|improve this answer
























          • (Off topic) Where is the syntax ...(D|B){C}? I can't find it in pst-eucl.

            – chishimotoji
            Jan 12 at 15:41






          • 2





            @chishimotoji: it is a secret recipe in PSTricks. It can be used everywhere, (A|B) stands for (A.x|B.y).

            – God Must Be Crazy
            Jan 12 at 15:42













          • No, I want pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C} to get a result like your syntax.( default )

            – chishimotoji
            Jan 12 at 15:45













          • @chishimotoji: You must change the library.

            – God Must Be Crazy
            Jan 12 at 15:49



















          1














          Herbert's solution can be generalized by replacing his



          rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%


          with



          pnode(C){c}% temporary 
          pnode(E){e}% temporary
          rput{!N-c.y N-e.y sub N-c.x N-e.x sub atan}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%


          Red alert: the temporary nodes are important and needed because it is one of PSTricks' hidden features. We cannot substitute !N-C.y N-E.y sub N-C.x N-E.x sub atan for !N-c.y N-e.y sub N-c.x N-e.x sub atan.



          The complete code is as follows. I translated all points with (1,1) vector just to see a non-trivial effect.



          documentclass[12pt]{standalone}

          usepackage{pst-eucl,pst-calculate}
          begin{document}
          begin{pspicture}[saveNodeCoors,showgrid](6,5)
          defb{3}
          pstGeonode[PosAngle={-135,135,-45}](1,1){A}(1,pscalculate{b+1}){B}(pscalculate{b*sqrt(2)+1},1){D}
          pstTranslation[PosAngle=45]{A}{D}{B}[C]
          pstMiddleAB{B}{C}{M}
          pstInterLL[PointName=none]{A}{C}{M}{D}{E}
          pnode(C){c}% temporary
          pnode(E){e}% temporary
          rput{!N-c.y N-e.y sub N-c.x N-e.x sub atan}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%
          psline(A)(B)(C)(D)(A)(C)(M)(D)
          end{pspicture}
          end{document}





          share|improve this answer





















          • 1





            Hehe, thank you. :-))

            – chishimotoji
            Jan 14 at 0:07











          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%2f469789%2fhow-to-fill-a-right-angle-mark-with-a-color%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














          If node A is not the origin, then use the coordinate pair {AD,CD} which is {(4,3)} instead of {(C)} for the rotation of rput



          documentclass[12pt]{standalone}

          usepackage{pst-eucl,pst-calculate}
          begin{document}
          begin{pspicture}(-.6,-1)(4.85,4)
          defb{3}
          pstGeonode[PosAngle={-135,135,-45}](0,0){A}(0,b){B}(pscalculate{b*sqrt(2)},0){D}
          pstTranslation[PosAngle=45]{A}{D}{B}[C]
          pstMiddleAB{B}{C}{M}
          pstInterLL[PointName=none]{A}{C}{M}{D}{E}
          rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%
          psline(A)(B)(C)(D)(A)(C)(M)(D)
          end{pspicture}
          end{document}


          enter image description here



          With pst-eucl.tex from http://archiv.dante.de/~herbert/TeXnik/tex/generic/pst-eucl/ you can use:



          pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C}





          share|improve this answer


























          • Please tell me know why the command pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C} does not get the same result as rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)} by default.

            – chishimotoji
            Jan 13 at 11:08













          • it's not supported. That's all... Maybe I'll change it or maybe not ..

            – Herbert
            Jan 13 at 11:12













          • " added fillstyle for angles " from up-to-date of pst-eucl.tex .... But the command pstMarkAngle[fillstyle=solid,fillcolor=red!50]{B}{C}{A}{$theta$} does not work ...

            – chishimotoji
            Jan 14 at 0:42











          • And I replaced it by the command psGetAngleABC[WedgeOpacity=1.2,WedgeColor=yellow,LabelSep=0.5](B)(C)(A){$beta$}. How do you think ?

            – chishimotoji
            Jan 14 at 0:52








          • 1





            3D angles will not be supported by pst-eucl. You have to write your own macro. Or use pst-3dplot

            – Herbert
            Jan 15 at 9:39
















          3














          If node A is not the origin, then use the coordinate pair {AD,CD} which is {(4,3)} instead of {(C)} for the rotation of rput



          documentclass[12pt]{standalone}

          usepackage{pst-eucl,pst-calculate}
          begin{document}
          begin{pspicture}(-.6,-1)(4.85,4)
          defb{3}
          pstGeonode[PosAngle={-135,135,-45}](0,0){A}(0,b){B}(pscalculate{b*sqrt(2)},0){D}
          pstTranslation[PosAngle=45]{A}{D}{B}[C]
          pstMiddleAB{B}{C}{M}
          pstInterLL[PointName=none]{A}{C}{M}{D}{E}
          rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%
          psline(A)(B)(C)(D)(A)(C)(M)(D)
          end{pspicture}
          end{document}


          enter image description here



          With pst-eucl.tex from http://archiv.dante.de/~herbert/TeXnik/tex/generic/pst-eucl/ you can use:



          pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C}





          share|improve this answer


























          • Please tell me know why the command pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C} does not get the same result as rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)} by default.

            – chishimotoji
            Jan 13 at 11:08













          • it's not supported. That's all... Maybe I'll change it or maybe not ..

            – Herbert
            Jan 13 at 11:12













          • " added fillstyle for angles " from up-to-date of pst-eucl.tex .... But the command pstMarkAngle[fillstyle=solid,fillcolor=red!50]{B}{C}{A}{$theta$} does not work ...

            – chishimotoji
            Jan 14 at 0:42











          • And I replaced it by the command psGetAngleABC[WedgeOpacity=1.2,WedgeColor=yellow,LabelSep=0.5](B)(C)(A){$beta$}. How do you think ?

            – chishimotoji
            Jan 14 at 0:52








          • 1





            3D angles will not be supported by pst-eucl. You have to write your own macro. Or use pst-3dplot

            – Herbert
            Jan 15 at 9:39














          3












          3








          3







          If node A is not the origin, then use the coordinate pair {AD,CD} which is {(4,3)} instead of {(C)} for the rotation of rput



          documentclass[12pt]{standalone}

          usepackage{pst-eucl,pst-calculate}
          begin{document}
          begin{pspicture}(-.6,-1)(4.85,4)
          defb{3}
          pstGeonode[PosAngle={-135,135,-45}](0,0){A}(0,b){B}(pscalculate{b*sqrt(2)},0){D}
          pstTranslation[PosAngle=45]{A}{D}{B}[C]
          pstMiddleAB{B}{C}{M}
          pstInterLL[PointName=none]{A}{C}{M}{D}{E}
          rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%
          psline(A)(B)(C)(D)(A)(C)(M)(D)
          end{pspicture}
          end{document}


          enter image description here



          With pst-eucl.tex from http://archiv.dante.de/~herbert/TeXnik/tex/generic/pst-eucl/ you can use:



          pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C}





          share|improve this answer















          If node A is not the origin, then use the coordinate pair {AD,CD} which is {(4,3)} instead of {(C)} for the rotation of rput



          documentclass[12pt]{standalone}

          usepackage{pst-eucl,pst-calculate}
          begin{document}
          begin{pspicture}(-.6,-1)(4.85,4)
          defb{3}
          pstGeonode[PosAngle={-135,135,-45}](0,0){A}(0,b){B}(pscalculate{b*sqrt(2)},0){D}
          pstTranslation[PosAngle=45]{A}{D}{B}[C]
          pstMiddleAB{B}{C}{M}
          pstInterLL[PointName=none]{A}{C}{M}{D}{E}
          rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%
          psline(A)(B)(C)(D)(A)(C)(M)(D)
          end{pspicture}
          end{document}


          enter image description here



          With pst-eucl.tex from http://archiv.dante.de/~herbert/TeXnik/tex/generic/pst-eucl/ you can use:



          pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C}






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 13 at 20:39

























          answered Jan 13 at 9:47









          HerbertHerbert

          271k24409719




          271k24409719













          • Please tell me know why the command pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C} does not get the same result as rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)} by default.

            – chishimotoji
            Jan 13 at 11:08













          • it's not supported. That's all... Maybe I'll change it or maybe not ..

            – Herbert
            Jan 13 at 11:12













          • " added fillstyle for angles " from up-to-date of pst-eucl.tex .... But the command pstMarkAngle[fillstyle=solid,fillcolor=red!50]{B}{C}{A}{$theta$} does not work ...

            – chishimotoji
            Jan 14 at 0:42











          • And I replaced it by the command psGetAngleABC[WedgeOpacity=1.2,WedgeColor=yellow,LabelSep=0.5](B)(C)(A){$beta$}. How do you think ?

            – chishimotoji
            Jan 14 at 0:52








          • 1





            3D angles will not be supported by pst-eucl. You have to write your own macro. Or use pst-3dplot

            – Herbert
            Jan 15 at 9:39



















          • Please tell me know why the command pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C} does not get the same result as rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)} by default.

            – chishimotoji
            Jan 13 at 11:08













          • it's not supported. That's all... Maybe I'll change it or maybe not ..

            – Herbert
            Jan 13 at 11:12













          • " added fillstyle for angles " from up-to-date of pst-eucl.tex .... But the command pstMarkAngle[fillstyle=solid,fillcolor=red!50]{B}{C}{A}{$theta$} does not work ...

            – chishimotoji
            Jan 14 at 0:42











          • And I replaced it by the command psGetAngleABC[WedgeOpacity=1.2,WedgeColor=yellow,LabelSep=0.5](B)(C)(A){$beta$}. How do you think ?

            – chishimotoji
            Jan 14 at 0:52








          • 1





            3D angles will not be supported by pst-eucl. You have to write your own macro. Or use pst-3dplot

            – Herbert
            Jan 15 at 9:39

















          Please tell me know why the command pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C} does not get the same result as rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)} by default.

          – chishimotoji
          Jan 13 at 11:08







          Please tell me know why the command pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C} does not get the same result as rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)} by default.

          – chishimotoji
          Jan 13 at 11:08















          it's not supported. That's all... Maybe I'll change it or maybe not ..

          – Herbert
          Jan 13 at 11:12







          it's not supported. That's all... Maybe I'll change it or maybe not ..

          – Herbert
          Jan 13 at 11:12















          " added fillstyle for angles " from up-to-date of pst-eucl.tex .... But the command pstMarkAngle[fillstyle=solid,fillcolor=red!50]{B}{C}{A}{$theta$} does not work ...

          – chishimotoji
          Jan 14 at 0:42





          " added fillstyle for angles " from up-to-date of pst-eucl.tex .... But the command pstMarkAngle[fillstyle=solid,fillcolor=red!50]{B}{C}{A}{$theta$} does not work ...

          – chishimotoji
          Jan 14 at 0:42













          And I replaced it by the command psGetAngleABC[WedgeOpacity=1.2,WedgeColor=yellow,LabelSep=0.5](B)(C)(A){$beta$}. How do you think ?

          – chishimotoji
          Jan 14 at 0:52







          And I replaced it by the command psGetAngleABC[WedgeOpacity=1.2,WedgeColor=yellow,LabelSep=0.5](B)(C)(A){$beta$}. How do you think ?

          – chishimotoji
          Jan 14 at 0:52






          1




          1





          3D angles will not be supported by pst-eucl. You have to write your own macro. Or use pst-3dplot

          – Herbert
          Jan 15 at 9:39





          3D angles will not be supported by pst-eucl. You have to write your own macro. Or use pst-3dplot

          – Herbert
          Jan 15 at 9:39











          4














          documentclass[pstricks,12pt]{standalone}
          usepackage{pst-eucl}
          defb{3 }
          begin{document}
          begin{pspicture}(-.6,-1)(4.85,4)
          pstGeonode[PosAngle={-135,135,-45,45}](0,0){A}(!0 b){B}(!b 2 sqrt mul 0){D}(D|B){C}
          pstMiddleAB{B}{C}{M}
          pstInterLL[PointName=none]{A}{C}{M}{D}{E}
          pspolygon[fillstyle=solid,fillcolor=green](E)([nodesep=6pt]{C}E)([offset=6pt,nodesep=6pt]{C}E)([offset=6pt]{C}E)
          psline(A)(B)(C)(D)(A)(C)(M)(D)
          end{pspicture}
          end{document}


          enter image description here






          share|improve this answer
























          • (Off topic) Where is the syntax ...(D|B){C}? I can't find it in pst-eucl.

            – chishimotoji
            Jan 12 at 15:41






          • 2





            @chishimotoji: it is a secret recipe in PSTricks. It can be used everywhere, (A|B) stands for (A.x|B.y).

            – God Must Be Crazy
            Jan 12 at 15:42













          • No, I want pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C} to get a result like your syntax.( default )

            – chishimotoji
            Jan 12 at 15:45













          • @chishimotoji: You must change the library.

            – God Must Be Crazy
            Jan 12 at 15:49
















          4














          documentclass[pstricks,12pt]{standalone}
          usepackage{pst-eucl}
          defb{3 }
          begin{document}
          begin{pspicture}(-.6,-1)(4.85,4)
          pstGeonode[PosAngle={-135,135,-45,45}](0,0){A}(!0 b){B}(!b 2 sqrt mul 0){D}(D|B){C}
          pstMiddleAB{B}{C}{M}
          pstInterLL[PointName=none]{A}{C}{M}{D}{E}
          pspolygon[fillstyle=solid,fillcolor=green](E)([nodesep=6pt]{C}E)([offset=6pt,nodesep=6pt]{C}E)([offset=6pt]{C}E)
          psline(A)(B)(C)(D)(A)(C)(M)(D)
          end{pspicture}
          end{document}


          enter image description here






          share|improve this answer
























          • (Off topic) Where is the syntax ...(D|B){C}? I can't find it in pst-eucl.

            – chishimotoji
            Jan 12 at 15:41






          • 2





            @chishimotoji: it is a secret recipe in PSTricks. It can be used everywhere, (A|B) stands for (A.x|B.y).

            – God Must Be Crazy
            Jan 12 at 15:42













          • No, I want pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C} to get a result like your syntax.( default )

            – chishimotoji
            Jan 12 at 15:45













          • @chishimotoji: You must change the library.

            – God Must Be Crazy
            Jan 12 at 15:49














          4












          4








          4







          documentclass[pstricks,12pt]{standalone}
          usepackage{pst-eucl}
          defb{3 }
          begin{document}
          begin{pspicture}(-.6,-1)(4.85,4)
          pstGeonode[PosAngle={-135,135,-45,45}](0,0){A}(!0 b){B}(!b 2 sqrt mul 0){D}(D|B){C}
          pstMiddleAB{B}{C}{M}
          pstInterLL[PointName=none]{A}{C}{M}{D}{E}
          pspolygon[fillstyle=solid,fillcolor=green](E)([nodesep=6pt]{C}E)([offset=6pt,nodesep=6pt]{C}E)([offset=6pt]{C}E)
          psline(A)(B)(C)(D)(A)(C)(M)(D)
          end{pspicture}
          end{document}


          enter image description here






          share|improve this answer













          documentclass[pstricks,12pt]{standalone}
          usepackage{pst-eucl}
          defb{3 }
          begin{document}
          begin{pspicture}(-.6,-1)(4.85,4)
          pstGeonode[PosAngle={-135,135,-45,45}](0,0){A}(!0 b){B}(!b 2 sqrt mul 0){D}(D|B){C}
          pstMiddleAB{B}{C}{M}
          pstInterLL[PointName=none]{A}{C}{M}{D}{E}
          pspolygon[fillstyle=solid,fillcolor=green](E)([nodesep=6pt]{C}E)([offset=6pt,nodesep=6pt]{C}E)([offset=6pt]{C}E)
          psline(A)(B)(C)(D)(A)(C)(M)(D)
          end{pspicture}
          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 12 at 15:13









          God Must Be CrazyGod Must Be Crazy

          5,09011039




          5,09011039













          • (Off topic) Where is the syntax ...(D|B){C}? I can't find it in pst-eucl.

            – chishimotoji
            Jan 12 at 15:41






          • 2





            @chishimotoji: it is a secret recipe in PSTricks. It can be used everywhere, (A|B) stands for (A.x|B.y).

            – God Must Be Crazy
            Jan 12 at 15:42













          • No, I want pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C} to get a result like your syntax.( default )

            – chishimotoji
            Jan 12 at 15:45













          • @chishimotoji: You must change the library.

            – God Must Be Crazy
            Jan 12 at 15:49



















          • (Off topic) Where is the syntax ...(D|B){C}? I can't find it in pst-eucl.

            – chishimotoji
            Jan 12 at 15:41






          • 2





            @chishimotoji: it is a secret recipe in PSTricks. It can be used everywhere, (A|B) stands for (A.x|B.y).

            – God Must Be Crazy
            Jan 12 at 15:42













          • No, I want pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C} to get a result like your syntax.( default )

            – chishimotoji
            Jan 12 at 15:45













          • @chishimotoji: You must change the library.

            – God Must Be Crazy
            Jan 12 at 15:49

















          (Off topic) Where is the syntax ...(D|B){C}? I can't find it in pst-eucl.

          – chishimotoji
          Jan 12 at 15:41





          (Off topic) Where is the syntax ...(D|B){C}? I can't find it in pst-eucl.

          – chishimotoji
          Jan 12 at 15:41




          2




          2





          @chishimotoji: it is a secret recipe in PSTricks. It can be used everywhere, (A|B) stands for (A.x|B.y).

          – God Must Be Crazy
          Jan 12 at 15:42







          @chishimotoji: it is a secret recipe in PSTricks. It can be used everywhere, (A|B) stands for (A.x|B.y).

          – God Must Be Crazy
          Jan 12 at 15:42















          No, I want pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C} to get a result like your syntax.( default )

          – chishimotoji
          Jan 12 at 15:45







          No, I want pstRightAngle[RightAngleSize=.2,fillstyle=solid,fillcolor=green]{M}{E}{C} to get a result like your syntax.( default )

          – chishimotoji
          Jan 12 at 15:45















          @chishimotoji: You must change the library.

          – God Must Be Crazy
          Jan 12 at 15:49





          @chishimotoji: You must change the library.

          – God Must Be Crazy
          Jan 12 at 15:49











          1














          Herbert's solution can be generalized by replacing his



          rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%


          with



          pnode(C){c}% temporary 
          pnode(E){e}% temporary
          rput{!N-c.y N-e.y sub N-c.x N-e.x sub atan}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%


          Red alert: the temporary nodes are important and needed because it is one of PSTricks' hidden features. We cannot substitute !N-C.y N-E.y sub N-C.x N-E.x sub atan for !N-c.y N-e.y sub N-c.x N-e.x sub atan.



          The complete code is as follows. I translated all points with (1,1) vector just to see a non-trivial effect.



          documentclass[12pt]{standalone}

          usepackage{pst-eucl,pst-calculate}
          begin{document}
          begin{pspicture}[saveNodeCoors,showgrid](6,5)
          defb{3}
          pstGeonode[PosAngle={-135,135,-45}](1,1){A}(1,pscalculate{b+1}){B}(pscalculate{b*sqrt(2)+1},1){D}
          pstTranslation[PosAngle=45]{A}{D}{B}[C]
          pstMiddleAB{B}{C}{M}
          pstInterLL[PointName=none]{A}{C}{M}{D}{E}
          pnode(C){c}% temporary
          pnode(E){e}% temporary
          rput{!N-c.y N-e.y sub N-c.x N-e.x sub atan}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%
          psline(A)(B)(C)(D)(A)(C)(M)(D)
          end{pspicture}
          end{document}





          share|improve this answer





















          • 1





            Hehe, thank you. :-))

            – chishimotoji
            Jan 14 at 0:07
















          1














          Herbert's solution can be generalized by replacing his



          rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%


          with



          pnode(C){c}% temporary 
          pnode(E){e}% temporary
          rput{!N-c.y N-e.y sub N-c.x N-e.x sub atan}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%


          Red alert: the temporary nodes are important and needed because it is one of PSTricks' hidden features. We cannot substitute !N-C.y N-E.y sub N-C.x N-E.x sub atan for !N-c.y N-e.y sub N-c.x N-e.x sub atan.



          The complete code is as follows. I translated all points with (1,1) vector just to see a non-trivial effect.



          documentclass[12pt]{standalone}

          usepackage{pst-eucl,pst-calculate}
          begin{document}
          begin{pspicture}[saveNodeCoors,showgrid](6,5)
          defb{3}
          pstGeonode[PosAngle={-135,135,-45}](1,1){A}(1,pscalculate{b+1}){B}(pscalculate{b*sqrt(2)+1},1){D}
          pstTranslation[PosAngle=45]{A}{D}{B}[C]
          pstMiddleAB{B}{C}{M}
          pstInterLL[PointName=none]{A}{C}{M}{D}{E}
          pnode(C){c}% temporary
          pnode(E){e}% temporary
          rput{!N-c.y N-e.y sub N-c.x N-e.x sub atan}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%
          psline(A)(B)(C)(D)(A)(C)(M)(D)
          end{pspicture}
          end{document}





          share|improve this answer





















          • 1





            Hehe, thank you. :-))

            – chishimotoji
            Jan 14 at 0:07














          1












          1








          1







          Herbert's solution can be generalized by replacing his



          rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%


          with



          pnode(C){c}% temporary 
          pnode(E){e}% temporary
          rput{!N-c.y N-e.y sub N-c.x N-e.x sub atan}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%


          Red alert: the temporary nodes are important and needed because it is one of PSTricks' hidden features. We cannot substitute !N-C.y N-E.y sub N-C.x N-E.x sub atan for !N-c.y N-e.y sub N-c.x N-e.x sub atan.



          The complete code is as follows. I translated all points with (1,1) vector just to see a non-trivial effect.



          documentclass[12pt]{standalone}

          usepackage{pst-eucl,pst-calculate}
          begin{document}
          begin{pspicture}[saveNodeCoors,showgrid](6,5)
          defb{3}
          pstGeonode[PosAngle={-135,135,-45}](1,1){A}(1,pscalculate{b+1}){B}(pscalculate{b*sqrt(2)+1},1){D}
          pstTranslation[PosAngle=45]{A}{D}{B}[C]
          pstMiddleAB{B}{C}{M}
          pstInterLL[PointName=none]{A}{C}{M}{D}{E}
          pnode(C){c}% temporary
          pnode(E){e}% temporary
          rput{!N-c.y N-e.y sub N-c.x N-e.x sub atan}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%
          psline(A)(B)(C)(D)(A)(C)(M)(D)
          end{pspicture}
          end{document}





          share|improve this answer















          Herbert's solution can be generalized by replacing his



          rput{(C)}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%


          with



          pnode(C){c}% temporary 
          pnode(E){e}% temporary
          rput{!N-c.y N-e.y sub N-c.x N-e.x sub atan}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%


          Red alert: the temporary nodes are important and needed because it is one of PSTricks' hidden features. We cannot substitute !N-C.y N-E.y sub N-C.x N-E.x sub atan for !N-c.y N-e.y sub N-c.x N-e.x sub atan.



          The complete code is as follows. I translated all points with (1,1) vector just to see a non-trivial effect.



          documentclass[12pt]{standalone}

          usepackage{pst-eucl,pst-calculate}
          begin{document}
          begin{pspicture}[saveNodeCoors,showgrid](6,5)
          defb{3}
          pstGeonode[PosAngle={-135,135,-45}](1,1){A}(1,pscalculate{b+1}){B}(pscalculate{b*sqrt(2)+1},1){D}
          pstTranslation[PosAngle=45]{A}{D}{B}[C]
          pstMiddleAB{B}{C}{M}
          pstInterLL[PointName=none]{A}{C}{M}{D}{E}
          pnode(C){c}% temporary
          pnode(E){e}% temporary
          rput{!N-c.y N-e.y sub N-c.x N-e.x sub atan}(E){psframe[fillcolor=red,fillstyle=solid](0.2,0.2)}%%%%%
          psline(A)(B)(C)(D)(A)(C)(M)(D)
          end{pspicture}
          end{document}






          share|improve this answer














          share|improve this answer



          share|improve this answer








          answered Jan 13 at 16:17


























          community wiki





          God Must Be Crazy









          • 1





            Hehe, thank you. :-))

            – chishimotoji
            Jan 14 at 0:07














          • 1





            Hehe, thank you. :-))

            – chishimotoji
            Jan 14 at 0:07








          1




          1





          Hehe, thank you. :-))

          – chishimotoji
          Jan 14 at 0:07





          Hehe, thank you. :-))

          – chishimotoji
          Jan 14 at 0:07


















          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%2f469789%2fhow-to-fill-a-right-angle-mark-with-a-color%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

          How to change which sound is reproduced for terminal bell?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Can I use Tabulator js library in my java Spring + Thymeleaf project?