Brackets and omitted argument in a function

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











up vote
6
down vote

favorite
1












Sometimes, it is useful in math notations to write $u(x,cdot)$ where the second argument of the function u is intentionally omitted. However, the above instruction generates a fairly questionable spacing between cdot and ). For instance, $u(L,cdot,)$ is slightly nicer. What is the right way to code the above function in LateX?










share|improve this question

























    up vote
    6
    down vote

    favorite
    1












    Sometimes, it is useful in math notations to write $u(x,cdot)$ where the second argument of the function u is intentionally omitted. However, the above instruction generates a fairly questionable spacing between cdot and ). For instance, $u(L,cdot,)$ is slightly nicer. What is the right way to code the above function in LateX?










    share|improve this question























      up vote
      6
      down vote

      favorite
      1









      up vote
      6
      down vote

      favorite
      1






      1





      Sometimes, it is useful in math notations to write $u(x,cdot)$ where the second argument of the function u is intentionally omitted. However, the above instruction generates a fairly questionable spacing between cdot and ). For instance, $u(L,cdot,)$ is slightly nicer. What is the right way to code the above function in LateX?










      share|improve this question













      Sometimes, it is useful in math notations to write $u(x,cdot)$ where the second argument of the function u is intentionally omitted. However, the above instruction generates a fairly questionable spacing between cdot and ). For instance, $u(L,cdot,)$ is slightly nicer. What is the right way to code the above function in LateX?







      spacing






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 47 mins ago









      pluton

      7,757959125




      7,757959125




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          6
          down vote



          accepted










          I suggest first of all to make a specific command for it, so you don't forget what spacing you have decided for.



          I show several possible definitions, choose the one you prefer.



          documentclassarticle
          usepackageamsmath

          newcommandblankcdot

          begindocument

          $u(x,cdot)$

          $u(x,cdot,)$

          $u(x,blank)$

          renewcommandblankmspace1mucdotmspace1mu

          $u(x,blank)$

          renewcommandblankmspace2mucdotmspace2mu

          $u(x,blank)$

          renewcommandblank-

          $u(x,blank)$

          enddocument


          enter image description here



          The last redefinition shows how you can comply with a fussy coauthor who doesn't like the dot and prefers a dash. Using a personal command makes the change very easy.



          Some explanations. Since cdot is a binary operation symbol, if TeX finds it immediately before or after punctuation or immediately before or after a delimiter (in your case two conditions apply), it considers it an ordinary symbol. Thus you get



          ,<thin space><dot>)


          Adding , will make



          ,<thin space><dot><thin space>)


          On the other hand, if you have u(cdot,y), you get



          (<dot>,


          with no spacing at all. The definition with cdot will consider cdot as a binary operation, with empty operands, so we get



          ,<thin space><med space><dot><med space>)


          Using mspace1mucdotmspace1mu the dot is considered as ordinary, because it has no operands on either side. So you get



          ,<thin space><1mu><dot><1mu>)


          and



          (<1mu><dot><1mu>,


          in the first variable case. The asymmetry is desired.






          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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f455534%2fbrackets-and-omitted-argument-in-a-function%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
            6
            down vote



            accepted










            I suggest first of all to make a specific command for it, so you don't forget what spacing you have decided for.



            I show several possible definitions, choose the one you prefer.



            documentclassarticle
            usepackageamsmath

            newcommandblankcdot

            begindocument

            $u(x,cdot)$

            $u(x,cdot,)$

            $u(x,blank)$

            renewcommandblankmspace1mucdotmspace1mu

            $u(x,blank)$

            renewcommandblankmspace2mucdotmspace2mu

            $u(x,blank)$

            renewcommandblank-

            $u(x,blank)$

            enddocument


            enter image description here



            The last redefinition shows how you can comply with a fussy coauthor who doesn't like the dot and prefers a dash. Using a personal command makes the change very easy.



            Some explanations. Since cdot is a binary operation symbol, if TeX finds it immediately before or after punctuation or immediately before or after a delimiter (in your case two conditions apply), it considers it an ordinary symbol. Thus you get



            ,<thin space><dot>)


            Adding , will make



            ,<thin space><dot><thin space>)


            On the other hand, if you have u(cdot,y), you get



            (<dot>,


            with no spacing at all. The definition with cdot will consider cdot as a binary operation, with empty operands, so we get



            ,<thin space><med space><dot><med space>)


            Using mspace1mucdotmspace1mu the dot is considered as ordinary, because it has no operands on either side. So you get



            ,<thin space><1mu><dot><1mu>)


            and



            (<1mu><dot><1mu>,


            in the first variable case. The asymmetry is desired.






            share|improve this answer


























              up vote
              6
              down vote



              accepted










              I suggest first of all to make a specific command for it, so you don't forget what spacing you have decided for.



              I show several possible definitions, choose the one you prefer.



              documentclassarticle
              usepackageamsmath

              newcommandblankcdot

              begindocument

              $u(x,cdot)$

              $u(x,cdot,)$

              $u(x,blank)$

              renewcommandblankmspace1mucdotmspace1mu

              $u(x,blank)$

              renewcommandblankmspace2mucdotmspace2mu

              $u(x,blank)$

              renewcommandblank-

              $u(x,blank)$

              enddocument


              enter image description here



              The last redefinition shows how you can comply with a fussy coauthor who doesn't like the dot and prefers a dash. Using a personal command makes the change very easy.



              Some explanations. Since cdot is a binary operation symbol, if TeX finds it immediately before or after punctuation or immediately before or after a delimiter (in your case two conditions apply), it considers it an ordinary symbol. Thus you get



              ,<thin space><dot>)


              Adding , will make



              ,<thin space><dot><thin space>)


              On the other hand, if you have u(cdot,y), you get



              (<dot>,


              with no spacing at all. The definition with cdot will consider cdot as a binary operation, with empty operands, so we get



              ,<thin space><med space><dot><med space>)


              Using mspace1mucdotmspace1mu the dot is considered as ordinary, because it has no operands on either side. So you get



              ,<thin space><1mu><dot><1mu>)


              and



              (<1mu><dot><1mu>,


              in the first variable case. The asymmetry is desired.






              share|improve this answer
























                up vote
                6
                down vote



                accepted







                up vote
                6
                down vote



                accepted






                I suggest first of all to make a specific command for it, so you don't forget what spacing you have decided for.



                I show several possible definitions, choose the one you prefer.



                documentclassarticle
                usepackageamsmath

                newcommandblankcdot

                begindocument

                $u(x,cdot)$

                $u(x,cdot,)$

                $u(x,blank)$

                renewcommandblankmspace1mucdotmspace1mu

                $u(x,blank)$

                renewcommandblankmspace2mucdotmspace2mu

                $u(x,blank)$

                renewcommandblank-

                $u(x,blank)$

                enddocument


                enter image description here



                The last redefinition shows how you can comply with a fussy coauthor who doesn't like the dot and prefers a dash. Using a personal command makes the change very easy.



                Some explanations. Since cdot is a binary operation symbol, if TeX finds it immediately before or after punctuation or immediately before or after a delimiter (in your case two conditions apply), it considers it an ordinary symbol. Thus you get



                ,<thin space><dot>)


                Adding , will make



                ,<thin space><dot><thin space>)


                On the other hand, if you have u(cdot,y), you get



                (<dot>,


                with no spacing at all. The definition with cdot will consider cdot as a binary operation, with empty operands, so we get



                ,<thin space><med space><dot><med space>)


                Using mspace1mucdotmspace1mu the dot is considered as ordinary, because it has no operands on either side. So you get



                ,<thin space><1mu><dot><1mu>)


                and



                (<1mu><dot><1mu>,


                in the first variable case. The asymmetry is desired.






                share|improve this answer














                I suggest first of all to make a specific command for it, so you don't forget what spacing you have decided for.



                I show several possible definitions, choose the one you prefer.



                documentclassarticle
                usepackageamsmath

                newcommandblankcdot

                begindocument

                $u(x,cdot)$

                $u(x,cdot,)$

                $u(x,blank)$

                renewcommandblankmspace1mucdotmspace1mu

                $u(x,blank)$

                renewcommandblankmspace2mucdotmspace2mu

                $u(x,blank)$

                renewcommandblank-

                $u(x,blank)$

                enddocument


                enter image description here



                The last redefinition shows how you can comply with a fussy coauthor who doesn't like the dot and prefers a dash. Using a personal command makes the change very easy.



                Some explanations. Since cdot is a binary operation symbol, if TeX finds it immediately before or after punctuation or immediately before or after a delimiter (in your case two conditions apply), it considers it an ordinary symbol. Thus you get



                ,<thin space><dot>)


                Adding , will make



                ,<thin space><dot><thin space>)


                On the other hand, if you have u(cdot,y), you get



                (<dot>,


                with no spacing at all. The definition with cdot will consider cdot as a binary operation, with empty operands, so we get



                ,<thin space><med space><dot><med space>)


                Using mspace1mucdotmspace1mu the dot is considered as ordinary, because it has no operands on either side. So you get



                ,<thin space><1mu><dot><1mu>)


                and



                (<1mu><dot><1mu>,


                in the first variable case. The asymmetry is desired.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 22 mins ago

























                answered 32 mins ago









                egreg

                690k8518373085




                690k8518373085



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f455534%2fbrackets-and-omitted-argument-in-a-function%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    What does second last employer means? [closed]

                    List of Gilmore Girls characters

                    Confectionery