Symbol for non-squares notsquare looks awful

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











up vote
4
down vote

favorite












I have trouble getting a nice symbol for the set of non-squares. I would like to have a crossed out square, but the



$notsquare$


command does not place the line at the right place.



Using the package centernot it gets a little better



usepackagecenternot
$centernotsquare$


Now the line is at the right place but it is not as symmetric as it should be: the line comes only just up to the top side of the square. Any ideas?










share|improve this question







New contributor




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























    up vote
    4
    down vote

    favorite












    I have trouble getting a nice symbol for the set of non-squares. I would like to have a crossed out square, but the



    $notsquare$


    command does not place the line at the right place.



    Using the package centernot it gets a little better



    usepackagecenternot
    $centernotsquare$


    Now the line is at the right place but it is not as symmetric as it should be: the line comes only just up to the top side of the square. Any ideas?










    share|improve this question







    New contributor




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





















      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      I have trouble getting a nice symbol for the set of non-squares. I would like to have a crossed out square, but the



      $notsquare$


      command does not place the line at the right place.



      Using the package centernot it gets a little better



      usepackagecenternot
      $centernotsquare$


      Now the line is at the right place but it is not as symmetric as it should be: the line comes only just up to the top side of the square. Any ideas?










      share|improve this question







      New contributor




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











      I have trouble getting a nice symbol for the set of non-squares. I would like to have a crossed out square, but the



      $notsquare$


      command does not place the line at the right place.



      Using the package centernot it gets a little better



      usepackagecenternot
      $centernotsquare$


      Now the line is at the right place but it is not as symmetric as it should be: the line comes only just up to the top side of the square. Any ideas?







      symbols






      share|improve this question







      New contributor




      Choky 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




      Choky 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




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









      asked 3 hours ago









      Choky

      211




      211




      New contributor




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





      New contributor





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






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




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote













          You can define your own symbol as an overlay of square with / using ooalign:



          enter image description here



          documentclassarticle

          usepackageamssymb

          newcommandnotsquare
          mathrel
          ooalign
          $square$cr
          hidewidthraise.225exhbox$/$hidewidth




          begindocument

          [
          f mathrelsquare g notsquare h
          ]

          enddocument


          Here is a short course on ooalign: subseteq + circ as a single symbol ("open subset")






          share|improve this answer



























            up vote
            1
            down vote













            Since not is made to apply to math relations, a better syntax would be mathordnotmathrelsquare. However, while that fixes the horizontal placement, vertical is still not ideal.



            So I propose a "BEST" stackengine approach.



            However, the OP notes the desire to avoid extra packages so I edited to also provide a native Alternative.



            documentclassarticle
            usepackageamssymb,stackengine
            begindocument
            [
            textrmBetter: quadmathordnotmathrelsquare
            ]
            [
            textrmBest: quadensurestackMathstackinsetcc/square
            ]
            [
            textrmAlternative: quadraisebox1pt$notmathrelraisebox-1pt$square$$
            ]
            enddocument


            enter image description here






            share|improve this answer






















            • The `Best' output is certainly what I want, but the stackengine package isn't installed by default. While I could install it, I am using it for a paper with coauthors and I really do not want to annoy them (or the publisher!). Is there a way to get the same output by only using standard packages?
              – Choky
              3 hours ago










            • @Choky Please see my update.
              – Steven B. Segletes
              2 hours 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
            );



            );






            Choky 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%2f456673%2fsymbol-for-non-squares-not-square-looks-awful%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













            You can define your own symbol as an overlay of square with / using ooalign:



            enter image description here



            documentclassarticle

            usepackageamssymb

            newcommandnotsquare
            mathrel
            ooalign
            $square$cr
            hidewidthraise.225exhbox$/$hidewidth




            begindocument

            [
            f mathrelsquare g notsquare h
            ]

            enddocument


            Here is a short course on ooalign: subseteq + circ as a single symbol ("open subset")






            share|improve this answer
























              up vote
              1
              down vote













              You can define your own symbol as an overlay of square with / using ooalign:



              enter image description here



              documentclassarticle

              usepackageamssymb

              newcommandnotsquare
              mathrel
              ooalign
              $square$cr
              hidewidthraise.225exhbox$/$hidewidth




              begindocument

              [
              f mathrelsquare g notsquare h
              ]

              enddocument


              Here is a short course on ooalign: subseteq + circ as a single symbol ("open subset")






              share|improve this answer






















                up vote
                1
                down vote










                up vote
                1
                down vote









                You can define your own symbol as an overlay of square with / using ooalign:



                enter image description here



                documentclassarticle

                usepackageamssymb

                newcommandnotsquare
                mathrel
                ooalign
                $square$cr
                hidewidthraise.225exhbox$/$hidewidth




                begindocument

                [
                f mathrelsquare g notsquare h
                ]

                enddocument


                Here is a short course on ooalign: subseteq + circ as a single symbol ("open subset")






                share|improve this answer












                You can define your own symbol as an overlay of square with / using ooalign:



                enter image description here



                documentclassarticle

                usepackageamssymb

                newcommandnotsquare
                mathrel
                ooalign
                $square$cr
                hidewidthraise.225exhbox$/$hidewidth




                begindocument

                [
                f mathrelsquare g notsquare h
                ]

                enddocument


                Here is a short course on ooalign: subseteq + circ as a single symbol ("open subset")







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 2 hours ago









                Werner

                426k589361607




                426k589361607




















                    up vote
                    1
                    down vote













                    Since not is made to apply to math relations, a better syntax would be mathordnotmathrelsquare. However, while that fixes the horizontal placement, vertical is still not ideal.



                    So I propose a "BEST" stackengine approach.



                    However, the OP notes the desire to avoid extra packages so I edited to also provide a native Alternative.



                    documentclassarticle
                    usepackageamssymb,stackengine
                    begindocument
                    [
                    textrmBetter: quadmathordnotmathrelsquare
                    ]
                    [
                    textrmBest: quadensurestackMathstackinsetcc/square
                    ]
                    [
                    textrmAlternative: quadraisebox1pt$notmathrelraisebox-1pt$square$$
                    ]
                    enddocument


                    enter image description here






                    share|improve this answer






















                    • The `Best' output is certainly what I want, but the stackengine package isn't installed by default. While I could install it, I am using it for a paper with coauthors and I really do not want to annoy them (or the publisher!). Is there a way to get the same output by only using standard packages?
                      – Choky
                      3 hours ago










                    • @Choky Please see my update.
                      – Steven B. Segletes
                      2 hours ago














                    up vote
                    1
                    down vote













                    Since not is made to apply to math relations, a better syntax would be mathordnotmathrelsquare. However, while that fixes the horizontal placement, vertical is still not ideal.



                    So I propose a "BEST" stackengine approach.



                    However, the OP notes the desire to avoid extra packages so I edited to also provide a native Alternative.



                    documentclassarticle
                    usepackageamssymb,stackengine
                    begindocument
                    [
                    textrmBetter: quadmathordnotmathrelsquare
                    ]
                    [
                    textrmBest: quadensurestackMathstackinsetcc/square
                    ]
                    [
                    textrmAlternative: quadraisebox1pt$notmathrelraisebox-1pt$square$$
                    ]
                    enddocument


                    enter image description here






                    share|improve this answer






















                    • The `Best' output is certainly what I want, but the stackengine package isn't installed by default. While I could install it, I am using it for a paper with coauthors and I really do not want to annoy them (or the publisher!). Is there a way to get the same output by only using standard packages?
                      – Choky
                      3 hours ago










                    • @Choky Please see my update.
                      – Steven B. Segletes
                      2 hours ago












                    up vote
                    1
                    down vote










                    up vote
                    1
                    down vote









                    Since not is made to apply to math relations, a better syntax would be mathordnotmathrelsquare. However, while that fixes the horizontal placement, vertical is still not ideal.



                    So I propose a "BEST" stackengine approach.



                    However, the OP notes the desire to avoid extra packages so I edited to also provide a native Alternative.



                    documentclassarticle
                    usepackageamssymb,stackengine
                    begindocument
                    [
                    textrmBetter: quadmathordnotmathrelsquare
                    ]
                    [
                    textrmBest: quadensurestackMathstackinsetcc/square
                    ]
                    [
                    textrmAlternative: quadraisebox1pt$notmathrelraisebox-1pt$square$$
                    ]
                    enddocument


                    enter image description here






                    share|improve this answer














                    Since not is made to apply to math relations, a better syntax would be mathordnotmathrelsquare. However, while that fixes the horizontal placement, vertical is still not ideal.



                    So I propose a "BEST" stackengine approach.



                    However, the OP notes the desire to avoid extra packages so I edited to also provide a native Alternative.



                    documentclassarticle
                    usepackageamssymb,stackengine
                    begindocument
                    [
                    textrmBetter: quadmathordnotmathrelsquare
                    ]
                    [
                    textrmBest: quadensurestackMathstackinsetcc/square
                    ]
                    [
                    textrmAlternative: quadraisebox1pt$notmathrelraisebox-1pt$square$$
                    ]
                    enddocument


                    enter image description here







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited 2 hours ago

























                    answered 3 hours ago









                    Steven B. Segletes

                    149k9187392




                    149k9187392











                    • The `Best' output is certainly what I want, but the stackengine package isn't installed by default. While I could install it, I am using it for a paper with coauthors and I really do not want to annoy them (or the publisher!). Is there a way to get the same output by only using standard packages?
                      – Choky
                      3 hours ago










                    • @Choky Please see my update.
                      – Steven B. Segletes
                      2 hours ago
















                    • The `Best' output is certainly what I want, but the stackengine package isn't installed by default. While I could install it, I am using it for a paper with coauthors and I really do not want to annoy them (or the publisher!). Is there a way to get the same output by only using standard packages?
                      – Choky
                      3 hours ago










                    • @Choky Please see my update.
                      – Steven B. Segletes
                      2 hours ago















                    The `Best' output is certainly what I want, but the stackengine package isn't installed by default. While I could install it, I am using it for a paper with coauthors and I really do not want to annoy them (or the publisher!). Is there a way to get the same output by only using standard packages?
                    – Choky
                    3 hours ago




                    The `Best' output is certainly what I want, but the stackengine package isn't installed by default. While I could install it, I am using it for a paper with coauthors and I really do not want to annoy them (or the publisher!). Is there a way to get the same output by only using standard packages?
                    – Choky
                    3 hours ago












                    @Choky Please see my update.
                    – Steven B. Segletes
                    2 hours ago




                    @Choky Please see my update.
                    – Steven B. Segletes
                    2 hours ago










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









                     

                    draft saved


                    draft discarded


















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












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











                    Choky 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%2f456673%2fsymbol-for-non-squares-not-square-looks-awful%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?