DeclareMathOperator adds spaces after the periods contained in its second argument (name text)
Clash Royale CLAN TAG#URR8PPP
up vote
4
down vote
favorite
The following MCE points out that DeclareMathOperator
, if its second argument (name text) contains periods, adds spaces after those periods:
documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument
Do you know why and how to get rid of these spaces?
spacing amsmath math-operators operator-space
add a comment |Â
up vote
4
down vote
favorite
The following MCE points out that DeclareMathOperator
, if its second argument (name text) contains periods, adds spaces after those periods:
documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument
Do you know why and how to get rid of these spaces?
spacing amsmath math-operators operator-space
DeclareMathOperatorlimonel.i.m.
Note that while thel.i.m.
will still line up with yourtext
case, there will be a gap following the last.
, becausel.i.m.
is now an operator, whereastextl.i.m.
is a math atom.
â Steven B. Segletes
48 mins ago
Using.
? Untested, it just makes the dot an ord. Which math operator is that? Never seen one with punctuation in it before
â daleif
47 mins ago
@daleif.
works nicely indeed. Concerning the operator, some authors use it for denoting the convergence in the mean square sense. I agree it is quite strange :)
â Denis Bitouzé
40 mins ago
add a comment |Â
up vote
4
down vote
favorite
up vote
4
down vote
favorite
The following MCE points out that DeclareMathOperator
, if its second argument (name text) contains periods, adds spaces after those periods:
documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument
Do you know why and how to get rid of these spaces?
spacing amsmath math-operators operator-space
The following MCE points out that DeclareMathOperator
, if its second argument (name text) contains periods, adds spaces after those periods:
documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument
Do you know why and how to get rid of these spaces?
spacing amsmath math-operators operator-space
spacing amsmath math-operators operator-space
asked 54 mins ago
Denis Bitouzé
3,47411245
3,47411245
DeclareMathOperatorlimonel.i.m.
Note that while thel.i.m.
will still line up with yourtext
case, there will be a gap following the last.
, becausel.i.m.
is now an operator, whereastextl.i.m.
is a math atom.
â Steven B. Segletes
48 mins ago
Using.
? Untested, it just makes the dot an ord. Which math operator is that? Never seen one with punctuation in it before
â daleif
47 mins ago
@daleif.
works nicely indeed. Concerning the operator, some authors use it for denoting the convergence in the mean square sense. I agree it is quite strange :)
â Denis Bitouzé
40 mins ago
add a comment |Â
DeclareMathOperatorlimonel.i.m.
Note that while thel.i.m.
will still line up with yourtext
case, there will be a gap following the last.
, becausel.i.m.
is now an operator, whereastextl.i.m.
is a math atom.
â Steven B. Segletes
48 mins ago
Using.
? Untested, it just makes the dot an ord. Which math operator is that? Never seen one with punctuation in it before
â daleif
47 mins ago
@daleif.
works nicely indeed. Concerning the operator, some authors use it for denoting the convergence in the mean square sense. I agree it is quite strange :)
â Denis Bitouzé
40 mins ago
DeclareMathOperatorlimonel.i.m.
Note that while the l.i.m.
will still line up with your text
case, there will be a gap following the last .
, because l.i.m.
is now an operator, whereas textl.i.m.
is a math atom.â Steven B. Segletes
48 mins ago
DeclareMathOperatorlimonel.i.m.
Note that while the l.i.m.
will still line up with your text
case, there will be a gap following the last .
, because l.i.m.
is now an operator, whereas textl.i.m.
is a math atom.â Steven B. Segletes
48 mins ago
Using
.
? Untested, it just makes the dot an ord. Which math operator is that? Never seen one with punctuation in it beforeâ daleif
47 mins ago
Using
.
? Untested, it just makes the dot an ord. Which math operator is that? Never seen one with punctuation in it beforeâ daleif
47 mins ago
@daleif
.
works nicely indeed. Concerning the operator, some authors use it for denoting the convergence in the mean square sense. I agree it is quite strange :)â Denis Bitouzé
40 mins ago
@daleif
.
works nicely indeed. Concerning the operator, some authors use it for denoting the convergence in the mean square sense. I agree it is quite strange :)â Denis Bitouzé
40 mins ago
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
3
down vote
DeclareMathOperatorlimonel.i.m.
will fix the excess space in row 1, making it like row 2. Note that while the l.i.m.
will still line up with your text
case, there will be a gap following the last .
, because l.i.m.
(in the form of limone
or limtwo
) is now an operator, whereas textl.i.m.
is a math atom.
documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument
It does the trick, indeed. But why this behaviour without the braces? And agree with your note (I added thetext
example in order to show the spaces withDeclareMathOperator
didn't come from a possible underlying "text" mode).
â Denis Bitouzé
37 mins ago
1
@DenisBitouzé Not sure, but it may be related to this:gdefnewmcodes@mathcode`'39mathcode``*42mathcode``."613A% mathcode``-45mathcode``/47mathcode``:"603Arelax
, declared inamstex.sty
.
â Steven B. Segletes
27 mins ago
add a comment |Â
up vote
2
down vote
Compare with
$lmathpunct.imathpunct.m$
Indeed, your limone
gives qopname newmcodes@ ol.i.m.
and newmcodes
assigns mathpunct
category to the dot (which will be taken in letters font, not operators...). Another strangeness of newmcodes@
.
newmcodes@ ->mathcode `'39mathcode `*42mathcode `."613Aifnum mathcode
`-=45 else mathchardef std@minus mathcode `-relax fi mathcode `-45ma
thcode `/47mathcode `:"603Arelax
You will have same mathpunct
spacing with :
.
What to do? You can always define your own newmcodes@
to replace above definition.
Define my ownnewmcodes@
?! Are you kidding me? :)
â Denis Bitouzé
16 mins ago
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
DeclareMathOperatorlimonel.i.m.
will fix the excess space in row 1, making it like row 2. Note that while the l.i.m.
will still line up with your text
case, there will be a gap following the last .
, because l.i.m.
(in the form of limone
or limtwo
) is now an operator, whereas textl.i.m.
is a math atom.
documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument
It does the trick, indeed. But why this behaviour without the braces? And agree with your note (I added thetext
example in order to show the spaces withDeclareMathOperator
didn't come from a possible underlying "text" mode).
â Denis Bitouzé
37 mins ago
1
@DenisBitouzé Not sure, but it may be related to this:gdefnewmcodes@mathcode`'39mathcode``*42mathcode``."613A% mathcode``-45mathcode``/47mathcode``:"603Arelax
, declared inamstex.sty
.
â Steven B. Segletes
27 mins ago
add a comment |Â
up vote
3
down vote
DeclareMathOperatorlimonel.i.m.
will fix the excess space in row 1, making it like row 2. Note that while the l.i.m.
will still line up with your text
case, there will be a gap following the last .
, because l.i.m.
(in the form of limone
or limtwo
) is now an operator, whereas textl.i.m.
is a math atom.
documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument
It does the trick, indeed. But why this behaviour without the braces? And agree with your note (I added thetext
example in order to show the spaces withDeclareMathOperator
didn't come from a possible underlying "text" mode).
â Denis Bitouzé
37 mins ago
1
@DenisBitouzé Not sure, but it may be related to this:gdefnewmcodes@mathcode`'39mathcode``*42mathcode``."613A% mathcode``-45mathcode``/47mathcode``:"603Arelax
, declared inamstex.sty
.
â Steven B. Segletes
27 mins ago
add a comment |Â
up vote
3
down vote
up vote
3
down vote
DeclareMathOperatorlimonel.i.m.
will fix the excess space in row 1, making it like row 2. Note that while the l.i.m.
will still line up with your text
case, there will be a gap following the last .
, because l.i.m.
(in the form of limone
or limtwo
) is now an operator, whereas textl.i.m.
is a math atom.
documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument
DeclareMathOperatorlimonel.i.m.
will fix the excess space in row 1, making it like row 2. Note that while the l.i.m.
will still line up with your text
case, there will be a gap following the last .
, because l.i.m.
(in the form of limone
or limtwo
) is now an operator, whereas textl.i.m.
is a math atom.
documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument
edited 38 mins ago
answered 45 mins ago
Steven B. Segletes
147k9186388
147k9186388
It does the trick, indeed. But why this behaviour without the braces? And agree with your note (I added thetext
example in order to show the spaces withDeclareMathOperator
didn't come from a possible underlying "text" mode).
â Denis Bitouzé
37 mins ago
1
@DenisBitouzé Not sure, but it may be related to this:gdefnewmcodes@mathcode`'39mathcode``*42mathcode``."613A% mathcode``-45mathcode``/47mathcode``:"603Arelax
, declared inamstex.sty
.
â Steven B. Segletes
27 mins ago
add a comment |Â
It does the trick, indeed. But why this behaviour without the braces? And agree with your note (I added thetext
example in order to show the spaces withDeclareMathOperator
didn't come from a possible underlying "text" mode).
â Denis Bitouzé
37 mins ago
1
@DenisBitouzé Not sure, but it may be related to this:gdefnewmcodes@mathcode`'39mathcode``*42mathcode``."613A% mathcode``-45mathcode``/47mathcode``:"603Arelax
, declared inamstex.sty
.
â Steven B. Segletes
27 mins ago
It does the trick, indeed. But why this behaviour without the braces? And agree with your note (I added the
text
example in order to show the spaces with DeclareMathOperator
didn't come from a possible underlying "text" mode).â Denis Bitouzé
37 mins ago
It does the trick, indeed. But why this behaviour without the braces? And agree with your note (I added the
text
example in order to show the spaces with DeclareMathOperator
didn't come from a possible underlying "text" mode).â Denis Bitouzé
37 mins ago
1
1
@DenisBitouzé Not sure, but it may be related to this:
gdefnewmcodes@mathcode`'39mathcode``*42mathcode``."613A% mathcode``-45mathcode``/47mathcode``:"603Arelax
, declared in amstex.sty
.â Steven B. Segletes
27 mins ago
@DenisBitouzé Not sure, but it may be related to this:
gdefnewmcodes@mathcode`'39mathcode``*42mathcode``."613A% mathcode``-45mathcode``/47mathcode``:"603Arelax
, declared in amstex.sty
.â Steven B. Segletes
27 mins ago
add a comment |Â
up vote
2
down vote
Compare with
$lmathpunct.imathpunct.m$
Indeed, your limone
gives qopname newmcodes@ ol.i.m.
and newmcodes
assigns mathpunct
category to the dot (which will be taken in letters font, not operators...). Another strangeness of newmcodes@
.
newmcodes@ ->mathcode `'39mathcode `*42mathcode `."613Aifnum mathcode
`-=45 else mathchardef std@minus mathcode `-relax fi mathcode `-45ma
thcode `/47mathcode `:"603Arelax
You will have same mathpunct
spacing with :
.
What to do? You can always define your own newmcodes@
to replace above definition.
Define my ownnewmcodes@
?! Are you kidding me? :)
â Denis Bitouzé
16 mins ago
add a comment |Â
up vote
2
down vote
Compare with
$lmathpunct.imathpunct.m$
Indeed, your limone
gives qopname newmcodes@ ol.i.m.
and newmcodes
assigns mathpunct
category to the dot (which will be taken in letters font, not operators...). Another strangeness of newmcodes@
.
newmcodes@ ->mathcode `'39mathcode `*42mathcode `."613Aifnum mathcode
`-=45 else mathchardef std@minus mathcode `-relax fi mathcode `-45ma
thcode `/47mathcode `:"603Arelax
You will have same mathpunct
spacing with :
.
What to do? You can always define your own newmcodes@
to replace above definition.
Define my ownnewmcodes@
?! Are you kidding me? :)
â Denis Bitouzé
16 mins ago
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Compare with
$lmathpunct.imathpunct.m$
Indeed, your limone
gives qopname newmcodes@ ol.i.m.
and newmcodes
assigns mathpunct
category to the dot (which will be taken in letters font, not operators...). Another strangeness of newmcodes@
.
newmcodes@ ->mathcode `'39mathcode `*42mathcode `."613Aifnum mathcode
`-=45 else mathchardef std@minus mathcode `-relax fi mathcode `-45ma
thcode `/47mathcode `:"603Arelax
You will have same mathpunct
spacing with :
.
What to do? You can always define your own newmcodes@
to replace above definition.
Compare with
$lmathpunct.imathpunct.m$
Indeed, your limone
gives qopname newmcodes@ ol.i.m.
and newmcodes
assigns mathpunct
category to the dot (which will be taken in letters font, not operators...). Another strangeness of newmcodes@
.
newmcodes@ ->mathcode `'39mathcode `*42mathcode `."613Aifnum mathcode
`-=45 else mathchardef std@minus mathcode `-relax fi mathcode `-45ma
thcode `/47mathcode `:"603Arelax
You will have same mathpunct
spacing with :
.
What to do? You can always define your own newmcodes@
to replace above definition.
answered 27 mins ago
jfbu
42k63135
42k63135
Define my ownnewmcodes@
?! Are you kidding me? :)
â Denis Bitouzé
16 mins ago
add a comment |Â
Define my ownnewmcodes@
?! Are you kidding me? :)
â Denis Bitouzé
16 mins ago
Define my own
newmcodes@
?! Are you kidding me? :)â Denis Bitouzé
16 mins ago
Define my own
newmcodes@
?! Are you kidding me? :)â Denis Bitouzé
16 mins ago
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%2f451591%2fdeclaremathoperator-adds-spaces-after-the-periods-contained-in-its-second-argum%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
DeclareMathOperatorlimonel.i.m.
Note that while thel.i.m.
will still line up with yourtext
case, there will be a gap following the last.
, becausel.i.m.
is now an operator, whereastextl.i.m.
is a math atom.â Steven B. Segletes
48 mins ago
Using
.
? Untested, it just makes the dot an ord. Which math operator is that? Never seen one with punctuation in it beforeâ daleif
47 mins ago
@daleif
.
works nicely indeed. Concerning the operator, some authors use it for denoting the convergence in the mean square sense. I agree it is quite strange :)â Denis Bitouzé
40 mins ago