Brackets and omitted argument in a function
Clash Royale CLAN TAG#URR8PPP
up vote
6
down vote
favorite
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
add a comment |Â
up vote
6
down vote
favorite
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
add a comment |Â
up vote
6
down vote
favorite
up vote
6
down vote
favorite
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
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
spacing
asked 47 mins ago
pluton
7,757959125
7,757959125
add a comment |Â
add a comment |Â
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
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.
add a comment |Â
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
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.
add a comment |Â
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
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.
add a comment |Â
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
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.
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
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.
edited 22 mins ago
answered 32 mins ago


egreg
690k8518373085
690k8518373085
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password